Class ScriptUser
java.lang.Object
org.alfresco.repo.security.authority.script.ScriptUser
- All Implemented Interfaces:
Serializable,Authority
The Script user is a USER authority exposed to the scripting API
- Author:
- mrogers
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authority.script.Authority
Authority.AuthorityComparator, Authority.ScriptAuthorityType -
Constructor Summary
ConstructorsConstructorDescriptionScriptUser(String userName, NodeRef personNodeRef, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Constructs a scriptable object representing a user. -
Method Summary
Modifier and TypeMethodDescriptionReturn a ScriptNode wrapping the personReturn the NodeRef of the personReturn the User Name, also known as the Authority Full NamegetZones()Gets all the zones of this user
-
Constructor Details
-
ScriptUser
public ScriptUser(String userName, NodeRef personNodeRef, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Constructs a scriptable object representing a user.- Parameters:
userName- The usernamepersonNodeRef- The NodeRefserviceRegistry- A ServiceRegistry instancescope- Script scope- Since:
- 4.0
-
-
Method Details
-
getAuthorityType
- Specified by:
getAuthorityTypein interfaceAuthority
-
getShortName
- Specified by:
getShortNamein interfaceAuthority
-
getFullName
- Specified by:
getFullNamein interfaceAuthority
-
getUserName
Return the User Name, also known as the Authority Full Name -
getDisplayName
- Specified by:
getDisplayNamein interfaceAuthority
-
getPersonNodeRef
Return the NodeRef of the person- Since:
- 4.0
-
getPerson
Return a ScriptNode wrapping the person- Since:
- 4.0
-
getZones
Gets all the zones of this user
-