Package org.alfresco.repo.replication
Class ReplicationDefinitionPersisterImpl
java.lang.Object
org.alfresco.repo.replication.ReplicationDefinitionPersisterImpl
- All Implemented Interfaces:
ReplicationDefinitionPersister
public class ReplicationDefinitionPersisterImpl
extends Object
implements ReplicationDefinitionPersister
This class provides the implementation of ReplicationDefinition persistence.
- Since:
- 3.4
- Author:
- Nick Burch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteReplicationDefinition(ReplicationDefinition replicationAction) This method removes the previously serializesReplicationDefinitionfrom the repository.loadReplicationDefinition(String replicationDefinitionName) This method retrieves aReplicationDefinitionthat has been stored in the repository using thesave()method.loadReplicationDefinition(QName replicationDefinitionName) This method retrieves theReplicationDefinitions that have been stored in the repository using thesave()method.loadReplicationDefinitions(String targetName) 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.voidrenameReplicationDefinition(QName oldReplicationName, QName newReplicationName) voidsaveReplicationDefinition(ReplicationDefinition replicationAction) This method serializes theReplicationDefinitionand stores it in the repository.voidsetNodeService(NodeService nodeService) Injects the NodeService bean.voidsetRuntimeActionService(RuntimeActionService runtimeActionService) Injects the RuntimeActionService bean.
-
Field Details
-
REPLICATION_ACTION_ROOT_NODE_REF
-
ACTION_TYPES
-
-
Constructor Details
-
ReplicationDefinitionPersisterImpl
public ReplicationDefinitionPersisterImpl()
-
-
Method Details
-
setNodeService
Injects the NodeService bean.- Parameters:
nodeService- the NodeService.
-
setRuntimeActionService
Injects the RuntimeActionService bean.- Parameters:
runtimeActionService- the RuntimeActionService.
-
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:
targetName- the name of a target.- Returns:
- The
ReplicationDefinitions. - See Also:
-
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.
-
loadReplicationDefinition
-
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.
-
renameReplicationDefinition
-
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:
replicationAction- 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:
replicationAction- TheReplicationDefinitionto be deleted.
-