|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.replication.ReplicationDefinitionPersisterImpl
public class ReplicationDefinitionPersisterImpl
This class provides the implementation of ReplicationDefinition persistence.
| Field Summary | |
|---|---|
protected static java.util.Set |
ACTION_TYPES
|
protected static org.alfresco.service.cmr.repository.NodeRef |
REPLICATION_ACTION_ROOT_NODE_REF
|
| Constructor Summary | |
|---|---|
ReplicationDefinitionPersisterImpl()
|
|
| Method Summary | |
|---|---|
void |
deleteReplicationDefinition(ReplicationDefinition replicationAction)
This method removes the previously serializes ReplicationDefinition
from the repository. |
ReplicationDefinition |
loadReplicationDefinition(org.alfresco.service.namespace.QName replicationDefinitionName)
|
ReplicationDefinition |
loadReplicationDefinition(java.lang.String replicationDefinitionName)
This method retrieves a ReplicationDefinition that has been stored
in the repository using the save() method. |
java.util.List |
loadReplicationDefinitions()
This method retrieves the ReplicationDefinitions that have been
stored in the repository using the save() method. |
java.util.List |
loadReplicationDefinitions(java.lang.String targetName)
This method retrieves the stored ReplicationDefinitions 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(java.lang.String oldReplicationName,
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.alfresco.service.cmr.repository.NodeRef REPLICATION_ACTION_ROOT_NODE_REF
protected static final java.util.Set ACTION_TYPES
| Constructor Detail |
|---|
public ReplicationDefinitionPersisterImpl()
| Method Detail |
|---|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the NodeService.public void setRuntimeActionService(RuntimeActionService runtimeActionService)
runtimeActionService - the RuntimeActionService.public java.util.List loadReplicationDefinitions()
ReplicationDefinitionPersisterReplicationDefinitions that have been
stored in the repository using the save() method.
If there are no such ReplicationDefinitions, an empty list is
returned.
loadReplicationDefinitions in interface ReplicationDefinitionPersisterReplicationDefinitions.public java.util.List loadReplicationDefinitions(java.lang.String targetName)
ReplicationDefinitionPersisterReplicationDefinitions that have
been registered for the specified transfer target name.
If there are no such rendering ReplicationDefinitions, an empty
list is returned.
loadReplicationDefinitions in interface ReplicationDefinitionPersistertargetName - the name of a target.
ReplicationDefinitions.ReplicationDefinitionPersister.saveReplicationDefinition(ReplicationDefinition)public ReplicationDefinition loadReplicationDefinition(java.lang.String replicationDefinitionName)
ReplicationDefinitionPersisterReplicationDefinition 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 ReplicationDefinitionPersisterreplicationDefinitionName - 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(java.lang.String oldReplicationName,
java.lang.String newReplicationName)
ReplicationDefinitionPersisterReplicationDefinition 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 ReplicationDefinitionPersisteroldReplicationName - 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)
ReplicationDefinitionPersisterReplicationDefinition and stores it in
the repository. ReplicationDefinitions saved in this way may be
retrieved using the load() method.
saveReplicationDefinition in interface ReplicationDefinitionPersisterreplicationAction - The ReplicationDefinition to be
persisted.public void deleteReplicationDefinition(ReplicationDefinition replicationAction)
ReplicationDefinitionPersisterReplicationDefinition
from the repository. The ReplicationDefinition will then no longer
be available using the load methods.
deleteReplicationDefinition in interface ReplicationDefinitionPersisterreplicationAction - The ReplicationDefinition to be
deleted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||