Package org.alfresco.repo.replication
Class ReplicationServiceImpl
java.lang.Object
org.alfresco.repo.replication.ReplicationServiceImpl
- All Implemented Interfaces:
ReplicationDefinitionPersister,ReplicationService
public class ReplicationServiceImpl
extends Object
implements ReplicationService, ReplicationDefinitionPersister
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReplicationDefinition(String replicationDefinitionName, String description) Creates a newReplicationDefinitionand sets the replication name and description to the specified values.voiddeleteReplicationDefinition(ReplicationDefinition replicationDefinition) This method removes the previously serializesReplicationDefinitionfrom the repository.voiddisableScheduling(ReplicationDefinition replicationDefinition) Turns off scheduling for the specified replicationvoidenableScheduling(ReplicationDefinition replicationDefinition) Turns on scheduling for the specified replication.booleanIs the replication service enabled?loadReplicationDefinition(String replicationDefinitionName) This method retrieves aReplicationDefinitionthat has been stored in the repository using thesave()method.This method retrieves theReplicationDefinitions that have been stored in the repository using thesave()method.loadReplicationDefinitions(String target) This method retrieves the storedReplicationDefinitions that have been registered for the specified transfer target name.voidrenameReplicationDefinition(String oldReplicationName, String newReplicationName) This method renames aReplicationDefinitionthat has been stored in the repository using thesave()method.voidreplicate(ReplicationDefinition replicationDefinition) Runs the specified replication.voidsaveReplicationDefinition(ReplicationDefinition replicationDefinition) This method serializes theReplicationDefinitionand stores it in the repository.voidsetActionService(ActionService actionService) Injects the ActionService bean.voidsetReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister) Injects the ReplicationDefinitionPersister bean.voidsetReplicationParams(ReplicationParams replicationParams) Sets Replication ParametersvoidsetScheduledPersistedActionService(ScheduledPersistedActionService scheduledPersistedActionService) Injects the Scheduled Persisted Action Service beanvoidsetTransferService(TransferService transferService)
-
Constructor Details
-
ReplicationServiceImpl
public ReplicationServiceImpl()
-
-
Method Details
-
setReplicationDefinitionPersister
public void setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister) Injects the ReplicationDefinitionPersister bean.- Parameters:
replicationDefinitionPersister- ReplicationDefinitionPersisterImpl
-
setActionService
Injects the ActionService bean.- Parameters:
actionService- ActionService
-
setScheduledPersistedActionService
public void setScheduledPersistedActionService(ScheduledPersistedActionService scheduledPersistedActionService) Injects the Scheduled Persisted Action Service bean- Parameters:
scheduledPersistedActionService- ScheduledPersistedActionService
-
createReplicationDefinition
public ReplicationDefinition createReplicationDefinition(String replicationDefinitionName, String description) Description copied from interface:ReplicationServiceCreates a newReplicationDefinitionand sets the replication name and description to the specified values.- Specified by:
createReplicationDefinitionin interfaceReplicationService- Parameters:
replicationDefinitionName- A unique identifier used to specify the createdReplicationDefinitiondescription- A description of the replication- Returns:
- the created
ReplicationDefinition
-
loadReplicationDefinition
Description copied from interface:ReplicationDefinitionPersisterThis method retrieves aReplicationDefinitionthat has been stored in the repository using thesave()method. If noReplicationDefinitionexists in the repository with the specified replication name then this method returns null.- Specified by:
loadReplicationDefinitionin interfaceReplicationDefinitionPersister- Parameters:
replicationDefinitionName- The unique identifier used to specify theReplicationDefinitionto retrieve.- Returns:
- The specified
ReplicationDefinitionor null.
-
loadReplicationDefinitions
Description copied from interface:ReplicationDefinitionPersisterThis method retrieves theReplicationDefinitions that have been stored in the repository using thesave()method. If there are no suchReplicationDefinitions, an empty list is returned.- Specified by:
loadReplicationDefinitionsin interfaceReplicationDefinitionPersister- Returns:
- The
ReplicationDefinitions.
-
loadReplicationDefinitions
Description copied from interface:ReplicationDefinitionPersisterThis method retrieves the storedReplicationDefinitions that have been registered for the specified transfer target name. If there are no such renderingReplicationDefinitions, an empty list is returned.- Specified by:
loadReplicationDefinitionsin interfaceReplicationDefinitionPersister- Parameters:
target- the name of a target.- Returns:
- The
ReplicationDefinitions. - See Also:
-
renameReplicationDefinition
Description copied from interface:ReplicationDefinitionPersisterThis method renames aReplicationDefinitionthat has been stored in the repository using thesave()method. If noReplicationDefinitionexists in the repository with the specified replication name, then nothing happens.- Specified by:
renameReplicationDefinitionin interfaceReplicationDefinitionPersister- Parameters:
oldReplicationName- The unique identifier used to specify theReplicationDefinitionto rename.newReplicationName- The unique identifier used to specify the newReplicationDefinitionname.
-
saveReplicationDefinition
Description copied from interface:ReplicationDefinitionPersisterThis method serializes theReplicationDefinitionand stores it in the repository.ReplicationDefinitions saved in this way may be retrieved using theload()method.- Specified by:
saveReplicationDefinitionin interfaceReplicationDefinitionPersister- Parameters:
replicationDefinition- TheReplicationDefinitionto be persisted.
-
deleteReplicationDefinition
Description copied from interface:ReplicationDefinitionPersisterThis method removes the previously serializesReplicationDefinitionfrom the repository. TheReplicationDefinitionwill then no longer be available using the load methods.- Specified by:
deleteReplicationDefinitionin interfaceReplicationDefinitionPersister- Parameters:
replicationDefinition- TheReplicationDefinitionto be deleted.
-
replicate
Description copied from interface:ReplicationServiceRuns the specified replication.- Specified by:
replicatein interfaceReplicationService- Parameters:
replicationDefinition- The replication to run
-
disableScheduling
Description copied from interface:ReplicationServiceTurns off scheduling for the specified replication- Specified by:
disableSchedulingin interfaceReplicationService
-
enableScheduling
Description copied from interface:ReplicationServiceTurns on scheduling for the specified replication. You can then set the scheduling details on the definition.- Specified by:
enableSchedulingin interfaceReplicationService
-
isEnabled
public boolean isEnabled()Description copied from interface:ReplicationServiceIs the replication service enabled?- Specified by:
isEnabledin interfaceReplicationService
-
setReplicationParams
Sets Replication Parameters- Parameters:
replicationParams- replication parameters
-
getTransferService
-
setTransferService
-