|
||||||||||
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(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. |
Content |
getGroupNode()
|
Collection<String> |
getGroups()
Get groups that are directly assigned to group. |
String |
getName()
|
String |
getProperty(String propertyName)
Gets an arbitrary property from this group. |
Collection<String> |
getRoles()
Get roles that are directly assigned to group. |
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 |
---|
protected MgnlGroup(Content groupNode)
groupNode
- the Content object representing this groupMethod 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
- if the implementation does not support writing
AccessDeniedException
- if loggen in repository user does not sufficient rightspublic 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)
Group
getProperty
in interface Group
public void setProperty(String propertyName, String value)
Group
setProperty
in interface Group
public Collection<String> getRoles()
Group
getRoles
in interface Group
public Collection<String> getGroups()
Group
getGroups
in interface Group
public Collection<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 |