|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DirectorySynchroniserHelper
Helper class for performing a synchronisation on the SynchronisableDirectory's cache. Implementations of
this interface are responsible for ensuring that database operations are wrapped in a transaction where applicable.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void updateSyncStartTime(SynchronisableDirectory synchronisableDirectory)
throws DirectoryNotFoundException
SynchronisableDirectory's current synchronisation start time.
synchronisableDirectory - directory to update
DirectoryNotFoundException - if the directory could not be found
void updateSyncEndTime(SynchronisableDirectory synchronisableDirectory)
throws DirectoryNotFoundException
updateSyncStartTime(com.atlassian.crowd.directory.SynchronisableDirectory) must have been invoked
before this method call.
synchronisableDirectory - directory to update
IllegalStateException - if the directory is not currently synchronising.
DirectoryNotFoundException - If the directory could not be found
boolean isSynchronising(long synchronisableDirectoryId)
throws DirectoryNotFoundException
synchronisableDirectoryId - synchronisable directory id
DirectoryNotFoundException - if the directory could not be found
Directory 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 find
DirectoryNotFoundException - is thrown if the Directory cannot be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||