public class GroupHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GroupHelper.GroupMembership |
static class |
GroupHelper.Modification<T> |
Constructor and Description |
---|
GroupHelper(LdapConnection conn) |
public GroupHelper(LdapConnection conn)
public static String getPosixRefAttribute()
memberUid
attributes, and the values of this attributes are the uid
attributes of the group members. So this method returns "uid"
.public Set<GroupHelper.GroupMembership> getLdapGroupMemberships(String entryDN)
public void addLdapGroupMemberships(String entryDN, Collection<String> groupDNs, LdapContext context)
public void removeLdapGroupMemberships(String entryDN, Collection<String> groupDNs, LdapContext context)
public void modifyLdapGroupMemberships(GroupHelper.Modification<GroupHelper.GroupMembership> mod, LdapContext context)
public List<String> getPosixGroups(Collection<String> posixRefAttrs)
public Set<GroupHelper.GroupMembership> getPosixGroupMemberships(Collection<String> posixRefAttrs)
public void addPosixGroupMemberships(String posixRefAttr, Collection<String> groupDNs, LdapContext context)
public void removePosixGroupMemberships(Set<GroupHelper.GroupMembership> memberships, LdapContext context)
public void modifyPosixGroupMemberships(GroupHelper.Modification<GroupHelper.GroupMembership> mod, LdapContext context)
Copyright © 2018–2025. All rights reserved.