|
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.Principal
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
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 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 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 java.lang.String getPrincipalId()
NuxeoPrincipal
getPrincipalId
in interface NuxeoPrincipal
public java.lang.String getOriginatingUser()
getOriginatingUser
in interface NuxeoPrincipal
public void setOriginatingUser(java.lang.String originatingUser)
setOriginatingUser
in interface NuxeoPrincipal
public DocumentModel getModel()
getModel
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 userName)
setName
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 void setPassword(java.lang.String password)
setPassword
in interface NuxeoPrincipal
public void setPrincipalId(java.lang.String principalId)
NuxeoPrincipal
setPrincipalId
in interface NuxeoPrincipal
principalId
- a new principalId for this instancepublic 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 java.lang.String toString()
toString
in interface java.security.Principal
toString
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
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |