public class MgnlGroup extends Object implements Group
Constructor and Description |
---|
MgnlGroup(String id,
String groupName,
Collection<String> subgroupNames,
Collection<String> roleNames) |
Modifier and Type | Method and Description |
---|---|
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.
|
public MgnlGroup(String id, String groupName, Collection<String> subgroupNames, Collection<String> roleNames)
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
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.