public class CustomDir extends CSDir
| Modifier and Type | Field and Description |
|---|---|
static String |
errorMessage |
static org.apache.commons.logging.Log |
log |
aclColumn, CLASS_, CLOSE_PAREN, comma, correlation, dot, idColumn, nameColumn, OPEN_PAREN, passwordColumn, queryAll, urlValueColumn, usernameColumn, valueColumn, whereAll| Constructor and Description |
|---|
CustomDir(ICS ics) |
CustomDir(ICS ics,
IDir idir) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttrs(ICS ics,
IName dn,
Attributes attributes)
Add attributes to an existing entry.
|
void |
addAttrs(ICS ics,
IName dn,
Attributes attributes,
Object oBatchContext) |
void |
addGroupMember(ICS ics,
IName group,
IName member)
Add a user to a group.
|
Collection<String> |
andSearch(ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with matching attributes
(AND); searches under Properties.baseDN
|
Collection<String> |
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.
|
void |
deleteAttrs(ICS ics,
IName dn,
Attributes attributes,
Object oBatchContext) |
Attributes |
getAttrs(ICS ics,
IName dn,
String[] attrIds)
Retrieve the specified attributes from the specified entry.
|
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<String> |
groupMembers(ICS ics,
IName group)
List all direct members (users and groups) of the specified group
|
Collection<String> |
groupMemberships_(ICS ics,
IName dn) |
Collection<String> |
groupMemberships(ICS ics,
IName dn)
List all groups to which the specified entry directly belongs.
|
protected String |
INameToCustomID(ICS ics,
IName dn) |
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<String> |
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<String> |
orSearch(ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with attributes matching any of
those specified (OR); searches under Properties.baseDN
|
Collection<String> |
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).
|
doGroupSearch, doUserSearch, getGroupName, getID, getRequiredColumn, getSpecialAtts, getSystemUserAttrs, restoreVar, setVar, verifyIListpublic static org.apache.commons.logging.Log log
public static final String errorMessage
public CustomDir(ICS ics) throws DirectoryException
DirectoryExceptionpublic CustomDir(ICS ics, IDir idir) throws DirectoryException
DirectoryExceptionpublic Collection<String> andSearch(ICS ics, Attributes matchingAttributes) throws DirectoryException
IDirandSearch in interface IDirandSearch in class CSDirmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection<String> andSearch(ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDirandSearch in interface IDirandSearch in class CSDirparent - The entry under which to searchmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Attributes getAttrs(ICS ics, IName dn, String[] attrIds) throws DirectoryException
IDirgetAttrs in interface IDirgetAttrs in class CSDirdn - The distinguished name of the entry for which
attributes are being retrieved.attrIds - 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<String> groupMembers(ICS ics, IName group) throws DirectoryException
IUserDirgroupMembers in interface IUserDirgroupMembers in class CSDirics - The current ICS contextgroup - 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<String> groupMemberships(ICS ics, IName dn) throws DirectoryException
IUserDirgroupMemberships in interface IUserDirgroupMemberships in class CSDirics - 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<String> groupMemberships_(ICS ics, IName dn) throws DirectoryException
DirectoryExceptionprotected String INameToCustomID(ICS ics, IName dn) throws DirectoryException
DirectoryExceptionpublic Collection<String> listUsers(ICS ics) throws DirectoryException
IUserDirlistUsers in interface IUserDirlistUsers in class CSDirics - The current ICS contextDirectoryException - If there is an error.public Collection<String> orSearch(ICS ics, Attributes matchingAttributes) throws DirectoryException
IDirorSearch in interface IDirorSearch in class CSDirmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection<String> orSearch(ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDirorSearch in interface IDirorSearch in class CSDirparent - The entry under which to searchmatchingAttributes - The name value pairs to matchDirectoryExceptionpublic Collection listUsers(ICS ics, IName commonAncestor) throws DirectoryException
IUserDirlistUsers in interface IUserDirlistUsers in class CSDirics - The current ICS contextcommonAncestor - The node from which to list descendant usersDirectoryException - If there is an error.public void addAttrs(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDiraddAttrs in interface IDiraddAttrs in class CSDirdn - The distinguished name of the entry to which
attributes are added.attributes - Attributes to be added.DirectoryExceptionpublic void addGroupMember(ICS ics, IName group, IName member) throws DirectoryException
IUserDiraddGroupMember in interface IUserDiraddGroupMember in class CSDirics - 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 create(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDircreate in interface IDircreate in class CSDirdn - 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 IDirdelete in class CSDirdn - Distinguished name of entry to be deleted.DirectoryExceptionpublic void deleteAttrs(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDirdeleteAttrs in interface IDirdeleteAttrs in class CSDirattributes - Attributes to be removed.DirectoryExceptionpublic void removeGroupMember(ICS ics, IName group, IName member) throws DirectoryException
IUserDirremoveGroupMember in interface IUserDirremoveGroupMember in class CSDirics - 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 replaceAttrs(ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDirreplaceAttrs in interface IDirreplaceAttrs in class CSDirdn - The distinguished name of the entry for which
attributes are being replaced.attributes - Attributes to be replaced.DirectoryExceptionpublic Collection listGroups(ICS ics) throws DirectoryException
IUserDirlistGroups in interface IUserDirlistGroups in class CSDirics - The current ICS contextDirectoryException - If there is an error.public Collection listGroups(ICS ics, IName commonAncestor) throws DirectoryException
IUserDirlistGroups in interface IUserDirlistGroups in class CSDirics - The current ICS contextcommonAncestor - The node from which to list descendant groupsDirectoryException - If there is an error.public Collection children(ICS ics, IName dn) throws DirectoryException
IDirchildren in interface IDirchildren in class CSDirdn - The distinguished name of the entry for which
children are to be found.DirectoryExceptionpublic void addAttrs(ICS ics, IName dn, Attributes attributes, Object oBatchContext) throws DirectoryException
addAttrs in class CSDirDirectoryExceptionpublic void deleteAttrs(ICS ics, IName dn, Attributes attributes, Object oBatchContext) throws DirectoryException
deleteAttrs in class CSDirDirectoryExceptionpublic Collection groupHierarchicalMembers(ICS ics, IName dn) throws DirectoryException
IUserDirgroupHierarchicalMembers in interface IUserDirgroupHierarchicalMembers in class CSDirics - 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 groupHierarchicalMemberships(ICS ics, IName dn) throws DirectoryException
IUserDirgroupHierarchicalMemberships in interface IUserDirgroupHierarchicalMemberships in class CSDirics - 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.