|
Field Summary | ||
ZONE_APP_DEFAULT The default application zone. |
||
ZONE_APP_SHARE The SHARE application zone. |
||
ZONE_AUTH_ALFRESCO Default authentication |
||
ZONE_AUTH_EXT_PREFIX Prefix for external auth ids |
Method Summary | ||
void |
addAuthority(Collection<String> parentNames, String childName) Set a given child authority to be included by the given parent authorities. |
|
void |
addAuthority(String parentName, String childName) Set an authority to include another authority. |
|
void |
addAuthorityToZones(String authorityName, Set<String> zones) Add a zone to an authority. |
|
boolean |
authorityExists(String name) Check if an authority exists. |
|
long |
countGroups() Count the number of users (not groups) |
|
long |
countUsers() Count the number of groups |
|
createAuthority(AuthorityType type, String shortName) Create an authority. |
||
createAuthority(AuthorityType type, String shortName, String authorityDisplayName, Set<String> authorityZones) Create an authority with a display name and zone. |
||
void |
deleteAuthority(String name) Delete an authority and all its relationships. |
|
void |
deleteAuthority(String name, boolean cascade) Delete an authority and all its relationships, optionally recursively deleting child authorities of the same type. |
|
findAuthorities(AuthorityType type, String parentAuthority, boolean immediate, String displayNamePattern, String zoneName) Search for authorities by pattern matching (* and ?) against the authority name. |
||
getAllAuthorities(AuthorityType type) Deprecated. use getAuthorities(AuthorityType, String, String, boolean, boolean, PagingRequest) at least |
||
getAllAuthoritiesInZone(String zoneName, AuthorityType type) Gets the names of all authorities in a zone, optionally filtered by type See also "getAuthorities" paged alternative (note: in that case, zone must exist) |
||
getAllRootAuthorities(AuthorityType type) Get all root authorities by type. |
||
getAllRootAuthoritiesInZone(String zoneName, AuthorityType type) Gets the names of all root authorities in a zone, optionally filtered by type. |
||
getAuthorities() Get the authorities for the current user |
||
getAuthorities(AuthorityType type, String zoneName, String displayNameFilter, boolean sortByDisplayName, boolean sortAscending, PagingRequest pagingRequest) Get authorities by type and/or zone |
||
getAuthoritiesForUser(String userName) Get the authorities for the given user |
||
getAuthoritiesInfo(AuthorityType type, String zoneName, String displayNameFilter, String sortBy, boolean sortAscending, PagingRequest pagingRequest) Get authorities by type and/or zone |
||
getAuthorityDisplayName(String name) Get the display name for the given authority. |
||
getAuthorityNodeRef(String name) Gets the authority node for the specified name |
||
getAuthorityZones(String name) Gets the name of the zone containing the specified authority. |
||
getContainedAuthorities(AuthorityType type, String name, boolean immediate) Get all the authorities that are contained by the given authority. |
||
getContainingAuthorities(AuthorityType type, String name, boolean immediate) Get the authorities that contain the given authority, but use getAuthoritiesForUser(userName).contains(authority) rather than getContainingAuthorities(type, userName, false).contains(authority) or use getContainingAuthoritiesInZone(AuthorityType, String, String, AuthorityFilter, int) as they will be much faster. |
||
getContainingAuthoritiesInZone(AuthorityType type, String name, String zoneName, org.alfresco.service.cmr.security.AuthorityService.AuthorityFilter filter, int size) Get a set of authorities with varying filter criteria |
||
getDefaultZones() Get the name of the default zone. |
||
getName(AuthorityType type, String shortName) Create the full identifier for an authority given its short name and type. |
||
getOrCreateZone(String zoneName) Gets or creates an authority zone node with the specified name |
||
getShortName(String name) Extract the short name of an authority from its full identifier. |
||
getZone(String zoneName) Gets an authority zone node with the specified name |
||
boolean |
hasAdminAuthority() Check of the current user has admin authority. |
|
boolean |
hasGuestAuthority() Check of the current user has guest authority. |
|
boolean |
isAdminAuthority(String authorityName) Does the given authority have admin authority. |
|
boolean |
isGuestAuthority(String authorityName) Does the given authority have guest authority. |
|
void |
removeAuthority(String parentName, String childName) Remove an authority as a member of another authority. |
|
void |
removeAuthorityFromZones(String authorityName, Set<String> zones) Remove a zone from an authority |
|
void |
setAuthorityDisplayName(String authorityName, String authorityDisplayName) Set the display name for the given authority. |
null
if not applicablenull
if the authority does not exist.null
for all authority typesnull
for all authority typestrue
then only search root groups if parentAuthority is null, or immediate children of parentAuthority if it is non-null.
|