public interface DirectorySynchroniserHelper
SynchronisableDirectory's cache. Implementations of
this interface are responsible for ensuring that database operations are wrapped in a transaction where applicable.| Modifier and Type | Method and Description |
|---|---|
Directory |
findDirectoryById(long directoryId)
Returns a Directory based on the passed in
directoryId. |
boolean |
isSynchronising(long synchronisableDirectoryId)
Returns true if the given directory is currently being synchronised.
|
void |
updateSyncEndTime(SynchronisableDirectory synchronisableDirectory)
Updates information relevant to a directory's current synchronisation end time.
|
void |
updateSyncStartTime(SynchronisableDirectory synchronisableDirectory)
Updates a
SynchronisableDirectory's current synchronisation start time. |
void updateSyncStartTime(SynchronisableDirectory synchronisableDirectory) throws DirectoryNotFoundException
SynchronisableDirectory's current synchronisation start time.synchronisableDirectory - directory to updateDirectoryNotFoundException - if the directory could not be foundvoid updateSyncEndTime(SynchronisableDirectory synchronisableDirectory) throws DirectoryNotFoundException
updateSyncStartTime(com.atlassian.crowd.directory.SynchronisableDirectory) must have been invoked
before this method call.
synchronisableDirectory - directory to updateIllegalStateException - if the directory is not currently synchronising.DirectoryNotFoundException - If the directory could not be foundboolean isSynchronising(long synchronisableDirectoryId)
throws DirectoryNotFoundException
synchronisableDirectoryId - synchronisable directory idDirectoryNotFoundException - if the directory could not be foundDirectory findDirectoryById(long directoryId) throws DirectoryNotFoundException
directoryId.
Essentially equivalent to DirectoryManager.findDirectoryById(long), it exists to obtain the directory
configuration without introducing a dependency on the complex DirectoryManager.directoryId - the id of the directory to findDirectoryNotFoundException - is thrown if the Directory cannot be found.Copyright © 2017 Atlassian. All rights reserved.