public class NovellDirectorySynchronizer extends AbstractLdapSynchronizer
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
currentModifyTimeStamp |
static java.lang.String |
MODIFYTIMESTAMP |
connection, contextSettings, errorCount, fullSyncNeeded, GROUP_SEARCH_PAGE_SIZE, groupSettings, ldapSyncListener, logger, maxErrors, noGroupsSynchronized, noUsersSynchronized, sqlLogger, synchronizerSettings, syncNeeded, syncParameters, USER_SEARCH_PAGE_SIZE, userSettings| Constructor and Description |
|---|
NovellDirectorySynchronizer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
determineSynchronizationNeed()
Determines whether synchronization is needed or not based on
some parameters obtained from the Novell eDirectory.
|
protected java.lang.String |
getGroupDNAttributeName()
Returns the attribute used for identifying the distinguished
name of a group object.In Novell "dn" is for distinguishedname.
|
protected java.lang.String |
getGroupObjectClass()
Returns the object class used to indentify group objects
in Novell eDirectory.
|
protected java.lang.String |
getGroupSearchFilter()
Determines the search filter to be used for full and incremental
synchronization.
|
protected java.lang.String |
getMemberUserAccountName(java.lang.String memberDN)
Returns the user or group member account name, for the given
distinguished name of the user or group.
|
protected java.lang.String |
getModifyTimeStamp(java.lang.String attributeName)
THis method returns the last modifytimestamp.
|
protected java.util.Hashtable |
getSearchLdapContextEnvironment()
Returns the search context environment to be used for performing
the directory searches.
|
protected java.lang.String |
getUserDNAttributeName()
Returns the attribute used for identifying the distinguished
name of a user object.In Novell "dn" is for distinguishedname.
|
protected java.lang.String |
getUserObjectClass()
Returns the object class used to indentify user objects
in Novell eDirectory.
|
protected java.lang.String |
getUserSearchFilter()
Determines the search filter to be used for full and incremental
synchronization.
|
protected void |
initSync()
Initializes the synchronization task with the necessary information
needed for performing the synchronization work.
|
protected java.util.Set |
retrieveAllGroupMembers(java.lang.String groupDN)
Retrieves all the group members of the given group distinguished
name.
|
protected void |
retrieveGroupMembers(java.lang.String groupDN,
java.util.Set memberUsers,
java.util.Set memberGroups)
Retrieves group members and fills the users and groups that are
members of the given group into the passed in sets.
|
protected void |
syncGroups()
Performs LDAP query against the LDAP Directory server and retrieves
the results , a notification event will be
fired to the listener to synchronize the changes to MAXIMO database
tables.
|
protected void |
syncUsers()
Performs LDAP query against the LDAP Directory server and retrieves
the results .
|
protected void |
updateSyncParameters()
Called by the controller when the synchronization task is
completed successfully, so that the new parameters are used
for the next synchronization task.
|
buildURL, closeContext, commitGroupChanges, commitGroupChanges, commitUserChanges, commitUserChanges, createDefaultLdapContext, createSearchLdapContext, getDefaultLdapContextEnvironment, getGroupAttributes, getGroupMemberAsGroupAttribute, getGroupMemberAsUserAttribute, getGroupMembersAttribute, getGroupSearchBase, getGroupSearchControls, getGroupSearchPageSize, getGroupSearchScope, getLDAPSyncListener, getSynchronizerSettings, getSyncParameters, getUserAttributes, getUserSearchBase, getUserSearchControls, getUserSearchPageSize, getUserSearchScope, init, isFullSyncNeeded, isSyncNeeded, performSync, setFullSyncNeeded, setLDAPSyncListener, setOwner, setSyncNeeded, syncGroupMemberspublic static final java.lang.String MODIFYTIMESTAMP
protected java.lang.String currentModifyTimeStamp
protected void initSync()
throws LdapSyncException
initSync in class AbstractLdapSynchronizerLdapSyncException - if fails to initializeAbstractLdapSynchronizer.initSync()protected void updateSyncParameters()
updateSyncParameters in class AbstractLdapSynchronizerAbstractLdapSynchronizer.updateSyncParameters()protected java.lang.String getUserSearchFilter()
getUserSearchFilter in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getUserSearchFilter()protected java.lang.String getGroupSearchFilter()
getGroupSearchFilter in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getGroupSearchFilter()protected java.util.Hashtable getSearchLdapContextEnvironment()
getSearchLdapContextEnvironment in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getSearchLdapContextEnvironment()protected java.util.Set retrieveAllGroupMembers(java.lang.String groupDN)
throws LdapSyncException
retrieveAllGroupMembers in class AbstractLdapSynchronizergroupDN - group distinguished name for which users
need to be retrieved.LdapSyncException - if fails to retrieve members.AbstractLdapSynchronizer.retrieveAllGroupMembers(java.lang.String)protected void retrieveGroupMembers(java.lang.String groupDN,
java.util.Set memberUsers,
java.util.Set memberGroups)
throws LdapSyncException
groupDN - distinguished name of the group for which members
need to be retrieved.memberUsers - returns the set of member users of the group.memberGroups - returns the set of member groups of the group.LdapSyncException - if fails to retrieve members of the group.protected java.lang.String getMemberUserAccountName(java.lang.String memberDN)
throws LdapSyncException
memberDN - user or group distinguished nameLdapSyncException - if fails to retrieve the account name.protected void determineSynchronizationNeed()
throws LdapSyncException
determineSynchronizationNeed in class AbstractLdapSynchronizerLdapSyncException - if fails to determine the needprotected java.lang.String getUserObjectClass()
getUserObjectClass in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getUserObjectClass()protected java.lang.String getGroupObjectClass()
getGroupObjectClass in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getGroupObjectClass()protected java.lang.String getUserDNAttributeName()
getUserDNAttributeName in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getUserDNAttributeName()protected java.lang.String getGroupDNAttributeName()
getGroupDNAttributeName in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getGroupDNAttributeName()protected java.lang.String getModifyTimeStamp(java.lang.String attributeName)
throws LdapSyncException
attributeName - LdapSyncExceptionprotected void syncUsers()
throws LdapSyncException
syncUsers in class AbstractLdapSynchronizerLdapSyncExceptionprotected void syncGroups()
throws LdapSyncException
syncGroups in class AbstractLdapSynchronizerLdapSyncException