Class JdbcGroupDirectory.JdbcGroup
- java.lang.Object
-
- org.ametys.plugins.core.impl.group.directory.jdbc.JdbcGroupDirectory.JdbcGroup
-
- All Implemented Interfaces:
Group
,ModifiableGroup
- Enclosing class:
- JdbcGroupDirectory
private static final class JdbcGroupDirectory.JdbcGroup extends Object implements ModifiableGroup
-
-
Field Summary
Fields Modifier and Type Field Description private GroupDirectory
_groupDirectory
private String
_groupLabel
private GroupIdentity
_identity
private Set<UserIdentity>
_users
-
Constructor Summary
Constructors Constructor Description JdbcGroup(GroupIdentity identity, String label, GroupDirectory groupDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUser(UserIdentity user)
Adds a user to this groupboolean
equals(Object another)
GroupDirectory
getGroupDirectory()
Returns the group directory this group belongs toGroupIdentity
getIdentity()
Returns the identity of this groupString
getLabel()
Returns the label of this groupSet<UserIdentity>
getUsers()
Returns all users of this group.int
hashCode()
void
removeUser(UserIdentity user)
Removes a user to this groupvoid
removeUsers()
Removes all users of this groupvoid
setLabel(String label)
Set the label of this groupString
toString()
-
-
-
Field Detail
-
_users
private Set<UserIdentity> _users
-
_identity
private GroupIdentity _identity
-
_groupLabel
private String _groupLabel
-
_groupDirectory
private GroupDirectory _groupDirectory
-
-
Constructor Detail
-
JdbcGroup
JdbcGroup(GroupIdentity identity, String label, GroupDirectory groupDirectory)
-
-
Method Detail
-
getIdentity
public GroupIdentity getIdentity()
Description copied from interface:Group
Returns the identity of this group- Specified by:
getIdentity
in interfaceGroup
- Returns:
- the identity of this group
-
getLabel
public String getLabel()
Description copied from interface:Group
Returns the label of this group
-
getGroupDirectory
public GroupDirectory getGroupDirectory()
Description copied from interface:Group
Returns the group directory this group belongs to- Specified by:
getGroupDirectory
in interfaceGroup
- Returns:
- the group directory this group belongs to
-
setLabel
public void setLabel(String label)
Description copied from interface:ModifiableGroup
Set the label of this group- Specified by:
setLabel
in interfaceModifiableGroup
- Parameters:
label
- The new label of the group
-
addUser
public void addUser(UserIdentity user)
Description copied from interface:ModifiableGroup
Adds a user to this group- Specified by:
addUser
in interfaceModifiableGroup
- Parameters:
user
- The user to add
-
removeUser
public void removeUser(UserIdentity user)
Description copied from interface:ModifiableGroup
Removes a user to this group- Specified by:
removeUser
in interfaceModifiableGroup
- Parameters:
user
- The user to add
-
removeUsers
public void removeUsers()
Description copied from interface:ModifiableGroup
Removes all users of this group- Specified by:
removeUsers
in interfaceModifiableGroup
-
getUsers
public Set<UserIdentity> getUsers()
Description copied from interface:Group
Returns all users of this group.- Specified by:
getUsers
in interfaceGroup
- Returns:
- Users as a Set of
UserIdentity
-
-