public class ReplicationDefinitionPersisterImpl extends Object implements ReplicationDefinitionPersister
Modifier and Type | Field and Description |
---|---|
protected static Set<org.alfresco.service.namespace.QName> |
ACTION_TYPES |
protected static org.alfresco.service.cmr.repository.NodeRef |
REPLICATION_ACTION_ROOT_NODE_REF |
Constructor and Description |
---|
ReplicationDefinitionPersisterImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteReplicationDefinition(ReplicationDefinition replicationAction)
This method removes the previously serializes
ReplicationDefinition
from the repository. |
ReplicationDefinition |
loadReplicationDefinition(org.alfresco.service.namespace.QName replicationDefinitionName) |
ReplicationDefinition |
loadReplicationDefinition(String replicationDefinitionName)
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(org.alfresco.service.namespace.QName oldReplicationName,
org.alfresco.service.namespace.QName newReplicationName) |
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 replicationAction)
This method serializes the
ReplicationDefinition and stores it in
the repository. |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Injects the NodeService bean.
|
void |
setRuntimeActionService(RuntimeActionService runtimeActionService)
Injects the RuntimeActionService bean.
|
protected static final org.alfresco.service.cmr.repository.NodeRef REPLICATION_ACTION_ROOT_NODE_REF
protected static final Set<org.alfresco.service.namespace.QName> ACTION_TYPES
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the NodeService.public void setRuntimeActionService(RuntimeActionService runtimeActionService)
runtimeActionService
- the RuntimeActionService.public List<ReplicationDefinition> loadReplicationDefinitions()
ReplicationDefinitionPersister
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.loadReplicationDefinitions
in interface ReplicationDefinitionPersister
ReplicationDefinition
s.public List<ReplicationDefinition> loadReplicationDefinitions(String targetName)
ReplicationDefinitionPersister
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.loadReplicationDefinitions
in interface ReplicationDefinitionPersister
targetName
- the name of a target.ReplicationDefinition
s.ReplicationDefinitionPersister.saveReplicationDefinition(ReplicationDefinition)
public ReplicationDefinition loadReplicationDefinition(String replicationDefinitionName)
ReplicationDefinitionPersister
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.loadReplicationDefinition
in interface ReplicationDefinitionPersister
replicationDefinitionName
- The unique identifier used to specify the
ReplicationDefinition
to retrieve.ReplicationDefinition
or null.public ReplicationDefinition loadReplicationDefinition(org.alfresco.service.namespace.QName replicationDefinitionName)
public void renameReplicationDefinition(String oldReplicationName, String newReplicationName)
ReplicationDefinitionPersister
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.renameReplicationDefinition
in interface ReplicationDefinitionPersister
oldReplicationName
- The unique identifier used to specify the
ReplicationDefinition
to rename.newReplicationName
- The unique identifier used to specify the
new ReplicationDefinition
name.public void renameReplicationDefinition(org.alfresco.service.namespace.QName oldReplicationName, org.alfresco.service.namespace.QName newReplicationName)
public void saveReplicationDefinition(ReplicationDefinition replicationAction)
ReplicationDefinitionPersister
ReplicationDefinition
and stores it in
the repository. ReplicationDefinition
s saved in this way may be
retrieved using the load()
method.saveReplicationDefinition
in interface ReplicationDefinitionPersister
replicationAction
- The ReplicationDefinition
to be
persisted.public void deleteReplicationDefinition(ReplicationDefinition replicationAction)
ReplicationDefinitionPersister
ReplicationDefinition
from the repository. The ReplicationDefinition
will then no longer
be available using the load methods.deleteReplicationDefinition
in interface ReplicationDefinitionPersister
replicationAction
- The ReplicationDefinition
to be
deleted.Copyright © 2005–2017 Alfresco Software. All rights reserved.