public interface ReplicationDefinitionPersister
Modifier and Type | Method and Description |
---|---|
void |
deleteReplicationDefinition(ReplicationDefinition replicationDefinition)
This method removes the previously serializes
ReplicationDefinition
from the repository. |
ReplicationDefinition |
loadReplicationDefinition(String replicationName)
This method retrieves a
ReplicationDefinition that has been stored
in the repository using the save() method. |
List<ReplicationDefinition> |
loadReplicationDefinitions()
This method retrieves the
ReplicationDefinition s that have been
stored in the repository using the save() method. |
List<ReplicationDefinition> |
loadReplicationDefinitions(String targetName)
This method retrieves the stored
ReplicationDefinition s that have
been registered for the specified transfer target name. |
void |
renameReplicationDefinition(String oldReplicationName,
String newReplicationName)
This method renames a
ReplicationDefinition that has been stored
in the repository using the save() method. |
void |
saveReplicationDefinition(ReplicationDefinition replicationDefinition)
This method serializes the
ReplicationDefinition and stores it in
the repository. |
void saveReplicationDefinition(ReplicationDefinition replicationDefinition)
ReplicationDefinition
and stores it in
the repository. ReplicationDefinition
s saved in this way may be
retrieved using the load()
method.replicationDefinition
- The ReplicationDefinition
to be
persisted.void deleteReplicationDefinition(ReplicationDefinition replicationDefinition)
ReplicationDefinition
from the repository. The ReplicationDefinition
will then no longer
be available using the load methods.replicationDefinition
- The ReplicationDefinition
to be
deleted.void renameReplicationDefinition(String oldReplicationName, String newReplicationName)
ReplicationDefinition
that has been stored
in the repository using the save()
method.
If no ReplicationDefinition
exists in the repository with the specified
replication name, then nothing happens.oldReplicationName
- The unique identifier used to specify the
ReplicationDefinition
to rename.newReplicationName
- The unique identifier used to specify the
new ReplicationDefinition
name.ReplicationDefinition loadReplicationDefinition(String replicationName)
ReplicationDefinition
that has been stored
in the repository using the save()
method. If no
ReplicationDefinition
exists in the repository with the specified
replication name then this method returns null.replicationName
- The unique identifier used to specify the
ReplicationDefinition
to retrieve.ReplicationDefinition
or null.List<ReplicationDefinition> loadReplicationDefinitions()
ReplicationDefinition
s that have been
stored in the repository using the save()
method.
If there are no such ReplicationDefinition
s, an empty list is
returned.ReplicationDefinition
s.List<ReplicationDefinition> loadReplicationDefinitions(String targetName)
ReplicationDefinition
s that have
been registered for the specified transfer target name.
If there are no such rendering ReplicationDefinition
s, an empty
list is returned.targetName
- the name of a target.ReplicationDefinition
s.NullPointerException
- if the target is null.saveReplicationDefinition(ReplicationDefinition)
Copyright © 2005–2017 Alfresco Software. All rights reserved.