|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.security.MgnlGroup
public class MgnlGroup
A group implementation. This bean is not connected to the underlying group storage.
Constructor Summary | |
---|---|
MgnlGroup(String id,
String groupName,
Collection<String> subgroupNames,
Collection<String> roleNames)
|
Method Summary | |
---|---|
void |
addGroup(String groupName)
Add a subgroup to this group. |
void |
addRole(String roleName)
|
Collection<String> |
getAllGroups()
Get all groups assigned to this group, collected recursively from subgroups. |
Collection<String> |
getGroups()
Returns read only groups collection. |
String |
getId()
Gets identifier of the group. |
String |
getName()
|
String |
getProperty(String propertyName)
FIXME: Yet another method that is questionable. |
Collection<String> |
getRoles()
Returns read only roles collection. |
boolean |
hasRole(String roleName)
|
void |
removeGroup(String groupName)
Remove a subgroup from this group. |
void |
removeRole(String roleName)
|
void |
setProperty(String propertyName,
String value)
Sets an arbitrary property for this group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MgnlGroup(String id, String groupName, Collection<String> subgroupNames, Collection<String> roleNames)
Method Detail |
---|
public String getName()
getName
in interface Group
public void addRole(String roleName) throws UnsupportedOperationException, AccessDeniedException
addRole
in interface Group
UnsupportedOperationException
AccessDeniedException
public void addGroup(String groupName) throws UnsupportedOperationException, AccessDeniedException
addGroup
in interface Group
UnsupportedOperationException
AccessDeniedException
public void removeRole(String roleName) throws UnsupportedOperationException, AccessDeniedException
removeRole
in interface Group
UnsupportedOperationException
AccessDeniedException
public void removeGroup(String groupName) throws UnsupportedOperationException, AccessDeniedException
removeGroup
in interface Group
UnsupportedOperationException
AccessDeniedException
public boolean hasRole(String roleName) throws UnsupportedOperationException, AccessDeniedException
hasRole
in interface Group
UnsupportedOperationException
AccessDeniedException
public String getProperty(String propertyName)
getProperty
in interface Group
public void setProperty(String propertyName, String value)
Group
setProperty
in interface Group
public Collection<String> getRoles()
getRoles
in interface Group
Group.getRoles()
public Collection<String> getGroups()
getGroups
in interface Group
Group.getGroups()
public Collection<String> getAllGroups()
Group
getAllGroups
in interface Group
public String getId()
Group
getId
in interface Group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |