|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.security.authority.script.ScriptAuthorityService
public class ScriptAuthorityService
Script object representing the authority service. Provides Script access to groups and may in future be extended for roles and people.
| Constructor Summary | |
|---|---|
ScriptAuthorityService()
|
|
| Method Summary | |
|---|---|
ScriptGroup |
createRootGroup(java.lang.String shortName,
java.lang.String displayName)
Create a new root group in the default application zones |
ScriptGroup[] |
getAllRootGroups()
Search the root groups, those without a parent group. |
ScriptGroup[] |
getAllRootGroupsInZone(java.lang.String zone)
Get the root groups, those without a parent group. |
AuthorityService |
getAuthorityService()
|
ScriptGroup |
getGroup(java.lang.String shortName)
Get a group given its short name |
ScriptGroup |
getGroupForFullAuthorityName(java.lang.String fullAuthorityName)
Get a group given it full authority name (Which must begin with 'GROUP_' |
ScriptGroup[] |
searchGroups(java.lang.String shortNameFilter)
Search for groups in all zones. |
ScriptGroup[] |
searchGroupsInZone(java.lang.String shortNameFilter,
java.lang.String zone)
Search for groups in a specific zone |
ScriptGroup[] |
searchRootGroups(java.lang.String displayNamePattern)
Search the root groups, those without a parent group. |
ScriptGroup[] |
searchRootGroupsInZone(java.lang.String displayNamePattern,
java.lang.String zone)
Search the root groups, those without a parent group. |
void |
setAuthorityService(AuthorityService authorityService)
|
| Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension |
|---|
getScope, setScope |
| Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension |
|---|
getExtensionName, register, setExtensionName, setProcessor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptAuthorityService()
| Method Detail |
|---|
public void setAuthorityService(AuthorityService authorityService)
public AuthorityService getAuthorityService()
public ScriptGroup[] searchRootGroupsInZone(java.lang.String displayNamePattern,
java.lang.String zone)
public ScriptGroup[] searchRootGroups(java.lang.String displayNamePattern)
public ScriptGroup[] getAllRootGroups()
public ScriptGroup[] getAllRootGroupsInZone(java.lang.String zone)
zone - zone to search in.
public ScriptGroup getGroup(java.lang.String shortName)
shortName, - the shortName of the group
public ScriptGroup getGroupForFullAuthorityName(java.lang.String fullAuthorityName)
fullAuthorityName, - the shortName of the group
public ScriptGroup createRootGroup(java.lang.String shortName,
java.lang.String displayName)
public ScriptGroup[] searchGroups(java.lang.String shortNameFilter)
shortNameFilter - partial match on shortName (* and ?) work. If empty then matches everything.
public ScriptGroup[] searchGroupsInZone(java.lang.String shortNameFilter,
java.lang.String zone)
shortNameFilter - partial match on shortName (* and ?) work. If empty then matches everything.zone - zone to search in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||