public interface GroupManager
Group
Modifier and Type | Method and Description |
---|---|
Group |
addGroup(Group group,
String groupName)
Adds a group to a group.
|
Group |
addRole(Group group,
String roleName)
Grants a role to a group.
|
Group |
createGroup(String name)
Creates a new group in the root folder.
|
Map<String,ACL> |
getACLs(String group) |
Collection<Group> |
getAllGroups()
Get all groups defined in the system.
|
Collection<String> |
getAllGroups(String groupName)
Returns all super-groups of the given group, i.e.
|
Group |
getGroup(String name)
Get a group by name.
|
Collection<String> |
getGroupsWithGroup(String groupName)
Returns sub-groups directly assigned to the given group.
|
Collection<String> |
getGroupsWithRole(String roleName)
Returns all groups having assigned the provided role.
|
Group |
removeGroup(Group group,
String groupName)
Removes group from a group.
|
Group |
removeRole(Group group,
String roleName)
Removes role from a group.
|
Group createGroup(String name) throws UnsupportedOperationException, AccessDeniedException
IllegalArgumentException
- if the name is not valid or if a group with this name already existsUnsupportedOperationException
- if the implementation does not support writingAccessDeniedException
Group getGroup(String name) throws UnsupportedOperationException, AccessDeniedException
UnsupportedOperationException
- if the implementation does not support writingAccessDeniedException
Collection<Group> getAllGroups() throws UnsupportedOperationException
UnsupportedOperationException
Collection<String> getAllGroups(String groupName) throws UnsupportedOperationException
Group addRole(Group group, String roleName) throws AccessDeniedException
AccessDeniedException
Group addGroup(Group group, String groupName) throws AccessDeniedException
AccessDeniedException
Collection<String> getGroupsWithGroup(String groupName)
Collection<String> getGroupsWithRole(String roleName)
Group removeGroup(Group group, String groupName) throws AccessDeniedException
AccessDeniedException
Group removeRole(Group group, String roleName) throws AccessDeniedException
AccessDeniedException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.