public class ScriptUser extends Object implements Authority, Serializable
Authority.AuthorityComparator, Authority.ScriptAuthorityType| Constructor and Description |
|---|
ScriptUser(String userName,
org.alfresco.service.cmr.repository.NodeRef personNodeRef,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
Constructs a scriptable object representing a user.
|
| Modifier and Type | Method and Description |
|---|---|
Authority.ScriptAuthorityType |
getAuthorityType() |
String |
getDisplayName() |
String |
getFullName() |
ScriptNode |
getPerson()
Return a ScriptNode wrapping the person
|
org.alfresco.service.cmr.repository.NodeRef |
getPersonNodeRef()
Return the NodeRef of the person
|
String |
getShortName() |
String |
getUserName()
Return the User Name, also known as the Authority Full Name
|
Set<String> |
getZones()
Gets all the zones of this user
|
public ScriptUser(String userName, org.alfresco.service.cmr.repository.NodeRef personNodeRef, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
userName - The usernamepersonNodeRef - The NodeRefserviceRegistry - A ServiceRegistry instancescope - Script scopepublic Authority.ScriptAuthorityType getAuthorityType()
getAuthorityType in interface Authoritypublic String getShortName()
getShortName in interface Authoritypublic String getFullName()
getFullName in interface Authoritypublic String getUserName()
public String getDisplayName()
getDisplayName in interface Authoritypublic org.alfresco.service.cmr.repository.NodeRef getPersonNodeRef()
public ScriptNode getPerson()
Copyright © 2005–2018 Alfresco Software. All rights reserved.