Class ScriptUser
- java.lang.Object
-
- org.alfresco.repo.security.authority.script.ScriptUser
-
- All Implemented Interfaces:
java.io.Serializable,Authority
public class ScriptUser extends java.lang.Object implements Authority, java.io.Serializable
The Script user is a USER authority exposed to the scripting API- Author:
- mrogers
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authority.script.Authority
Authority.AuthorityComparator, Authority.ScriptAuthorityType
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authority.ScriptAuthorityTypegetAuthorityType()java.lang.StringgetDisplayName()java.lang.StringgetFullName()ScriptNodegetPerson()Return a ScriptNode wrapping the personorg.alfresco.service.cmr.repository.NodeRefgetPersonNodeRef()Return the NodeRef of the personjava.lang.StringgetShortName()java.lang.StringgetUserName()Return the User Name, also known as the Authority Full Namejava.util.Set<java.lang.String>getZones()Gets all the zones of this user
-
-
-
Constructor Detail
-
ScriptUser
public 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.- Parameters:
userName- The usernamepersonNodeRef- The NodeRefserviceRegistry- A ServiceRegistry instancescope- Script scope- Since:
- 4.0
-
-
Method Detail
-
getAuthorityType
public Authority.ScriptAuthorityType getAuthorityType()
- Specified by:
getAuthorityTypein interfaceAuthority
-
getShortName
public java.lang.String getShortName()
- Specified by:
getShortNamein interfaceAuthority
-
getFullName
public java.lang.String getFullName()
- Specified by:
getFullNamein interfaceAuthority
-
getUserName
public java.lang.String getUserName()
Return the User Name, also known as the Authority Full Name
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein interfaceAuthority
-
getPersonNodeRef
public org.alfresco.service.cmr.repository.NodeRef getPersonNodeRef()
Return the NodeRef of the person- Since:
- 4.0
-
getPerson
public ScriptNode getPerson()
Return a ScriptNode wrapping the person- Since:
- 4.0
-
-