public class ScriptUser extends java.lang.Object implements Authority, java.io.Serializable
Authority.AuthorityComparator, Authority.ScriptAuthorityType| Constructor and Description |
|---|
ScriptUser(java.lang.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() |
java.lang.String |
getDisplayName() |
java.lang.String |
getFullName() |
ScriptNode |
getPerson()
Return a ScriptNode wrapping the person
|
org.alfresco.service.cmr.repository.NodeRef |
getPersonNodeRef()
Return the NodeRef of the person
|
java.lang.String |
getShortName() |
java.lang.String |
getUserName()
Return the User Name, also known as the Authority Full Name
|
public ScriptUser(java.lang.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 java.lang.String getShortName()
getShortName in interface Authoritypublic java.lang.String getFullName()
getFullName in interface Authoritypublic java.lang.String getUserName()
public java.lang.String getDisplayName()
getDisplayName in interface Authoritypublic org.alfresco.service.cmr.repository.NodeRef getPersonNodeRef()
public ScriptNode getPerson()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.