Class SynchronisationManagerImpl
java.lang.Object
ch.tocco.nice2.synchronisation.impl.SynchronisationManagerImpl
- All Implemented Interfaces:
SynchronisationManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetService
(String modelName) boolean
void
setSynchronisationServices
(List<SynchronisationService> synchronisationServices) void
setSyncRunning
(boolean running) used to notify when a synchronisation is started or finished
-
Constructor Details
-
SynchronisationManagerImpl
public SynchronisationManagerImpl()
-
-
Method Details
-
getAllAvailableServices
- Specified by:
getAllAvailableServices
in interfaceSynchronisationManager
- Returns:
- a map ModelName → SynchronisationSerice of all registered services
-
getService
- Specified by:
getService
in interfaceSynchronisationManager
- Returns:
- a SynchronisationSerice for the given model
-
isSyncRunningInThread
public boolean isSyncRunningInThread()- Specified by:
isSyncRunningInThread
in interfaceSynchronisationManager
- Returns:
- true if a synchronisation is currently running, false otherwise
-
setSyncRunning
public void setSyncRunning(boolean running) Description copied from interface:SynchronisationManager
used to notify when a synchronisation is started or finished- Specified by:
setSyncRunning
in interfaceSynchronisationManager
- Parameters:
running
- true when starting sync, false otherwise
-
setSynchronisationServices
@Autowired public void setSynchronisationServices(List<SynchronisationService> synchronisationServices)
-