|
||||||||||
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 stored in the ContentRepository.USER_GROUPS
workspace.
Constructor Summary | |
---|---|
protected |
MgnlGroup(Content groupNode)
|
Method Summary | |
---|---|
void |
addGroup(java.lang.String groupName)
Add a subgroup to this group. |
void |
addRole(java.lang.String roleName)
|
java.util.Collection<java.lang.String> |
getAllGroups()
Get all groups assigned to this group, collected recursively from subgroups. |
Content |
getGroupNode()
|
java.util.Collection<java.lang.String> |
getGroups()
Get groups that are directly assigned to group. |
java.lang.String |
getName()
|
java.lang.String |
getProperty(java.lang.String propertyName)
Gets an arbitrary property from this group. |
java.util.Collection<java.lang.String> |
getRoles()
Get roles that are directly assigned to group. |
boolean |
hasRole(java.lang.String roleName)
|
void |
removeGroup(java.lang.String groupName)
Remove a subgroup from this group. |
void |
removeRole(java.lang.String roleName)
|
void |
setProperty(java.lang.String propertyName,
java.lang.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 |
---|
protected MgnlGroup(Content groupNode)
groupNode
- the Content object representing this groupMethod Detail |
---|
public java.lang.String getName()
getName
in interface Group
public void addRole(java.lang.String roleName) throws java.lang.UnsupportedOperationException, AccessDeniedException
addRole
in interface Group
java.lang.UnsupportedOperationException
AccessDeniedException
public void addGroup(java.lang.String groupName) throws java.lang.UnsupportedOperationException, AccessDeniedException
addGroup
in interface Group
java.lang.UnsupportedOperationException
- if the implementation does not support writing
AccessDeniedException
- if loggen in repository user does not sufficient rightspublic void removeRole(java.lang.String roleName) throws java.lang.UnsupportedOperationException, AccessDeniedException
removeRole
in interface Group
java.lang.UnsupportedOperationException
AccessDeniedException
public void removeGroup(java.lang.String groupName) throws java.lang.UnsupportedOperationException, AccessDeniedException
removeGroup
in interface Group
java.lang.UnsupportedOperationException
AccessDeniedException
public boolean hasRole(java.lang.String roleName) throws java.lang.UnsupportedOperationException, AccessDeniedException
hasRole
in interface Group
java.lang.UnsupportedOperationException
AccessDeniedException
public java.lang.String getProperty(java.lang.String propertyName)
Group
getProperty
in interface Group
public void setProperty(java.lang.String propertyName, java.lang.String value)
Group
setProperty
in interface Group
public java.util.Collection<java.lang.String> getRoles()
Group
getRoles
in interface Group
public java.util.Collection<java.lang.String> getGroups()
Group
getGroups
in interface Group
public java.util.Collection<java.lang.String> getAllGroups()
Group
getAllGroups
in interface Group
public Content getGroupNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |