public class CustomDir extends CSDir
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
errorMessage |
static Log |
log |
aclColumn, CLASS_, CLOSE_PAREN, comma, correlation, dot, idColumn, nameColumn, OPEN_PAREN, passwordColumn, queryAll, urlValueColumn, usernameColumn, valueColumn, whereAll
Constructor and Description |
---|
CustomDir(COM.FutureTense.Interfaces.ICS ics) |
CustomDir(COM.FutureTense.Interfaces.ICS ics,
IDir idir) |
Modifier and Type | Method and Description |
---|---|
void |
addAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes)
Add attributes to an existing entry.
|
void |
addAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes,
java.lang.Object oBatchContext) |
void |
addGroupMember(COM.FutureTense.Interfaces.ICS ics,
IName group,
IName member)
Add a user to a group.
|
java.util.Collection<java.lang.String> |
andSearch(COM.FutureTense.Interfaces.ICS ics,
Attributes matchingAttributes)
Simple search returns all entries with matching attributes
(AND); searches under Properties.baseDN
|
java.util.Collection<java.lang.String> |
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.
|
void |
deleteAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
Attributes attributes,
java.lang.Object oBatchContext) |
Attributes |
getAttrs(COM.FutureTense.Interfaces.ICS ics,
IName dn,
java.lang.String[] attrIds)
Retrieve the specified attributes from the specified entry.
|
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<java.lang.String> |
groupMembers(COM.FutureTense.Interfaces.ICS ics,
IName group)
List all direct members (users and groups) of the specified group
|
java.util.Collection<java.lang.String> |
groupMemberships_(COM.FutureTense.Interfaces.ICS ics,
IName dn) |
java.util.Collection<java.lang.String> |
groupMemberships(COM.FutureTense.Interfaces.ICS ics,
IName dn)
List all groups to which the specified entry directly belongs.
|
protected java.lang.String |
INameToCustomID(COM.FutureTense.Interfaces.ICS ics,
IName dn) |
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<java.lang.String> |
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<java.lang.String> |
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<java.lang.String> |
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).
|
doGroupSearch, doUserSearch, getGroupName, getID, getRequiredColumn, getSpecialAtts, getSystemUserAttrs, restoreVar, setVar, verifyIList
public static Log log
public static final java.lang.String errorMessage
public CustomDir(COM.FutureTense.Interfaces.ICS ics) throws DirectoryException
DirectoryException
public CustomDir(COM.FutureTense.Interfaces.ICS ics, IDir idir) throws DirectoryException
DirectoryException
public java.util.Collection<java.lang.String> andSearch(COM.FutureTense.Interfaces.ICS ics, Attributes matchingAttributes) throws DirectoryException
IDir
andSearch
in interface IDir
andSearch
in class CSDir
matchingAttributes
- The name value pairs to matchDirectoryException
public java.util.Collection<java.lang.String> andSearch(COM.FutureTense.Interfaces.ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDir
andSearch
in interface IDir
andSearch
in class CSDir
parent
- The entry under which to searchmatchingAttributes
- The name value pairs to matchDirectoryException
public Attributes getAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, java.lang.String[] attrIds) throws DirectoryException
IDir
getAttrs
in interface IDir
getAttrs
in class CSDir
dn
- 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.DirectoryException
public java.util.Collection<java.lang.String> groupMembers(COM.FutureTense.Interfaces.ICS ics, IName group) throws DirectoryException
IUserDir
groupMembers
in interface IUserDir
groupMembers
in class CSDir
ics
- 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 java.util.Collection<java.lang.String> groupMemberships(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
IUserDir
groupMemberships
in interface IUserDir
groupMemberships
in class CSDir
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<java.lang.String> groupMemberships_(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
DirectoryException
protected java.lang.String INameToCustomID(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
DirectoryException
public java.util.Collection<java.lang.String> listUsers(COM.FutureTense.Interfaces.ICS ics) throws DirectoryException
IUserDir
listUsers
in interface IUserDir
listUsers
in class CSDir
ics
- The current ICS contextDirectoryException
- If there is an error.public java.util.Collection<java.lang.String> orSearch(COM.FutureTense.Interfaces.ICS ics, Attributes matchingAttributes) throws DirectoryException
IDir
orSearch
in interface IDir
orSearch
in class CSDir
matchingAttributes
- The name value pairs to matchDirectoryException
public java.util.Collection<java.lang.String> orSearch(COM.FutureTense.Interfaces.ICS ics, IName parent, Attributes matchingAttributes) throws DirectoryException
IDir
orSearch
in interface IDir
orSearch
in class CSDir
parent
- The entry under which to searchmatchingAttributes
- The name value pairs to matchDirectoryException
public java.util.Collection listUsers(COM.FutureTense.Interfaces.ICS ics, IName commonAncestor) throws DirectoryException
IUserDir
listUsers
in interface IUserDir
listUsers
in class CSDir
ics
- The current ICS contextcommonAncestor
- The node from which to list descendant usersDirectoryException
- If there is an error.public void addAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
addAttrs
in interface IDir
addAttrs
in class CSDir
dn
- The distinguished name of the entry to which
attributes are added.attributes
- Attributes to be added.DirectoryException
public void addGroupMember(COM.FutureTense.Interfaces.ICS ics, IName group, IName member) throws DirectoryException
IUserDir
addGroupMember
in interface IUserDir
addGroupMember
in class CSDir
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 create(COM.FutureTense.Interfaces.ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
create
in interface IDir
create
in class CSDir
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(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
IDir
delete
in interface IDir
delete
in class CSDir
dn
- Distinguished name of entry to be deleted.DirectoryException
public void deleteAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
deleteAttrs
in interface IDir
deleteAttrs
in class CSDir
attributes
- Attributes to be removed.DirectoryException
public void removeGroupMember(COM.FutureTense.Interfaces.ICS ics, IName group, IName member) throws DirectoryException
IUserDir
removeGroupMember
in interface IUserDir
removeGroupMember
in class CSDir
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 replaceAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, Attributes attributes) throws DirectoryException
IDir
replaceAttrs
in interface IDir
replaceAttrs
in class CSDir
dn
- The distinguished name of the entry for which
attributes are being replaced.attributes
- Attributes to be replaced.DirectoryException
public java.util.Collection listGroups(COM.FutureTense.Interfaces.ICS ics) throws DirectoryException
IUserDir
listGroups
in interface IUserDir
listGroups
in class CSDir
ics
- The current ICS contextDirectoryException
- If there is an error.public java.util.Collection listGroups(COM.FutureTense.Interfaces.ICS ics, IName commonAncestor) throws DirectoryException
IUserDir
listGroups
in interface IUserDir
listGroups
in class CSDir
ics
- The current ICS contextcommonAncestor
- The node from which to list descendant groupsDirectoryException
- If there is an error.public java.util.Collection children(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
IDir
children
in interface IDir
children
in class CSDir
dn
- The distinguished name of the entry for which
children are to be found.DirectoryException
public void addAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, Attributes attributes, java.lang.Object oBatchContext) throws DirectoryException
addAttrs
in class CSDir
DirectoryException
public void deleteAttrs(COM.FutureTense.Interfaces.ICS ics, IName dn, Attributes attributes, java.lang.Object oBatchContext) throws DirectoryException
deleteAttrs
in class CSDir
DirectoryException
public java.util.Collection groupHierarchicalMembers(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
IUserDir
groupHierarchicalMembers
in interface IUserDir
groupHierarchicalMembers
in class CSDir
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 groupHierarchicalMemberships(COM.FutureTense.Interfaces.ICS ics, IName dn) throws DirectoryException
IUserDir
groupHierarchicalMemberships
in interface IUserDir
groupHierarchicalMemberships
in class CSDir
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.