Package org.alfresco.repo.replication
Class ReplicationDefinitionPersisterImpl
- java.lang.Object
-
- org.alfresco.repo.replication.ReplicationDefinitionPersisterImpl
-
- All Implemented Interfaces:
ReplicationDefinitionPersister
public class ReplicationDefinitionPersisterImpl extends java.lang.Object implements ReplicationDefinitionPersister
This class provides the implementation of ReplicationDefinition persistence.- Since:
- 3.4
- Author:
- Nick Burch
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Set<org.alfresco.service.namespace.QName>ACTION_TYPESprotected static org.alfresco.service.cmr.repository.NodeRefREPLICATION_ACTION_ROOT_NODE_REF
-
Constructor Summary
Constructors Constructor Description ReplicationDefinitionPersisterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteReplicationDefinition(ReplicationDefinition replicationAction)This method removes the previously serializesReplicationDefinitionfrom the repository.ReplicationDefinitionloadReplicationDefinition(java.lang.String replicationDefinitionName)This method retrieves aReplicationDefinitionthat has been stored in the repository using thesave()method.ReplicationDefinitionloadReplicationDefinition(org.alfresco.service.namespace.QName replicationDefinitionName)java.util.List<ReplicationDefinition>loadReplicationDefinitions()This method retrieves theReplicationDefinitions that have been stored in the repository using thesave()method.java.util.List<ReplicationDefinition>loadReplicationDefinitions(java.lang.String targetName)This method retrieves the storedReplicationDefinitions that have been registered for the specified transfer target name.voidrenameReplicationDefinition(java.lang.String oldReplicationName, java.lang.String newReplicationName)This method renames aReplicationDefinitionthat has been stored in the repository using thesave()method.voidrenameReplicationDefinition(org.alfresco.service.namespace.QName oldReplicationName, org.alfresco.service.namespace.QName newReplicationName)voidsaveReplicationDefinition(ReplicationDefinition replicationAction)This method serializes theReplicationDefinitionand stores it in the repository.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Injects the NodeService bean.voidsetRuntimeActionService(RuntimeActionService runtimeActionService)Injects the RuntimeActionService bean.
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Injects the NodeService bean.- Parameters:
nodeService- the NodeService.
-
setRuntimeActionService
public void setRuntimeActionService(RuntimeActionService runtimeActionService)
Injects the RuntimeActionService bean.- Parameters:
runtimeActionService- the RuntimeActionService.
-
loadReplicationDefinitions
public java.util.List<ReplicationDefinition> 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
public java.util.List<ReplicationDefinition> loadReplicationDefinitions(java.lang.String targetName)
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:
ReplicationDefinitionPersister.saveReplicationDefinition(ReplicationDefinition)
-
loadReplicationDefinition
public ReplicationDefinition loadReplicationDefinition(java.lang.String replicationDefinitionName)
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
public ReplicationDefinition loadReplicationDefinition(org.alfresco.service.namespace.QName replicationDefinitionName)
-
renameReplicationDefinition
public void renameReplicationDefinition(java.lang.String oldReplicationName, java.lang.String newReplicationName)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
public void renameReplicationDefinition(org.alfresco.service.namespace.QName oldReplicationName, org.alfresco.service.namespace.QName newReplicationName)
-
saveReplicationDefinition
public void saveReplicationDefinition(ReplicationDefinition replicationAction)
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
public void deleteReplicationDefinition(ReplicationDefinition replicationAction)
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.
-
-