public class ADTrackingIncrementalRepositoryChangeTracker extends Object implements IncrementalRepositoryChangeTracker, PropertyKeys
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_AD_LAST_USED_SERVER
Key for storing the last used server url of this tracker.
|
PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_ALLOW_PAGING, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_ENABLED_GROUP, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_ENABLED_USER, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_PAGING_SIZE, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_TIME_OUT, PROPERTY_KEY_ACTIVE_DIRECTORY_TRACKING_USER_SEQUENCE_NUMBER
Constructor and Description |
---|
ADTrackingIncrementalRepositoryChangeTracker(LdapConfiguration ldapConfiguration,
PluginPropertyService pluginProperties,
UserManagement userManagement,
ExternalUserGroupDao externalUserGroupDao,
boolean doFullSynchronization)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<ExternalUserGroup> |
getNextGroups()
Method to return the next groups from the repository.
|
Collection<User> |
getNextUsers()
Method to return the next users from the repository.
|
boolean |
needsToAcceptMembersOfGroups()
If this method returns true, the UserGroupSynchronizer has to visit the members of a group
explicitly.
|
void |
setUserGroupManagement(UserGroupManagement userGroupManagement) |
void |
start()
Initializes the connection to the directory server.
|
void |
stop(boolean successful)
Method to be called after the synchronization ran.
|
public static final String PROPERTY_KEY_AD_LAST_USED_SERVER
public ADTrackingIncrementalRepositoryChangeTracker(LdapConfiguration ldapConfiguration, PluginPropertyService pluginProperties, UserManagement userManagement, ExternalUserGroupDao externalUserGroupDao, boolean doFullSynchronization)
ldapConfiguration
- The LDAP configuration to use.pluginProperties
- The properties to use.userManagement
- Management for users.externalUserGroupDao
- Dao for external users.doFullSynchronization
- If set to true, a full sync will done.public Collection<ExternalUserGroup> getNextGroups()
getNextGroups
in interface IncrementalRepositoryChangeTracker
public Collection<User> getNextUsers()
getNextUsers
in interface IncrementalRepositoryChangeTracker
public boolean needsToAcceptMembersOfGroups()
needsToAcceptMembersOfGroups
in interface IncrementalRepositoryChangeTracker
public void setUserGroupManagement(UserGroupManagement userGroupManagement)
userGroupManagement
- the userGroupManagement to setpublic void start()
start
in interface IncrementalRepositoryChangeTracker
public void stop(boolean successful)
stop
in interface IncrementalRepositoryChangeTracker
successful
- True, if the sync was successful.Copyright © 2019 Communote team. All rights reserved.