|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.impl.UserPrincipal
public class UserPrincipal
NuxeoPrincipal stub implementation.
Field Summary |
---|
Fields inherited from interface org.nuxeo.ecm.core.api.NuxeoPrincipal |
---|
PREFIX |
Constructor Summary | |
---|---|
UserPrincipal(java.lang.String username)
Deprecated. use { UserPrincipal(String, List, boolean, boolean) } |
|
UserPrincipal(java.lang.String username,
java.util.List<java.lang.String> groups)
Deprecated. use { UserPrincipal(String, List, boolean, boolean) } |
|
UserPrincipal(java.lang.String username,
java.util.List<java.lang.String> groups,
boolean anonymous,
boolean administrator)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.util.List<java.lang.String> |
getAllGroups()
Gets the groups this principal directly or undirectly is member of. |
java.lang.String |
getCompany()
Gets the company name of this principal. |
java.lang.String |
getFirstName()
Gets the first name of this principal. |
java.util.List<java.lang.String> |
getGroups()
Gets the groups this principal is directly member of. |
java.lang.String |
getLastName()
Gets the last name of this principal. |
DocumentModel |
getModel()
|
java.lang.String |
getName()
|
java.lang.String |
getOriginatingUser()
|
java.lang.String |
getPassword()
Gets the password of this principal. |
java.lang.String |
getPrincipalId()
Returns a generated id that is unique for each principal instance. |
java.util.List<java.lang.String> |
getRoles()
Gets the roles for this principal. |
int |
hashCode()
|
boolean |
isAdministrator()
Returns true if the principal is an administrator. |
boolean |
isAnonymous()
Checks if the principal is anonymous (guest user). |
boolean |
isMemberOf(java.lang.String group)
Recursively test if the user is member of this group. |
void |
setCompany(java.lang.String company)
|
void |
setFirstName(java.lang.String firstName)
|
void |
setGroups(java.util.List<java.lang.String> groups)
|
void |
setLastName(java.lang.String lastName)
|
void |
setModel(DocumentModel model)
|
void |
setName(java.lang.String name)
|
void |
setOriginatingUser(java.lang.String originatingUser)
|
void |
setPassword(java.lang.String password)
|
void |
setPrincipalId(java.lang.String principalId)
Sets the principalId. |
void |
setRoles(java.util.List<java.lang.String> roles)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Constructor Detail |
---|
@Deprecated public UserPrincipal(java.lang.String username)
UserPrincipal(String, List, boolean, boolean)
}
@Deprecated public UserPrincipal(java.lang.String username, java.util.List<java.lang.String> groups)
UserPrincipal(String, List, boolean, boolean)
}
public UserPrincipal(java.lang.String username, java.util.List<java.lang.String> groups, boolean anonymous, boolean administrator)
Method Detail |
---|
public java.lang.String getCompany()
NuxeoPrincipal
getCompany
in interface NuxeoPrincipal
public java.lang.String getFirstName()
NuxeoPrincipal
getFirstName
in interface NuxeoPrincipal
public java.lang.String getLastName()
NuxeoPrincipal
getLastName
in interface NuxeoPrincipal
public void setCompany(java.lang.String company)
setCompany
in interface NuxeoPrincipal
public void setFirstName(java.lang.String firstName)
setFirstName
in interface NuxeoPrincipal
public void setLastName(java.lang.String lastName)
setLastName
in interface NuxeoPrincipal
public void setName(java.lang.String name)
setName
in interface NuxeoPrincipal
public java.lang.String getName()
getName
in interface java.security.Principal
public java.util.List<java.lang.String> getGroups()
NuxeoPrincipal
getGroups
in interface NuxeoPrincipal
public java.util.List<java.lang.String> getAllGroups()
NuxeoPrincipal
getAllGroups
in interface NuxeoPrincipal
public java.util.List<java.lang.String> getRoles()
NuxeoPrincipal
getRoles
in interface NuxeoPrincipal
public void setGroups(java.util.List<java.lang.String> groups)
setGroups
in interface NuxeoPrincipal
public void setRoles(java.util.List<java.lang.String> roles)
setRoles
in interface NuxeoPrincipal
public java.lang.String getPassword()
NuxeoPrincipal
Note: Some APIs that return principals from the database intentionally do not fill this field
getPassword
in interface NuxeoPrincipal
public void setPassword(java.lang.String password)
setPassword
in interface NuxeoPrincipal
public java.lang.String getPrincipalId()
NuxeoPrincipal
getPrincipalId
in interface NuxeoPrincipal
public void setPrincipalId(java.lang.String principalId)
NuxeoPrincipal
setPrincipalId
in interface NuxeoPrincipal
principalId
- a new principalId for this instancepublic DocumentModel getModel()
getModel
in interface NuxeoPrincipal
public void setModel(DocumentModel model)
setModel
in interface NuxeoPrincipal
public boolean isMemberOf(java.lang.String group)
NuxeoPrincipal
isMemberOf
in interface NuxeoPrincipal
group
- The name of the grouppublic boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public boolean isAdministrator()
NuxeoPrincipal
Security checks still apply on the repository for administrator user. If user is a system user, this method will return true.
isAdministrator
in interface NuxeoPrincipal
public boolean isAnonymous()
NuxeoPrincipal
isAnonymous
in interface NuxeoPrincipal
public java.lang.String getOriginatingUser()
getOriginatingUser
in interface NuxeoPrincipal
public void setOriginatingUser(java.lang.String originatingUser)
setOriginatingUser
in interface NuxeoPrincipal
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |