info.magnolia.cms.security
Interface GroupManager

All Known Implementing Classes:
MgnlGroupManager

public interface GroupManager

Manages the groups.

Author:
Sameer Charles $Id$

Method Summary
 Group addGroup(Group group, String groupName)
          Adds to the group to a group.
 Group addRole(Group group, String roleName)
          Grants to the group a role.
 Group createGroup(String name)
           
 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)
           
 

Method Detail

createGroup

Group createGroup(String name)
                  throws UnsupportedOperationException,
                         AccessDeniedException
Throws:
UnsupportedOperationException - if the implementation does not support writing
AccessDeniedException

getGroup

Group getGroup(String name)
               throws UnsupportedOperationException,
                      AccessDeniedException
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 to the group a role.

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

addGroup

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

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


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