Package org.alfresco.repo.replication
Interface ReplicationDefinitionPersister
- All Known Subinterfaces:
ReplicationService
- All Known Implementing Classes:
ReplicationDefinitionPersisterImpl,ReplicationServiceImpl
public interface ReplicationDefinitionPersister
This class provides the implementation of ReplicationDefinition persistence.
- Since:
- 3.4
- Author:
- Nick Burch
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteReplicationDefinition(ReplicationDefinition replicationDefinition) This method removes the previously serializesReplicationDefinitionfrom the repository.loadReplicationDefinition(String replicationName) 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 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.voidsaveReplicationDefinition(ReplicationDefinition replicationDefinition) This method serializes theReplicationDefinitionand stores it in the repository.
-
Method Details
-
saveReplicationDefinition
This method serializes theReplicationDefinitionand stores it in the repository.ReplicationDefinitions saved in this way may be retrieved using theload()method.- Parameters:
replicationDefinition- TheReplicationDefinitionto be persisted.
-
deleteReplicationDefinition
This method removes the previously serializesReplicationDefinitionfrom the repository. TheReplicationDefinitionwill then no longer be available using the load methods.- Parameters:
replicationDefinition- TheReplicationDefinitionto be deleted.
-
renameReplicationDefinition
This 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.- Parameters:
oldReplicationName- The unique identifier used to specify theReplicationDefinitionto rename.newReplicationName- The unique identifier used to specify the newReplicationDefinitionname.
-
loadReplicationDefinition
This 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.- Parameters:
replicationName- The unique identifier used to specify theReplicationDefinitionto retrieve.- Returns:
- The specified
ReplicationDefinitionor null.
-
loadReplicationDefinitions
List<ReplicationDefinition> loadReplicationDefinitions()This method retrieves theReplicationDefinitions that have been stored in the repository using thesave()method. If there are no suchReplicationDefinitions, an empty list is returned.- Returns:
- The
ReplicationDefinitions.
-
loadReplicationDefinitions
This 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.- Parameters:
targetName- the name of a target.- Returns:
- The
ReplicationDefinitions. - Throws:
NullPointerException- if the target is null.- See Also:
-