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