com.atlassian.crowd.manager.directory
Class DirectorySynchroniserImpl

java.lang.Object
  extended by com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl
All Implemented Interfaces:
DirectorySynchroniser

public class DirectorySynchroniserImpl
extends Object
implements DirectorySynchroniser

An implementation of a DirectorySynchroniser.


Constructor Summary
DirectorySynchroniserImpl(DirectoryLockManager directoryLockManager, DirectoryDao directoryDao, DirectorySynchroniserHelper directorySynchroniserHelper, SynchronisationStatusManager synchronisationStatusManager, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 boolean isSynchronising(long directoryId)
          Returns whether the directory is currently synchronising.
 void synchronise(SynchronisableDirectory remoteDirectory, SynchronisationMode mode)
          Executes a synchronisation in the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectorySynchroniserImpl

public DirectorySynchroniserImpl(DirectoryLockManager directoryLockManager,
                                 DirectoryDao directoryDao,
                                 DirectorySynchroniserHelper directorySynchroniserHelper,
                                 SynchronisationStatusManager synchronisationStatusManager,
                                 com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

synchronise

public void synchronise(SynchronisableDirectory remoteDirectory,
                        SynchronisationMode mode)
                 throws DirectoryNotFoundException,
                        OperationFailedException
Description copied from interface: DirectorySynchroniser
Executes a synchronisation in the current thread. If the directory is not active, then the method will return silently.

Specified by:
synchronise in interface DirectorySynchroniser
Parameters:
remoteDirectory - directory to synchronise.
mode - synchronisation mode.
Throws:
DirectoryNotFoundException
OperationFailedException

isSynchronising

public boolean isSynchronising(long directoryId)
                        throws DirectoryNotFoundException
Description copied from interface: DirectorySynchroniser
Returns whether the directory is currently synchronising.

Specified by:
isSynchronising in interface DirectorySynchroniser
Parameters:
directoryId - ID of the directory
Returns:
true if the directory is current synchronising, otherwise false.
Throws:
DirectoryNotFoundException - if the directory could not be found


Copyright © 2012 Atlassian. All Rights Reserved.