public class DirectoryManagerImpl extends IdRepoJAXRPCObjectImpl implements AMObjectListener
Modifier and Type | Field and Description |
---|---|
protected static IComplianceServices |
complianceServices |
protected static IDCTreeServices |
dcTreeServices |
protected static Debug |
debug |
protected static IDirectoryServices |
dsServices |
protected static boolean |
initialized |
protected static SSOTokenManager |
tm |
cacheSize, IDREPO_SERVICE, idRepoDebug, idRepoNotificationURLs, idServices, serverPort, serverURL, tokenManager, urlServer
ADD, DELETE, MODIFY, RENAMED
Constructor and Description |
---|
DirectoryManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
allObjectsChanged()
This callback notifies the listener that all object should be marked as
"changed" or "dirty".
|
void |
changePassword(String token,
String entryDN,
String attrName,
String oldPassword,
String newPassword) |
String |
createAMTemplate(String token,
String entryDN,
int objectType,
String serviceName,
Map attributes,
int priority) |
void |
createEntry(String token,
String entryName,
int objectType,
String parentDN,
Map attributes) |
void |
deRegisterNotificationURL(String notificationID) |
boolean |
doesEntryExists(String token,
String entryDN) |
String |
getAMTemplateDN(String token,
String entryDN,
int objectType,
String serviceName,
int type) |
Map |
getAttributes1(String token,
String entryDN,
int profileType) |
Map |
getAttributes2(String token,
String entryDN,
Set attrNames,
int profileType) |
Map |
getAttributes3(String token,
String entryDN,
boolean ignoreCompliance,
boolean byteValues,
int profileType) |
Map |
getAttributes4(String token,
String entryDN,
Set attrNames,
boolean ignoreCompliance,
boolean byteValues,
int profileType) |
Map |
getAttributesByteValues1(String token,
String entryDN,
int profileType) |
Map |
getAttributesByteValues2(String token,
String entryDN,
Set attrNames,
int profileType) |
Set |
getAttributesForSchema(String objectclass) |
Map |
getConfigMap() |
String |
getCreationTemplateName(int objectType) |
Map |
getDCTreeAttributes(String token,
String entryDN,
Set attrNames,
boolean byteValues,
int objectType) |
String |
getDeletedObjectFilter(int objecttype) |
Map |
getExternalAttributes(String token,
String entryDN,
Set attrNames,
int profileType) |
LinkedList |
getGroupFilterAndScope(String token,
String entryDN,
int profileType) |
Set |
getMembers(String token,
String entryDN,
int objectType) |
String |
getNamingAttr(int objectType,
String orgDN) |
String |
getObjectClassFromDS(int objectType) |
int |
getObjectType(String token,
String dn) |
String |
getOrganizationDN(String token,
String entryDN) |
String |
getOrgDNFromDomain(String token,
String domain) |
String |
getOrgSearchFilter(String entryDN) |
Set |
getRegisteredServiceNames(String token,
String entryDN) |
String |
getSearchFilterFromTemplate(int objectType,
String orgDN,
String searchTemplateName) |
Set |
getTopLevelContainers(String token) |
protected void |
initialize() |
boolean |
isAncestorOrgDeleted(String token,
String dn,
int profileType) |
void |
modifyMemberShip(String token,
Set members,
String target,
int type,
int operation) |
void |
objectChanged(String name,
int type,
Map configMap)
This callback method is called by the Identity Repository plugin when
backend datastore triggers a notification event
|
Set<String> |
objectsChanged(int time)
Returns the notification event XMLs for changed objects in the past N+2 minutes.
|
void |
objectsChanged(String name,
int type,
Set attrNames,
Map configMap)
This callback method is called by the Identity Repository plugin when
backend datastore triggers a notification event that results in multiple
objects being modified.
|
void |
permissionsChanged(String name,
Map configMap)
This callback method is called by the Identity Repository plugin when
backend datastore triggers a permission change notification event.
|
protected static void |
processEntryChanged(String method,
String name,
int type,
Set attrNames) |
String |
registerNotificationURL(String url) |
void |
registerService(String token,
String orgDN,
String serviceName) |
void |
removeAdminRole(String token,
String dn,
boolean recursive) |
void |
removeEntry(String token,
String entryDN,
int objectType,
boolean recursive,
boolean softDelete) |
String |
renameEntry(String token,
int objectType,
String entryDN,
String newName,
boolean deleteOldName) |
Set |
search1(String token,
String entryDN,
String searchFilter,
int searchScope) |
Map |
search2(String token,
String entryDN,
String searchFilter,
List sortKeys,
int startIndex,
int beforeCount,
int afterCount,
String jumpTo,
int timeOut,
int maxResults,
int scope,
boolean allAttributes,
String[] attrNames) |
Map |
search3(String token,
String entryDN,
String searchFilter,
List sortKeys,
int startIndex,
int beforeCount,
int afterCount,
String jumpTo,
int timeOut,
int maxResults,
int scope,
boolean allAttributes,
Set attrNamesSet) |
void |
setAttributes(String token,
String entryDN,
int objectType,
Map stringAttributes,
Map byteAttributes,
boolean isAdd) |
void |
setConfigMap(Map cmap) |
void |
setGroupFilter(String token,
String entryDN,
String filter) |
void |
unRegisterService(String token,
String entryDN,
int objectType,
String serviceName,
int type) |
void |
updateUserAttribute(String token,
Set members,
String staticGroupDN,
boolean toAdd) |
void |
verifyAndDeleteObject(String token,
String dn) |
String |
verifyAndGetOrgDN(String token,
String entryDN,
String childDN) |
assignService_idrepo, changePassword_idrepo, collectChangesFromCache, create_idrepo, delete_idrepo, deRegisterNotificationURL_idrepo, getAssignedServices_idrepo, getAttributes1_idrepo, getAttributes2_idrepo, getBinaryAttributes_idrepo, getBinaryServiceAttributes_idrepo, getCachedValues, getCacheIndex, getFullyQualifiedNames_idrepo, getMembers_idrepo, getMemberships_idrepo, getServiceAttributes_idrepo, getServiceAttributesAscending_idrepo, getSpecialIdentities_idrepo, getSSOToken, getSupportedOperations_idrepo, getSupportedTypes_idrepo, initialize_idrepo, initializeCacheSize, isActive_idrepo, isClientOnSameServer, isExists_idrepo, modifyMemberShip_idrepo, modifyService_idrepo, objectsChanged_idrepo, processEntryChanged_idrepo, registerNotificationURL_idrepo, registerNotificationURL, removeAttributes_idrepo, search1_idrepo, search2_idrepo, setActiveStatus_idrepo, setAttributes_idrepo, setAttributes2_idrepo, unassignService_idrepo
protected static Debug debug
protected static SSOTokenManager tm
protected static boolean initialized
protected static IDirectoryServices dsServices
protected static IDCTreeServices dcTreeServices
protected static IComplianceServices complianceServices
protected void initialize() throws RemoteException
RemoteException
public String createAMTemplate(String token, String entryDN, int objectType, String serviceName, Map attributes, int priority) throws AMRemoteException, SSOException, RemoteException
createAMTemplate
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void createEntry(String token, String entryName, int objectType, String parentDN, Map attributes) throws AMRemoteException, SSOException, RemoteException
createEntry
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public boolean doesEntryExists(String token, String entryDN) throws AMRemoteException, SSOException, RemoteException
doesEntryExists
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String getAMTemplateDN(String token, String entryDN, int objectType, String serviceName, int type) throws AMRemoteException, SSOException, RemoteException
getAMTemplateDN
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getAttributes3(String token, String entryDN, boolean ignoreCompliance, boolean byteValues, int profileType) throws AMRemoteException, SSOException, RemoteException
getAttributes3
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getAttributes1(String token, String entryDN, int profileType) throws AMRemoteException, SSOException, RemoteException
getAttributes1
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getAttributes2(String token, String entryDN, Set attrNames, int profileType) throws AMRemoteException, SSOException, RemoteException
getAttributes2
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getAttributesByteValues1(String token, String entryDN, int profileType) throws AMRemoteException, SSOException, RemoteException
getAttributesByteValues1
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getAttributesByteValues2(String token, String entryDN, Set attrNames, int profileType) throws AMRemoteException, SSOException, RemoteException
getAttributesByteValues2
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Set getAttributesForSchema(String objectclass) throws RemoteException
getAttributesForSchema
in interface DirectoryManagerIF
RemoteException
public String getCreationTemplateName(int objectType) throws RemoteException
getCreationTemplateName
in interface DirectoryManagerIF
RemoteException
public Map getDCTreeAttributes(String token, String entryDN, Set attrNames, boolean byteValues, int objectType) throws AMRemoteException, SSOException, RemoteException
getDCTreeAttributes
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String getDeletedObjectFilter(int objecttype) throws AMRemoteException, SSOException, RemoteException
getDeletedObjectFilter
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getExternalAttributes(String token, String entryDN, Set attrNames, int profileType) throws AMRemoteException, SSOException, RemoteException
getExternalAttributes
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public LinkedList getGroupFilterAndScope(String token, String entryDN, int profileType) throws AMRemoteException, SSOException, RemoteException
getGroupFilterAndScope
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Set getMembers(String token, String entryDN, int objectType) throws AMRemoteException, SSOException, RemoteException
getMembers
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String getNamingAttr(int objectType, String orgDN) throws RemoteException
getNamingAttr
in interface DirectoryManagerIF
RemoteException
public String getObjectClassFromDS(int objectType) throws RemoteException
getObjectClassFromDS
in interface DirectoryManagerIF
RemoteException
public int getObjectType(String token, String dn) throws AMRemoteException, SSOException, RemoteException
getObjectType
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String getOrganizationDN(String token, String entryDN) throws AMRemoteException, RemoteException, SSOException
getOrganizationDN
in interface DirectoryManagerIF
AMRemoteException
RemoteException
SSOException
public String verifyAndGetOrgDN(String token, String entryDN, String childDN) throws AMRemoteException, RemoteException, SSOException
verifyAndGetOrgDN
in interface DirectoryManagerIF
AMRemoteException
RemoteException
SSOException
public String getOrgDNFromDomain(String token, String domain) throws AMRemoteException, SSOException, RemoteException
getOrgDNFromDomain
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String getOrgSearchFilter(String entryDN) throws RemoteException
getOrgSearchFilter
in interface DirectoryManagerIF
RemoteException
public Set getRegisteredServiceNames(String token, String entryDN) throws AMRemoteException, SSOException, RemoteException
getRegisteredServiceNames
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String getSearchFilterFromTemplate(int objectType, String orgDN, String searchTemplateName) throws RemoteException
getSearchFilterFromTemplate
in interface DirectoryManagerIF
RemoteException
public Set getTopLevelContainers(String token) throws AMRemoteException, SSOException, RemoteException
getTopLevelContainers
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public boolean isAncestorOrgDeleted(String token, String dn, int profileType) throws AMRemoteException, SSOException, RemoteException
isAncestorOrgDeleted
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void modifyMemberShip(String token, Set members, String target, int type, int operation) throws AMRemoteException, SSOException, RemoteException
modifyMemberShip
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void registerService(String token, String orgDN, String serviceName) throws AMRemoteException, SSOException, RemoteException
registerService
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void removeAdminRole(String token, String dn, boolean recursive) throws AMRemoteException, SSOException, RemoteException
removeAdminRole
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void removeEntry(String token, String entryDN, int objectType, boolean recursive, boolean softDelete) throws AMRemoteException, SSOException, RemoteException
removeEntry
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public String renameEntry(String token, int objectType, String entryDN, String newName, boolean deleteOldName) throws AMRemoteException, SSOException, RemoteException
renameEntry
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Set search1(String token, String entryDN, String searchFilter, int searchScope) throws AMRemoteException, SSOException, RemoteException
search1
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map search2(String token, String entryDN, String searchFilter, List sortKeys, int startIndex, int beforeCount, int afterCount, String jumpTo, int timeOut, int maxResults, int scope, boolean allAttributes, String[] attrNames) throws AMRemoteException, SSOException, RemoteException
search2
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map search3(String token, String entryDN, String searchFilter, List sortKeys, int startIndex, int beforeCount, int afterCount, String jumpTo, int timeOut, int maxResults, int scope, boolean allAttributes, Set attrNamesSet) throws AMRemoteException, SSOException, RemoteException
search3
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void setAttributes(String token, String entryDN, int objectType, Map stringAttributes, Map byteAttributes, boolean isAdd) throws AMRemoteException, SSOException, RemoteException
setAttributes
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void changePassword(String token, String entryDN, String attrName, String oldPassword, String newPassword) throws AMRemoteException, SSOException, RemoteException
changePassword
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void setGroupFilter(String token, String entryDN, String filter) throws AMRemoteException, SSOException, RemoteException
setGroupFilter
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void unRegisterService(String token, String entryDN, int objectType, String serviceName, int type) throws AMRemoteException, SSOException, RemoteException
unRegisterService
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void updateUserAttribute(String token, Set members, String staticGroupDN, boolean toAdd) throws AMRemoteException, SSOException, RemoteException
updateUserAttribute
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public void verifyAndDeleteObject(String token, String dn) throws AMRemoteException, SSOException, RemoteException
verifyAndDeleteObject
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Map getAttributes4(String token, String entryDN, Set attrNames, boolean ignoreCompliance, boolean byteValues, int profileType) throws AMRemoteException, SSOException, RemoteException
getAttributes4
in interface DirectoryManagerIF
AMRemoteException
SSOException
RemoteException
public Set<String> objectsChanged(int time) throws RemoteException
objectsChanged
in interface DirectoryManagerIF
time
- The number of minutes we should retrieve the changed objects for.RemoteException
- If there was an error while collecting changed objects.public String registerNotificationURL(String url) throws RemoteException
registerNotificationURL
in interface DirectoryManagerIF
RemoteException
public void deRegisterNotificationURL(String notificationID) throws RemoteException
deRegisterNotificationURL
in interface DirectoryManagerIF
RemoteException
protected static void processEntryChanged(String method, String name, int type, Set attrNames)
public void objectChanged(String name, int type, Map configMap)
AMObjectListener
objectChanged
in interface AMObjectListener
name
- unique name of the object that has changedtype
- type of change i.e., ADD, DELETE, MODIFYconfigMap
- Map of configuration information which the AM SDK framework
passes to the plugin, and which the plugin should return as
is. This information helps the framework to map the object to
the universal identifier used as the cache key.public void objectsChanged(String name, int type, Set attrNames, Map configMap)
AMObjectListener
objectsChanged
in interface AMObjectListener
name
- name of the parent whoes "dynamic" attributes attributes have
been modified, affecting all its childrentype
- type of change i.e., ADD, DELETE, MODIFYattrNames
- attribute names that have been modifiedconfigMap
- Map of configuration information which the AM SDK framework
passes to the plugin, and which the plugin should return as
is. This information helps the framework to map the object to
the universal identifier used as the cache key.public void permissionsChanged(String name, Map configMap)
AMObjectListener
permissionsChanged
in interface AMObjectListener
name
- unique name of the organization whoes permissions has changedconfigMap
- Map of configuration information which the AM SDK framework
passes to the plugin, and which the plugin should return as
is. This information helps the framework to map the object to
the universal identifier used as the cache key.public void allObjectsChanged()
AMObjectListener
allObjectsChanged
in interface AMObjectListener
public void setConfigMap(Map cmap)
setConfigMap
in interface AMObjectListener
public Map getConfigMap()
getConfigMap
in interface AMObjectListener
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.