com.atlassian.crowd.manager.directory
Class DirectorySynchronisationInformationStoreImpl

java.lang.Object
  extended by com.atlassian.crowd.manager.directory.DirectorySynchronisationInformationStoreImpl
All Implemented Interfaces:
DirectorySynchronisationInformationStore

public class DirectorySynchronisationInformationStoreImpl
extends Object
implements DirectorySynchronisationInformationStore


Constructor Summary
DirectorySynchronisationInformationStoreImpl()
           
DirectorySynchronisationInformationStoreImpl(ConcurrentMap<Long,DirectorySynchronisationInformation> syncStatus)
          Construct a DirectorySynchronisationInformationStoreImpl which is backed by a concurrent map.
 
Method Summary
 void clear()
          Clears directory synchronisation information of all directories.
 void clear(long directoryId)
          Clears directory synchronisation information of a directory with the given id.
 DirectorySynchronisationInformation get(long directoryId)
          Returns directory synchronisation information for a directory with the given id.
 void set(long directoryId, DirectorySynchronisationInformation syncInfo)
          Set directory synchronisation information for a directory with the given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectorySynchronisationInformationStoreImpl

public DirectorySynchronisationInformationStoreImpl()

DirectorySynchronisationInformationStoreImpl

public DirectorySynchronisationInformationStoreImpl(ConcurrentMap<Long,DirectorySynchronisationInformation> syncStatus)
Construct a DirectorySynchronisationInformationStoreImpl which is backed by a concurrent map.

This constructor can be used to achieve cluster safety in cluster-capable applications by providing a cluster-aware implementation

Since:
2.8
Method Detail

get

public DirectorySynchronisationInformation get(long directoryId)
Description copied from interface: DirectorySynchronisationInformationStore
Returns directory synchronisation information for a directory with the given id.

Specified by:
get in interface DirectorySynchronisationInformationStore
Parameters:
directoryId - directory id
Returns:
directory synchronisation information for a directory

set

public void set(long directoryId,
                DirectorySynchronisationInformation syncInfo)
Description copied from interface: DirectorySynchronisationInformationStore
Set directory synchronisation information for a directory with the given id.

Specified by:
set in interface DirectorySynchronisationInformationStore
Parameters:
directoryId - directory id
syncInfo - directory synchronisation information

clear

public void clear(long directoryId)
Description copied from interface: DirectorySynchronisationInformationStore
Clears directory synchronisation information of a directory with the given id.

Specified by:
clear in interface DirectorySynchronisationInformationStore
Parameters:
directoryId - directory id

clear

public void clear()
Description copied from interface: DirectorySynchronisationInformationStore
Clears directory synchronisation information of all directories.

Specified by:
clear in interface DirectorySynchronisationInformationStore


Copyright © 2016 Atlassian. All Rights Reserved.