Package org.restlet.security
Class Group
java.lang.Object
org.restlet.security.Group
Group that contains member groups and users.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description.Returns the modifiable list of member groups.getName()Returns the display name.booleanIndicates if the roles of the parent group should be inherited.voidsetDescription(String description) Sets the description.voidsetInheritingRoles(boolean inheritingRoles) Indicates if the roles of the parent group should be inherited.voidsetMemberGroups(List<Group> memberGroups) Sets the modifiable list of member groups.voidsetMemberUsers(List<User> memberUsers) Sets the modifiable list of member user references.voidSets the display name.toString()
-
Constructor Details
-
Group
public Group()Default constructor. Note that roles are inherited by default. -
Group
Constructor. Note that roles are inherited by default.- Parameters:
name- The display name.description- The description.
-
Group
Constructor.- Parameters:
name- The display name.description- The description.inheritingRoles- Indicates if the roles of the parent group should be inherited.
-
-
Method Details
-
getDescription
Returns the description.- Returns:
- The description
-
getMemberGroups
Returns the modifiable list of member groups.- Returns:
- The modifiable list of member groups.
-
getMemberUsers
-
getName
Returns the display name.- Returns:
- The display name.
-
isInheritingRoles
public boolean isInheritingRoles()Indicates if the roles of the parent group should be inherited. Those roles indirectly cover the granted or denied permissions.- Returns:
- True if the roles of the parent group should be inherited.
-
setDescription
Sets the description.- Parameters:
description- The description.
-
setInheritingRoles
public void setInheritingRoles(boolean inheritingRoles) Indicates if the roles of the parent group should be inherited. Those roles indirectly cover the granted or denied permissions.- Parameters:
inheritingRoles- True if the roles of the parent group should be inherited.
-
setMemberGroups
Sets the modifiable list of member groups. This method clears the current list and adds all entries in the parameter list.- Parameters:
memberGroups- A list of member groups.
-
setMemberUsers
Sets the modifiable list of member user references. This method clears the current list and adds all entries in the parameter list.- Parameters:
memberUsers- A list of member user references.
-
setName
Sets the display name.- Parameters:
name- The display name.
-
toString
-