info.magnolia.cms.security
Interface GroupManager

All Known Implementing Classes:
MgnlGroupManager

public interface GroupManager

Manages groups, groups are identified by name and can be organized in folders. The name is globally unique regardless of their organisation in folders.

See Also:
Group

Method Summary
 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)
          Get all groups related to one concrete group.
 Group getGroup(String name)
          Get a group by name.
 

Method Detail

createGroup

Group createGroup(String name)
                  throws UnsupportedOperationException,
                         AccessDeniedException
Creates a new group in the root folder.

Throws:
IllegalArgumentException - if the name is not valid or if a group with this name already exists
UnsupportedOperationException - if the implementation does not support writing
AccessDeniedException

getGroup

Group getGroup(String name)
               throws UnsupportedOperationException,
                      AccessDeniedException
Get a group by name.

Throws:
UnsupportedOperationException - if the implementation does not support writing
AccessDeniedException

getAllGroups

Collection<Group> getAllGroups()
                               throws UnsupportedOperationException
Get all groups defined in the system.

Throws:
UnsupportedOperationException

getAllGroups

Collection<String> getAllGroups(String groupName)
                                throws UnsupportedOperationException
Get all groups related to one concrete group.

Throws:
UnsupportedOperationException

getACLs

Map<String,ACL> getACLs(String group)

addRole

Group addRole(Group group,
              String roleName)
              throws AccessDeniedException
Grants a role to a group.

Returns:
Group object with the role already granted.
Throws:
AccessDeniedException

addGroup

Group addGroup(Group group,
               String groupName)
               throws AccessDeniedException
Adds a group to a group.

Returns:
group object with the group already assigned.
Throws:
AccessDeniedException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.