| Constructor and Description |
|---|
AMServerDir(COM.FutureTense.Interfaces.ICS ics)
Required signature for IDir Factory
|
AMServerDir(COM.FutureTense.Interfaces.ICS ics,
IDir idir)
Required signature for IUserDir Factory
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
Add attributes to an existing entry.
|
void |
addGroupMember(COM.FutureTense.Interfaces.ICS ics,
IName group,
IName member)
Add a user to a group.
|
java.util.Collection |
andSearch(COM.FutureTense.Interfaces.ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with matching attributes
(AND); searches under Properties.baseDN
|
java.util.Collection |
andSearch(COM.FutureTense.Interfaces.ICS ics,
IName parent,
Attributes matchingAttributes)
Simple search returns all entries with matching attributes
(AND)
|
java.util.Collection |
children(COM.FutureTense.Interfaces.ICS ics,
IName dn)
Retrieves the immediate child entries of the specified parent.
|
void |
create(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
Create an object.
|
void |
delete(COM.FutureTense.Interfaces.ICS ics,
IName dn)
Delete the specified entry.
|
void |
deleteAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
Delete the specified attributes from the specified entry.
|
static java.util.Map |
getAttributeMap(Attributes attributes) |
Attributes |
getAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
java.lang.String[] attrs)
Retrieve the specified attributes from the specified entry.
|
AMGroup |
getGroup(COM.FutureTense.Interfaces.ICS ics,
java.lang.String dn) |
AMObject |
getObject(COM.FutureTense.Interfaces.ICS ics,
IName dn) |
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.
|
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.
|
java.util.Collection |
orSearch(COM.FutureTense.Interfaces.ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with attributes matching any of
those specified (OR); searches under Properties.baseDN
|
java.util.Collection |
orSearch(COM.FutureTense.Interfaces.ICS ics,
IName parent,
Attributes matchingAttributes)
Simple search returns all entries attributes matching any of
those specified (OR)
|
void |
removeGroupMember(COM.FutureTense.Interfaces.ICS ics,
IName group,
IName member)
Remove a user from a group.
|
void |
replaceAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
Replace the existing attribute value(s) with the specified
value(s).
|
protected boolean |
userIsMember(java.util.Set dns,
AMUser user) |
public AMServerDir(COM.FutureTense.Interfaces.ICS ics)
ics - ICSpublic AMServerDir(COM.FutureTense.Interfaces.ICS ics,
IDir idir)
ics - ICSidir - Ignored, we only support our own IDir implementation.public void create(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
throws DirectoryException
IDircreate in interface IDirdn - Distinguished name of entry to be created.attributes - Attribute(s) to create for this entry. If
null, creates entry with no attributes.DirectoryExceptionpublic void delete(COM.FutureTense.Interfaces.ICS ics,
IName dn)
throws DirectoryException
IDirdelete in interface IDirdn - Distinguished name of entry to be deleted.DirectoryExceptionpublic java.util.Collection andSearch(COM.FutureTense.Interfaces.ICS ics,
Attributes matchingAttributes)
throws DirectoryException
IDirandSearch in interface IDirmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic java.util.Collection andSearch(COM.FutureTense.Interfaces.ICS ics,
IName parent,
Attributes matchingAttributes)
throws DirectoryException
IDirandSearch in interface IDirparent - The entry under which to searchmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic java.util.Collection orSearch(COM.FutureTense.Interfaces.ICS ics,
Attributes matchingAttributes)
throws DirectoryException
IDirorSearch in interface IDirmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic java.util.Collection orSearch(COM.FutureTense.Interfaces.ICS ics,
IName parent,
Attributes matchingAttributes)
throws DirectoryException
IDirorSearch in interface IDirparent - The entry under which to searchmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic java.util.Collection children(COM.FutureTense.Interfaces.ICS ics,
IName dn)
throws DirectoryException
IDirchildren in interface IDirdn - The distinguished name of the entry for which
children are to be found.DirectoryExceptionpublic void addAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
throws DirectoryException
IDiraddAttrs in interface IDirdn - The distinguished name of the entry to which
attributes are added.attributes - Attributes to be added.DirectoryExceptionpublic void replaceAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
throws DirectoryException
IDirreplaceAttrs in interface IDirdn - The distinguished name of the entry for which
attributes are being replaced.attributes - Attributes to be replaced.DirectoryExceptionpublic void deleteAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
throws DirectoryException
IDirdeleteAttrs in interface IDirattributes - Attributes to be removed.DirectoryExceptionpublic Attributes getAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, java.lang.String[] attrs) throws DirectoryException
IDirgetAttrs in interface IDirdn - The distinguished name of the entry for which
attributes are being retrieved.attrs - The identifiers of the attributes to
retrieve. null indicates that all attributes should be
retrieved; an empty array indicates that none should be
retrieved.DirectoryExceptionpublic java.util.Collection listUsers(COM.FutureTense.Interfaces.ICS ics)
throws DirectoryException
IUserDirlistUsers in interface IUserDirics - The current ICS contextDirectoryException - If there is an error.public java.util.Collection listUsers(COM.FutureTense.Interfaces.ICS ics,
IName commonAncestor)
throws DirectoryException
IUserDirlistUsers in interface IUserDirics - 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
IUserDirlistGroups in interface IUserDirics - The current ICS contextDirectoryException - If there is an error.public java.util.Collection listGroups(COM.FutureTense.Interfaces.ICS ics,
IName commonAncestor)
throws DirectoryException
IUserDirlistGroups in interface IUserDirics - 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
IUserDirgroupMembers in interface IUserDirics - 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
IUserDirgroupHierarchicalMembers in interface IUserDirics - 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
IUserDirgroupMemberships in interface IUserDirics - 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
IUserDirgroupHierarchicalMemberships in interface IUserDirics - 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
IUserDiraddGroupMember in interface IUserDirics - 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
IUserDirremoveGroupMember in interface IUserDirics - The current ICS contextgroup - The distinguished name of the group.member - The distinguished name of the user.DirectoryException - If there is an error.public AMObject getObject(COM.FutureTense.Interfaces.ICS ics,
IName dn)
throws DirectoryException
DirectoryExceptionpublic AMGroup getGroup(COM.FutureTense.Interfaces.ICS ics,
java.lang.String dn)
throws DirectoryException
DirectoryExceptionprotected boolean userIsMember(java.util.Set dns,
AMUser user)
public static java.util.Map getAttributeMap(Attributes attributes)