Modifier and Type | Field and Description |
---|---|
protected IDir |
m_iDir |
static String |
s_strGroupMember |
static String |
s_strGroupMembership |
static String |
s_strObjectClass |
static String |
s_strObjectClassGroup |
static String |
s_strObjectClassPerson |
static String |
s_strRootGroup |
static String |
s_strRootPerson |
static String |
searchhierarchical |
Constructor and Description |
---|
LDAPUserDir(ICS ics,
IDir idir) |
Modifier and Type | Method and Description |
---|---|
void |
addGroupMember(ICS ics,
IName group,
IName member)
Add a user to a group.
|
protected Attribute |
getAttribute(ICS ics,
IName dn,
String attname)
returns null if uniquemember attribute is not found.
|
protected int |
getMemberIndex(ICS ics,
Attribute memberAtt,
IName member) |
Collection |
groupHierarchicalMembers(ICS ics,
IName dn)
List all user members, direct and inherited, of the specified group.
|
Collection |
groupHierarchicalMemberships(ICS ics,
IName dn)
List all groups to which the specified entry belongs, directly or inherited.
|
Collection |
groupMembers(ICS ics,
IName dn)
List all direct members (users and groups) of the specified group
|
Collection |
groupMemberships(ICS ics,
IName dn)
List all groups to which the specified entry directly belongs.
|
protected HashMap |
hierarchicalMembers(ICS ics,
IName group,
HashMap members,
HashMap alreadyLooked) |
protected HashMap |
hierarchicalMemberships(ICS ics,
HashMap groups,
IName member) |
protected boolean |
isMember(ICS ics,
IName group,
IName member) |
Collection |
listGroups(ICS ics)
Lists all groups (descendants of Properties.groupParent)
|
Collection |
listGroups(ICS ics,
IName commonAncestor)
Lists all groups descended from a specified node.
|
Collection |
listUsers(ICS ics)
Lists all users (descendants of Properties.peopleParent)
|
Collection |
listUsers(ICS ics,
IName commonAncestor)
Lists all users descended from a specified node.
|
void |
removeGroupMember(ICS ics,
IName group,
IName member)
Remove a user from a group.
|
protected IDir m_iDir
public static String s_strObjectClass
public static String s_strObjectClassPerson
public static String s_strObjectClassGroup
public static String s_strRootPerson
public static String s_strRootGroup
public static String s_strGroupMember
public static String s_strGroupMembership
public static String searchhierarchical
public Collection listUsers(ICS ics) throws DirectoryException
listUsers
in interface IUserDir
ics
- The current ICS contextDirectoryException
- If there is an error.public Collection listUsers(ICS ics, IName commonAncestor) throws DirectoryException
listUsers
in interface IUserDir
ics
- The current ICS contextcommonAncestor
- The node from which to list descendant usersDirectoryException
- If there is an error.public Collection listGroups(ICS ics) throws DirectoryException
listGroups
in interface IUserDir
ics
- The current ICS contextDirectoryException
- If there is an error.public Collection listGroups(ICS ics, IName commonAncestor) throws DirectoryException
listGroups
in interface IUserDir
ics
- The current ICS contextcommonAncestor
- The node from which to list descendant groupsDirectoryException
- If there is an error.public Collection groupMembers(ICS ics, IName dn) throws DirectoryException
groupMembers
in interface IUserDir
ics
- The current ICS contextdn
- The distinguished name of the group.
If the common name is used and is not unique, the
Properties.groupParent property is used to distinguish
the name.DirectoryException
- If there is an error.public Collection groupHierarchicalMembers(ICS ics, IName dn) throws DirectoryException
groupHierarchicalMembers
in interface IUserDir
ics
- The current ICS contextdn
- The distinguished name of the group.
If the common name is used and is not unique, the
Properties.groupParent property is used to distinguish
the name.DirectoryException
- If there is an error.public Collection groupMemberships(ICS ics, IName dn) throws DirectoryException
groupMemberships
in interface IUserDir
ics
- The current ICS contextdn
- The distinguished name of the entry.
If the common name is used and is not unique, the
Properties.groupParent property is used to distinguish
the name.DirectoryException
- If there is an error.public Collection groupHierarchicalMemberships(ICS ics, IName dn) throws DirectoryException
groupHierarchicalMemberships
in interface IUserDir
ics
- The current ICS contextdn
- The distinguished name of the entry.
If the common name is used and is not unique, the
Properties.groupParent property is used to distinguish
the name.DirectoryException
- If there is an error.public void addGroupMember(ICS ics, IName group, IName member) throws DirectoryException
addGroupMember
in interface IUserDir
ics
- The current ICS contextgroup
- The distinguished name of the group.member
- The distinguished name of the user.DirectoryException
- If there is an error.public void removeGroupMember(ICS ics, IName group, IName member) throws DirectoryException
removeGroupMember
in interface IUserDir
ics
- The current ICS contextgroup
- The distinguished name of the group.member
- The distinguished name of the user.DirectoryException
- If there is an error.protected HashMap hierarchicalMembers(ICS ics, IName group, HashMap members, HashMap alreadyLooked) throws DirectoryException
DirectoryException
protected HashMap hierarchicalMemberships(ICS ics, HashMap groups, IName member) throws DirectoryException
DirectoryException
protected boolean isMember(ICS ics, IName group, IName member) throws DirectoryException
DirectoryException
protected int getMemberIndex(ICS ics, Attribute memberAtt, IName member) throws DirectoryException
DirectoryException
protected Attribute getAttribute(ICS ics, IName dn, String attname) throws DirectoryException
DirectoryException