Interface IAnyGroup
- All Known Implementing Classes:
AnyGroup
public interface IAnyGroup
The Interface IAnyGroup. The group identifier is its name.
Users and groups members of the group are identified by their respective identifier (group name for the group and user login for the user).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanList of applications assigned to this group is set.booleanDescription of group is set.booleanList of groups included in this group is set.booleanList of members included in this group is set.booleanList of group roles is set.booleanList of users included in this group is set.Gets the applications.Gets the description.Gets the groups included in this group.getId()Gets the id (group name).Gets the members.getRoles()Gets the list of roles.getUsers()Gets the users.voidsetApplications(List<String> applications) Sets the application names assigned to the group.voidsetDescription(String description) Sets the description.voidSets the groups included in this group.voidSets the id (group name).voidsetMembers(List<String> members) Sets the members list.voidSets the list of roles.voidSets the users.
-
Method Details
-
getId
String getId()Gets the id (group name).- Returns:
- the id
-
setId
Sets the id (group name).Group identifier is required and must be only composed with lower case characters, underscore and number. Group identifier maximum length is 128 characters.
- Parameters:
id- the new id
-
containsDescription
boolean containsDescription()Description of group is set.- Returns:
- true, if group description is set.
-
getDescription
String getDescription()Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
containsApplications
boolean containsApplications()List of applications assigned to this group is set.- Returns:
- true, if group applications is set.
-
getApplications
Gets the applications.- Returns:
- the application names
-
setApplications
Sets the application names assigned to the group.- Parameters:
applications- the new applications
-
containsRoles
boolean containsRoles()List of group roles is set.- Returns:
- true, if any group role is set.
-
getRoles
Gets the list of roles.- Returns:
- the roles
-
setRoles
Sets the list of roles.- Parameters:
roles- the new roles
-
containsGroups
boolean containsGroups()List of groups included in this group is set.- Returns:
- true, if list of groups included is set
-
getGroups
Gets the groups included in this group.- Returns:
- the groups
-
setGroups
Sets the groups included in this group.If you use this method you cannot use
setMembers(List).- Parameters:
groups- the new groups
-
containsMembers
boolean containsMembers()List of members included in this group is set.Members list is a mixed list of users and groups. If you use this method you cannot use
containsUsers()orcontainsGroups()- Returns:
- true, if members in this group is set
-
getMembers
Gets the members. A member can be a user or a group.Members list is a mixed list of users and groups. If you use this method you cannot use
getUsers()orgetGroups()- Returns:
- the members
-
setMembers
Sets the members list.A member can be a user or a group. If you use this method you cannot use
setUsers(List)orsetGroups(List).- Parameters:
members- the new members
-
containsUsers
boolean containsUsers()List of users included in this group is set.- Returns:
- true, if list of users is set
-
getUsers
Gets the users.- Returns:
- the users list
-
setUsers
Sets the users. If you use this method you cannot usesetMembers(List).- Parameters:
users- the new users
-