private static final class LdapGroupDirectory.LdapGroup extends Object implements Group
Group
for Ldap group directoryModifier and Type | Field and Description |
---|---|
private LdapGroupDirectory |
_groupDirectory |
private String |
_groupLabel |
private GroupIdentity |
_identity |
private Logger |
_logger |
private Attribute |
_membersAttr |
private boolean |
_userInitialized |
private Set<UserIdentity> |
_users |
Constructor and Description |
---|
LdapGroup(GroupIdentity identity,
String label,
LdapGroupDirectory groupDirectory,
Attribute membersAttr,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
private void |
_cleanup(Context context,
NamingEnumeration members) |
private Set<UserIdentity> |
_getUsersFromCache(GroupIdentity groupIdentity) |
private Set<UserIdentity> |
_getUsersFromMembersAttr() |
private boolean |
_hasUsersFromCache(GroupIdentity groupIdentity) |
private boolean |
_isDn(String userDN) |
private void |
_loadUsersInCache(GroupIdentity groupIdentity,
Set<UserIdentity> users) |
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() |
String |
toString() |
private boolean _userInitialized
private Set<UserIdentity> _users
private GroupIdentity _identity
private String _groupLabel
private LdapGroupDirectory _groupDirectory
private Attribute _membersAttr
LdapGroup(GroupIdentity identity, String label, LdapGroupDirectory groupDirectory, Attribute membersAttr, Logger logger)
public GroupIdentity getIdentity()
Group
getIdentity
in interface Group
public String getLabel()
Group
public GroupDirectory getGroupDirectory()
Group
getGroupDirectory
in interface Group
public Set<UserIdentity> getUsers()
Group
getUsers
in interface Group
UserIdentity
private boolean _hasUsersFromCache(GroupIdentity groupIdentity)
private Set<UserIdentity> _getUsersFromCache(GroupIdentity groupIdentity)
private void _loadUsersInCache(GroupIdentity groupIdentity, Set<UserIdentity> users)
private Set<UserIdentity> _getUsersFromMembersAttr()
private void _cleanup(Context context, NamingEnumeration members)