public interface IDirectoryServices
Modifier and Type | Method and Description |
---|---|
void |
addListener(SSOToken token,
AMObjectListener listener,
Map configMap)
Add a listener object that will receive notifications when entries are
changed.
|
void |
changePassword(SSOToken token,
String entryDN,
String attrName,
String oldPassword,
String newPassword)
Changes user password.
|
String |
createAMTemplate(SSOToken token,
String entryDN,
int objectType,
String serviceName,
Map attributes,
int priority)
Create an AMTemplate (COSTemplate)
|
void |
createEntry(SSOToken token,
String entryName,
int objectType,
String parentDN,
Map attributes)
Create an entry in the Directory
|
boolean |
doesEntryExists(SSOToken token,
String entryDN)
Returns a true if the entry exists in the directory.
|
String |
getAMTemplateDN(SSOToken token,
String entryDN,
int objectType,
String serviceName,
int type)
Get the AMTemplate DN (COSTemplateDN)
|
Map |
getAttributes(SSOToken token,
String entryDN,
boolean ignoreCompliance,
boolean byteValues,
int profileType)
Returns a map of attribute-values for requested attributes.
|
Map |
getAttributes(SSOToken token,
String entryDN,
int profileType)
Returns a Map with attribute-values requested from the directory.
|
Map |
getAttributes(SSOToken token,
String entryDN,
Set attrNames,
boolean ignoreCompliance,
boolean byteValues,
int profileType)
Returns a map of attribute-values for requested attributes.
|
Map |
getAttributes(SSOToken token,
String entryDN,
Set attrNames,
int profileType)
Returns a Map with attribute-values requested from the directory.
|
Map |
getAttributesByteValues(SSOToken token,
String entryDN,
int profileType)
Returns a map of attribute-values for binary attributes.
|
Map |
getAttributesByteValues(SSOToken token,
String entryDN,
Set attrNames,
int profileType)
Returns a map of attribute-values for binary attributes.
|
Set |
getAttributesForSchema(String objectclass)
Returns the attributes in the directory schema, associated with the given
objectclass.
|
Map |
getAttributesFromDS(SSOToken token,
String entryDN,
Set attrNames,
int profileType)
Returns a Map with attribute-values fetched directly from the Directory.
|
IComplianceServices |
getComplianceServicesImpl()
Returns an implementation instance of IComplianceServices.
|
String |
getCreationTemplateName(int objectType)
TODO: Remove this in 7.1 Return the name of the creation template for a
given object type.
|
Map |
getDCTreeAttributes(SSOToken token,
String entryDN,
Set attrNames,
boolean byteValues,
int objectType)
Returns the attributes set in the Domain Component of the organization,
in the
DC Tree Enabled mode . |
IDCTreeServices |
getDCTreeServicesImpl()
Returns an implementation instance of IDCTreeServices.
|
Map |
getExternalAttributes(SSOToken token,
String entryDN,
Set attrNames,
int profileType)
Returns attributes from an external data store.
|
String[] |
getGroupFilterAndScope(SSOToken token,
String entryDN,
int profileType)
Returns the dynamic groups search filter and search scope.
|
Set |
getMembers(SSOToken token,
String entryDN,
int objectType)
Get members for roles, dynamic group or static group
|
String |
getNamingAttribute(int objectType,
String orgDN)
Returns the naming attribute
|
String |
getObjectClass(int objectType)
Returns the objectclass representing an object type.
|
int |
getObjectType(SSOToken token,
String dn)
Returns the integer type of the object represented by the
|
int |
getObjectType(SSOToken token,
String dn,
Map cachedAttributes)
Returns the integer type of the object represented by the
DN using the cached attributes. |
String |
getOrganizationDN(SSOToken token,
String entryDN)
Gets the Organization DN for the specified entryDN.
|
String |
getOrgSearchFilter(String entryDN)
Returns the search filter for organization.
|
Set |
getRegisteredServiceNames(SSOToken token,
String entryDN)
Get registered services for an organization
|
String |
getSearchFilterFromTemplate(int objectType,
String orgDN,
String searchTemplateName)
Returns the search filter of a given search template.
|
Set |
getTopLevelContainers(SSOToken token)
Returns the set of top level containers that can be viewed by ths user
|
void |
modifyMemberShip(SSOToken token,
Set members,
String target,
int type,
int operation)
Modify member ship for role or static group
|
void |
registerService(SSOToken token,
String orgDN,
String serviceName)
Register a service for an org or org unit policy to a profile
|
void |
removeAdminRole(SSOToken token,
String dn,
boolean recursive)
Remove group admin role
|
void |
removeEntry(SSOToken token,
String entryDN,
int objectType,
boolean recursive,
boolean softDelete)
Remove an entry from the directory.
|
String |
renameEntry(SSOToken token,
int objectType,
String entryDN,
String newName,
boolean deleteOldName)
Renames an entry.
|
Set |
search(SSOToken token,
String entryDN,
String searchFilter,
int searchScope)
Searches the Directory
|
AMSearchResults |
search(SSOToken token,
String entryDN,
String searchFilter,
SearchControl searchControl,
String[] attrNames)
Search the Directory
|
void |
setAttributes(SSOToken token,
String entryDN,
int objectType,
Map stringAttributes,
Map byteAttributes,
boolean isAdd)
Method Set the attributes of an entry.
|
void |
setGroupFilter(SSOToken token,
String entryDN,
String filter)
Set's the dynamic groups search filter.
|
void |
unRegisterService(SSOToken token,
String entryDN,
int objectType,
String serviceName,
int templateType)
Un register service for a AMro profile.
|
void |
updateUserAttribute(SSOToken token,
Set members,
String staticGroupDN,
boolean toAdd)
Adds or remove static group DN to or from member attribute
'iplanet-am-static-group-dn'
|
String |
verifyAndGetOrgDN(SSOToken token,
String entryDN,
String childDN)
Gets the Organization DN for the specified entryDN.
|
IComplianceServices getComplianceServicesImpl()
IDCTreeServices getDCTreeServicesImpl()
boolean doesEntryExists(SSOToken token, String entryDN)
token
- User's single sign on tokenentryDN
- DN of the entry.int getObjectType(SSOToken token, String dn) throws AMException, SSOException
token
- User's single sign on tokendn
- DN
of the entry.AMException
- If entry is not a supported type or if unable to access the
datastore.SSOException
- If user's single sign on token is invalid.int getObjectType(SSOToken token, String dn, Map cachedAttributes) throws AMException, SSOException
DN
using the cached attributes.token
- User's single sign on tokendn
- DN
of the entry.cachedAttributes
- cached attributes that can be used to determine the object
typeAMException
- If entry is not a supported type or if unable to access the
datastore.SSOException
- If user's single sign on token is invalid.Map getDCTreeAttributes(SSOToken token, String entryDN, Set attrNames, boolean byteValues, int objectType) throws AMException, SSOException
DC Tree Enabled mode
.token
- User's single sign on tokenentryDN
- DN
of the entry.attrNames
- Set of attribute namesbyteValues
- true if trying to read binary attributesobjectType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributes(SSOToken token, String entryDN, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributes(SSOToken token, String entryDN, Set attrNames, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.attrNames
- Set of attributes to be read.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributesFromDS(SSOToken token, String entryDN, Set attrNames, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.attrNames
- Set of attributes to be read.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributesByteValues(SSOToken token, String entryDN, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributesByteValues(SSOToken token, String entryDN, Set attrNames, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.attrNames
- Names of the attributes to be read.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributes(SSOToken token, String entryDN, boolean ignoreCompliance, boolean byteValues, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.ignoreCompliance
- Ignore compliance mode when constructing search filters.byteValues
- Return binary attributes, if true.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.Map getAttributes(SSOToken token, String entryDN, Set attrNames, boolean ignoreCompliance, boolean byteValues, int profileType) throws AMException, SSOException
token
- User's single sign on tokenentryDN
- DN
of the entry.attrNames
- Set of attribute names to be read.ignoreCompliance
- Ignore compliance mode when constructing search filters.byteValues
- Return binary attributes, if true.profileType
- Integer representing type of the object.AMException
- If unable to access datastoreSSOException
- If user's single sign on token is invalid.String getOrgSearchFilter(String entryDN)
entryDN
- DN
of the organization.String getOrganizationDN(SSOToken token, String entryDN) throws AMException
NOTE: This method will involve serveral directory searches, hence be cautious of Performance hit
token
- a valid SSOTokenentryDN
- the entry whose parent Organization is to be obtainedAMException
- if an error occured while obtaining the parent OrganizationString verifyAndGetOrgDN(SSOToken token, String entryDN, String childDN) throws AMException
token
- a valid SSOTokenentryDN
- the entry whose parent Organization is to be obtainedchildDN
- the immediate entry whose parent Organization is to be
obtainedAMException
- if an error occured while obtaining the parent OrganizationMap getExternalAttributes(SSOToken token, String entryDN, Set attrNames, int profileType) throws AMException
token
- Single sign on token of userentryDN
- DN of the entry user is trying to readattrNames
- Set of attributes to be readprofileType
- Integer determining the type of profile being readAMException
- if an error occurs when trying to read external datastorevoid updateUserAttribute(SSOToken token, Set members, String staticGroupDN, boolean toAdd) throws AMException
token
- SSOTokenmembers
- set of user DN'sstaticGroupDN
- DN of the static grouptoAdd
- true to add, false to removeAMException
- if there is an internal problem with AM Store.void createEntry(SSOToken token, String entryName, int objectType, String parentDN, Map attributes) throws AMEntryExistsException, AMException, SSOException
token
- SSOTokenentryName
- name of the entry (naming value), e.g. "sun.com", "manager"objectType
- Profile Type, ORGANIZATION, AMObject.ROLE, AMObject.USER, etc.parentDN
- the parent DNattributes
- the initial attribute set for creationAMEntryExistsException
AMException
SSOException
void removeEntry(SSOToken token, String entryDN, int objectType, boolean recursive, boolean softDelete) throws AMException, SSOException
token
- SSOTokenentryDN
- dn of the profile to be removedobjectType
- profile typerecursive
- if true, remove all sub entries & the objectsoftDelete
- Used to let pre/post callback plugins know that this delete is
either a soft delete (marked for deletion) or a purge/hard
delete itself, otherwise, remove the object onlyAMException
SSOException
void removeAdminRole(SSOToken token, String dn, boolean recursive) throws SSOException, AMException
token
- SSOToken of the callerdn
- group DNrecursive
- true to delete all admin roles for all sub groups or sub
people containerSSOException
AMException
Set search(SSOToken token, String entryDN, String searchFilter, int searchScope) throws AMException
token
- SSOTokenentryDN
- DN of the entry to start the search withsearchFilter
- search filtersearchScope
- search scope, BASE, ONELEVEL or SUBTREEAMException
AMSearchResults search(SSOToken token, String entryDN, String searchFilter, SearchControl searchControl, String[] attrNames) throws AMException
token
- SSOTokenentryDN
- DN of the entry to start the search withsearchFilter
- search filtersearchControl
- search control defining the VLV indexes and search scopeAMException
Set getMembers(SSOToken token, String entryDN, int objectType) throws AMException
token
- SSOTokenentryDN
- DN of the role or groupobjectType
- objectType of the target object, AMObject.ROLE or
AMObject.GROUPAMException
String renameEntry(SSOToken token, int objectType, String entryDN, String newName, boolean deleteOldName) throws AMException
token
- the sso tokenobjectType
- the type of entryentryDN
- the entry DNnewName
- the new name (i.e., if RDN is cn=John, the value passed should
be "John"deleteOldName
- if true the old name is deleted otherwise it is retained.DN
of the renamed entryAMException
- if the operation was not successfulvoid setAttributes(SSOToken token, String entryDN, int objectType, Map stringAttributes, Map byteAttributes, boolean isAdd) throws AMException, SSOException
token
- Single sign on tokenentryDN
- DN of the profile whose template is to be setobjectType
- profile typestringAttributes
- string attributes to be setbyteAttributes
- byte attributes to be setisAdd
- true
if to add to current value;
otherwise it will replace current value.AMException
SSOException
void changePassword(SSOToken token, String entryDN, String attrName, String oldPassword, String newPassword) throws AMException, SSOException
token
- Single sign on tokenentryDN
- DN of the profile whose template is to be setattrName
- password attribute nameoldPassword
- old passwordnewPassword
- new passwordAMException
- if an error occurs when changing user passwordSSOException
- If user's single sign on token is invalid.String[] getGroupFilterAndScope(SSOToken token, String entryDN, int profileType) throws SSOException, AMException
token
- Single sign on tokenentryDN
- DN of the profileprofileType
- AMException
SSOException
void setGroupFilter(SSOToken token, String entryDN, String filter) throws AMException, SSOException
token
- Single sign on tokenentryDN
- DN
of group entryfilter
- Search filterAMException
- If there is a datastore exception.SSOException
- If user's single sign on token is invalid.void modifyMemberShip(SSOToken token, Set members, String target, int type, int operation) throws AMException
token
- SSOTokenmembers
- Set of member DN to be operatedtarget
- DN of the target object to add the membertype
- type of the target object, AMObject.ROLE or AMObject.GROUPoperation
- type of operation, ADD_MEMBER or REMOVE_MEMBERAMException
Set getRegisteredServiceNames(SSOToken token, String entryDN) throws AMException
token
- SSOTokenentryDN
- DN of the orgAMException
void registerService(SSOToken token, String orgDN, String serviceName) throws AMException, SSOException
token
- tokenorgDN
- DN of the orgserviceName
- Service NameAMException
SSOException
void unRegisterService(SSOToken token, String entryDN, int objectType, String serviceName, int templateType) throws AMException
token
- SSOTokenentryDN
- DN of the profile whose service is to be removedobjectType
- profile typeserviceName
- Service NametemplateType
- Template typeAMException
String getAMTemplateDN(SSOToken token, String entryDN, int objectType, String serviceName, int type) throws AMException
token
- SSOTokenentryDN
- DN of the profile whose template is to be setserviceName
- Service Nametype
- the template type, AMTemplate.DYNAMIC_TEMPLATEAMException
String createAMTemplate(SSOToken token, String entryDN, int objectType, String serviceName, Map attributes, int priority) throws AMException
token
- tokenentryDN
- DN of the profile whose template is to be setobjectType
- the type of objectserviceName
- Service Nameattributes
- attributes to be setpriority
- template priorityAMException
String getNamingAttribute(int objectType, String orgDN)
objectType
- the type of object of interest.orgDN
- the organization dn the object belongs to.String getObjectClass(int objectType)
objectType
- the type of object of interest.String getCreationTemplateName(int objectType)
objectType
- Integere representing object typeSet getAttributesForSchema(String objectclass)
objectclass
- String getSearchFilterFromTemplate(int objectType, String orgDN, String searchTemplateName)
objectType
- Integere represenintg object type.orgDN
- Organization
searchTemplateName
- Name of search templateSet getTopLevelContainers(SSOToken token) throws AMException, SSOException
token
- User's single sign on token.AMException
- if a datastore access failsSSOException
- if user's single sign on token is invalid.void addListener(SSOToken token, AMObjectListener listener, Map configMap) throws AMEventManagerException
token
- SSOToken of the user adding the listnerlistener
- listener object that will be called when entries are changedAMEventManagerException
- if a error occurs during adding listener objectCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.