private static final class JdbcGroupDirectory.JdbcGroup extends Object implements ModifiableGroup
Modifier and Type | Field and Description |
---|---|
private GroupDirectory |
_groupDirectory |
private String |
_groupLabel |
private GroupIdentity |
_identity |
private Set<UserIdentity> |
_users |
Constructor and Description |
---|
JdbcGroup(GroupIdentity identity,
String label,
GroupDirectory groupDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
addUser(UserIdentity user)
Adds a user to this group
|
boolean |
equals(Object another) |
GroupDirectory |
getGroupDirectory()
Returns the group directory this group belongs to
|
GroupIdentity |
getIdentity()
Returns the identity of this group
|
String |
getLabel()
Returns the label of this group
|
Set<UserIdentity> |
getUsers()
Returns all users of this group.
|
int |
hashCode() |
void |
removeUser(UserIdentity user)
Removes a user to this group
|
void |
removeUsers()
Removes all users of this group
|
void |
setLabel(String label)
Set the label of this group
|
String |
toString() |
private Set<UserIdentity> _users
private GroupIdentity _identity
private String _groupLabel
private GroupDirectory _groupDirectory
JdbcGroup(GroupIdentity identity, String label, GroupDirectory groupDirectory)
public GroupIdentity getIdentity()
Group
getIdentity
in interface Group
public String getLabel()
Group
public GroupDirectory getGroupDirectory()
Group
getGroupDirectory
in interface Group
public void setLabel(String label)
ModifiableGroup
setLabel
in interface ModifiableGroup
label
- The new label of the grouppublic void addUser(UserIdentity user)
ModifiableGroup
addUser
in interface ModifiableGroup
user
- The user to addpublic void removeUser(UserIdentity user)
ModifiableGroup
removeUser
in interface ModifiableGroup
user
- The user to addpublic void removeUsers()
ModifiableGroup
removeUsers
in interface ModifiableGroup
public Set<UserIdentity> getUsers()
Group
getUsers
in interface Group
UserIdentity