| Constructor and Description |
|---|
AMServerDir(ICS ics)
Required signature for IDir Factory
|
AMServerDir(ICS ics,
IDir idir)
Required signature for IUserDir Factory
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttrs(ICS ics,
IName dn,
Attributes attributes)
Add attributes to an existing entry.
|
void |
addGroupMember(ICS ics,
IName group,
IName member)
Add a user to a group.
|
Collection |
andSearch(ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with matching attributes
(AND); searches under Properties.baseDN
|
Collection |
andSearch(ICS ics,
IName parent,
Attributes matchingAttributes)
Simple search returns all entries with matching attributes
(AND)
|
Collection |
children(ICS ics,
IName dn)
Retrieves the immediate child entries of the specified parent.
|
void |
create(ICS ics,
IName dn,
Attributes attributes)
Create an object.
|
void |
delete(ICS ics,
IName dn)
Delete the specified entry.
|
void |
deleteAttrs(ICS ics,
IName dn,
Attributes attributes)
Delete the specified attributes from the specified entry.
|
static Map |
getAttributeMap(Attributes attributes) |
Attributes |
getAttrs(ICS ics,
IName dn,
String[] attrs)
Retrieve the specified attributes from the specified entry.
|
com.iplanet.am.sdk.AMGroup |
getGroup(ICS ics,
String dn) |
com.iplanet.am.sdk.AMObject |
getObject(ICS ics,
IName dn) |
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.
|
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.
|
Collection |
orSearch(ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with attributes matching any of
those specified (OR); searches under Properties.baseDN
|
Collection |
orSearch(ICS ics,
IName parent,
Attributes matchingAttributes)
Simple search returns all entries attributes matching any of
those specified (OR)
|
void |
removeGroupMember(ICS ics,
IName group,
IName member)
Remove a user from a group.
|
void |
replaceAttrs(ICS ics,
IName dn,
Attributes attributes)
Replace the existing attribute value(s) with the specified
value(s).
|
protected boolean |
userIsMember(Set dns,
com.iplanet.am.sdk.AMUser user) |
public AMServerDir(ICS ics)
ics - ICSpublic void create(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(ICS ics, IName dn) throws DirectoryException
IDirdelete in interface IDirdn - Distinguished name of entry to be deleted.DirectoryExceptionpublic Collection andSearch(ICS ics, Attributes matchingAttributes) throws DirectoryException
IDirandSearch in interface IDirmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection andSearch(ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDirandSearch in interface IDirparent - The entry under which to searchmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection orSearch(ICS ics, Attributes matchingAttributes) throws DirectoryException
IDirorSearch in interface IDirmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection orSearch(ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDirorSearch in interface IDirparent - The entry under which to searchmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection children(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(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(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(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDirdeleteAttrs in interface IDirattributes - Attributes to be removed.DirectoryExceptionpublic Attributes getAttrs(ICS ics, IName dn, 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 Collection listUsers(ICS ics) throws DirectoryException
IUserDirlistUsers in interface IUserDirics - The current ICS contextDirectoryException - If there is an error.public Collection listUsers(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 Collection listGroups(ICS ics) throws DirectoryException
IUserDirlistGroups in interface IUserDirics - The current ICS contextDirectoryException - If there is an error.public Collection listGroups(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 Collection groupMembers(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 Collection groupHierarchicalMembers(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 Collection groupMemberships(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 Collection groupHierarchicalMemberships(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(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(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 com.iplanet.am.sdk.AMObject getObject(ICS ics, IName dn) throws DirectoryException
DirectoryExceptionpublic com.iplanet.am.sdk.AMGroup getGroup(ICS ics, String dn) throws DirectoryException
DirectoryExceptionprotected boolean userIsMember(Set dns, com.iplanet.am.sdk.AMUser user)
public static Map getAttributeMap(Attributes attributes)