public class UsnChangedCacheRefresher extends AbstractCacheRefresher<LDAPGroupWithAttributes> implements CacheRefresher
See http://msdn.microsoft.com/en-us/library/ms677625.aspx and http://msdn.microsoft.com/en-us/library/ms677627%28VS.85%29.aspx for details on polling Microsoft Active Directory.
This class is guaranteed to be run from a single thread at a time by per directory. This means it does not need to worry about race-conditions, but still must consider safe publication of variables (per directory). The incremental sync of users comes in two flavors:
PROPERTY_USE_LEGACY_AD_INCREMENTAL_SYNC set to true.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_USE_LEGACY_AD_INCREMENTAL_SYNC |
remoteDirectory| Constructor and Description |
|---|
UsnChangedCacheRefresher(MicrosoftActiveDirectory activeDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<Membership> |
getMemberships(Collection<LDAPGroupWithAttributes> groupsToInclude,
boolean isFullSync) |
CacheSynchronisationResult |
synchroniseAll(DirectoryCache directoryCache) |
protected PartialSynchronisationResult<LDAPGroupWithAttributes> |
synchroniseAllGroups(DirectoryCache directoryCache) |
protected PartialSynchronisationResult<? extends UserWithAttributes> |
synchroniseAllUsers(DirectoryCache directoryCache) |
CacheSynchronisationResult |
synchroniseChanges(DirectoryCache directoryCache,
String highestCommittedUsn) |
directoryDescription, isGroupAttributeSynchronisationEnabled, isIncrementalSyncEnabled, isUserAttributeSynchronisationEnabled, synchroniseAllGroupAttributes, synchroniseAllUserAttributes, synchroniseMembershipspublic static final String PROPERTY_USE_LEGACY_AD_INCREMENTAL_SYNC
public UsnChangedCacheRefresher(MicrosoftActiveDirectory activeDirectory)
public CacheSynchronisationResult synchroniseChanges(DirectoryCache directoryCache, @Nullable String highestCommittedUsn) throws OperationFailedException
synchroniseChanges in interface CacheRefresherOperationFailedExceptionpublic CacheSynchronisationResult synchroniseAll(DirectoryCache directoryCache) throws OperationFailedException
synchroniseAll in interface CacheRefreshersynchroniseAll in class AbstractCacheRefresher<LDAPGroupWithAttributes>OperationFailedExceptionprotected PartialSynchronisationResult<? extends UserWithAttributes> synchroniseAllUsers(DirectoryCache directoryCache) throws OperationFailedException
synchroniseAllUsers in class AbstractCacheRefresher<LDAPGroupWithAttributes>OperationFailedExceptionprotected PartialSynchronisationResult<LDAPGroupWithAttributes> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
synchroniseAllGroups in class AbstractCacheRefresher<LDAPGroupWithAttributes>OperationFailedExceptionprotected Iterable<Membership> getMemberships(Collection<LDAPGroupWithAttributes> groupsToInclude, boolean isFullSync) throws OperationFailedException
getMemberships in class AbstractCacheRefresher<LDAPGroupWithAttributes>OperationFailedExceptionCopyright © 2023 Atlassian. All rights reserved.