info.magnolia.cms.security
Class MgnlGroupManager
java.lang.Object
info.magnolia.cms.security.RepositoryBackedSecurityManager
info.magnolia.cms.security.MgnlGroupManager
- All Implemented Interfaces:
- GroupManager
public class MgnlGroupManager
- extends RepositoryBackedSecurityManager
- implements GroupManager
Group manager working directly with JCR API and returning simple groups (no JCR node aware).
- Author:
- Sameer Charles $Id: MgnlGroupManager.java 52520 2011-12-08 22:36:46Z fgiust $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MgnlGroupManager
public MgnlGroupManager()
createGroup
public Group createGroup(String name)
throws AccessDeniedException
- Specified by:
createGroup
in interface GroupManager
- Throws:
AccessDeniedException
getGroup
public Group getGroup(String name)
throws AccessDeniedException
- Specified by:
getGroup
in interface GroupManager
- Throws:
AccessDeniedException
getAllGroups
public Collection<Group> getAllGroups()
- Description copied from interface:
GroupManager
- Get all groups defined in the system.
- Specified by:
getAllGroups
in interface GroupManager
newGroupInstance
protected Group newGroupInstance(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
findPrincipalNode
protected javax.jcr.Node findPrincipalNode(String principalName,
javax.jcr.Session session)
throws javax.jcr.RepositoryException
- Specified by:
findPrincipalNode
in class RepositoryBackedSecurityManager
- Throws:
javax.jcr.RepositoryException
getRepositoryName
protected String getRepositoryName()
- Specified by:
getRepositoryName
in class RepositoryBackedSecurityManager
addRole
public Group addRole(Group group,
String roleName)
throws AccessDeniedException
- Description copied from interface:
GroupManager
- Grants to the group a role.
- Specified by:
addRole
in interface GroupManager
- Returns:
- Group object with the role already granted.
- Throws:
AccessDeniedException
addGroup
public Group addGroup(Group group,
String groupName)
throws AccessDeniedException
- Description copied from interface:
GroupManager
- Adds to the group to a group.
- Specified by:
addGroup
in interface GroupManager
- Returns:
- group object with the group already assigned.
- Throws:
AccessDeniedException
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.