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
IDir
create
in interface IDir
dn
- Distinguished name of entry to be created.attributes
- Attribute(s) to create for this entry. If
null, creates entry with no attributes.DirectoryException
public void delete(ICS ics, IName dn) throws DirectoryException
IDir
delete
in interface IDir
dn
- Distinguished name of entry to be deleted.DirectoryException
public Collection andSearch(ICS ics, Attributes matchingAttributes) throws DirectoryException
IDir
andSearch
in interface IDir
matchingAttributes
- The name value pairs to matchDirectoryException
public Collection andSearch(ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDir
andSearch
in interface IDir
parent
- The entry under which to searchmatchingAttributes
- The name value pairs to matchDirectoryException
public Collection orSearch(ICS ics, Attributes matchingAttributes) throws DirectoryException
IDir
orSearch
in interface IDir
matchingAttributes
- The name value pairs to matchDirectoryException
public Collection orSearch(ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDir
orSearch
in interface IDir
parent
- The entry under which to searchmatchingAttributes
- The name value pairs to matchDirectoryException
public Collection children(ICS ics, IName dn) throws DirectoryException
IDir
children
in interface IDir
dn
- The distinguished name of the entry for which
children are to be found.DirectoryException
public void addAttrs(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
addAttrs
in interface IDir
dn
- The distinguished name of the entry to which
attributes are added.attributes
- Attributes to be added.DirectoryException
public void replaceAttrs(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
replaceAttrs
in interface IDir
dn
- The distinguished name of the entry for which
attributes are being replaced.attributes
- Attributes to be replaced.DirectoryException
public void deleteAttrs(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
deleteAttrs
in interface IDir
attributes
- Attributes to be removed.DirectoryException
public Attributes getAttrs(ICS ics, IName dn, String[] attrs) throws DirectoryException
IDir
getAttrs
in interface IDir
dn
- 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.DirectoryException
public Collection listUsers(ICS ics) throws DirectoryException
IUserDir
listUsers
in interface IUserDir
ics
- The current ICS contextDirectoryException
- If there is an error.public Collection listUsers(ICS ics, IName commonAncestor) throws DirectoryException
IUserDir
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
IUserDir
listGroups
in interface IUserDir
ics
- The current ICS contextDirectoryException
- If there is an error.public Collection listGroups(ICS ics, IName commonAncestor) throws DirectoryException
IUserDir
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
IUserDir
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
IUserDir
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
IUserDir
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
IUserDir
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
IUserDir
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
IUserDir
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.public com.iplanet.am.sdk.AMObject getObject(ICS ics, IName dn) throws DirectoryException
DirectoryException
public com.iplanet.am.sdk.AMGroup getGroup(ICS ics, String dn) throws DirectoryException
DirectoryException
protected boolean userIsMember(Set dns, com.iplanet.am.sdk.AMUser user)
public static Map getAttributeMap(Attributes attributes)