|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.login.SystemPrincipal
public class SystemPrincipal
| Field Summary |
|---|
| Fields inherited from interface org.nuxeo.ecm.core.api.NuxeoPrincipal |
|---|
PREFIX |
| Constructor Summary | |
|---|---|
SystemPrincipal(java.lang.String origUserName)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
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 userName)
|
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)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SystemPrincipal(java.lang.String origUserName)
| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals in interface java.security.Principalequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic java.lang.String getCompany()
NuxeoPrincipal
getCompany in interface NuxeoPrincipalpublic java.lang.String getFirstName()
NuxeoPrincipal
getFirstName in interface NuxeoPrincipalpublic java.lang.String getLastName()
NuxeoPrincipal
getLastName in interface NuxeoPrincipalpublic java.lang.String getName()
getName in interface java.security.Principalpublic java.util.List<java.lang.String> getGroups()
NuxeoPrincipal
getGroups in interface NuxeoPrincipalpublic java.util.List<java.lang.String> getAllGroups()
NuxeoPrincipal
getAllGroups in interface NuxeoPrincipalpublic java.util.List<java.lang.String> getRoles()
NuxeoPrincipal
getRoles in interface NuxeoPrincipalpublic java.lang.String getPassword()
NuxeoPrincipalNote: Some APIs that return principals from the database intentionally do not fill this field
getPassword in interface NuxeoPrincipalpublic java.lang.String getPrincipalId()
NuxeoPrincipal
getPrincipalId in interface NuxeoPrincipalpublic java.lang.String getOriginatingUser()
getOriginatingUser in interface NuxeoPrincipalpublic void setOriginatingUser(java.lang.String originatingUser)
setOriginatingUser in interface NuxeoPrincipalpublic DocumentModel getModel()
getModel in interface NuxeoPrincipalpublic void setCompany(java.lang.String company)
setCompany in interface NuxeoPrincipalpublic void setFirstName(java.lang.String firstName)
setFirstName in interface NuxeoPrincipalpublic void setLastName(java.lang.String lastName)
setLastName in interface NuxeoPrincipalpublic void setName(java.lang.String userName)
setName in interface NuxeoPrincipalpublic void setGroups(java.util.List<java.lang.String> groups)
setGroups in interface NuxeoPrincipalpublic void setRoles(java.util.List<java.lang.String> roles)
setRoles in interface NuxeoPrincipalpublic void setPassword(java.lang.String password)
setPassword in interface NuxeoPrincipalpublic void setPrincipalId(java.lang.String principalId)
NuxeoPrincipal
setPrincipalId in interface NuxeoPrincipalprincipalId - a new principalId for this instancepublic void setModel(DocumentModel model)
setModel in interface NuxeoPrincipalpublic boolean isMemberOf(java.lang.String group)
NuxeoPrincipal
isMemberOf in interface NuxeoPrincipalgroup - The name of the grouppublic java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic boolean isAdministrator()
NuxeoPrincipalSecurity checks still apply on the repository for administrator user. If user is a system user, this method will return true.
isAdministrator in interface NuxeoPrincipalpublic boolean isAnonymous()
NuxeoPrincipal
isAnonymous in interface NuxeoPrincipal
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||