|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.security.authority.script.ScriptUser
public class ScriptUser
The Script user is a USER authority exposed to the scripting API
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.repo.security.authority.script.Authority |
|---|
Authority.AuthorityComparator, Authority.ScriptAuthorityType |
| Constructor Summary | |
|---|---|
ScriptUser(java.lang.String userName,
AuthorityService authorityService)
Deprecated. The ServiceRegistry and a Scriptable scope are now required |
|
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 | |
|---|---|
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 |
void |
setAuthorityType(Authority.ScriptAuthorityType authorityType)
|
void |
setDisplayName(java.lang.String displayName)
|
void |
setFullName(java.lang.String fullName)
|
void |
setShortName(java.lang.String shortName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 scope
public ScriptUser(java.lang.String userName,
AuthorityService authorityService)
| Method Detail |
|---|
public void setAuthorityType(Authority.ScriptAuthorityType authorityType)
public Authority.ScriptAuthorityType getAuthorityType()
getAuthorityType in interface Authoritypublic void setShortName(java.lang.String shortName)
public java.lang.String getShortName()
getShortName in interface Authoritypublic void setFullName(java.lang.String fullName)
public java.lang.String getFullName()
getFullName in interface Authoritypublic java.lang.String getUserName()
public void setDisplayName(java.lang.String displayName)
public java.lang.String getDisplayName()
getDisplayName in interface Authoritypublic org.alfresco.service.cmr.repository.NodeRef getPersonNodeRef()
public ScriptNode getPerson()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||