org.alfresco.repo.replication
Class ReplicationDefinitionPersisterImpl

java.lang.Object
  extended by 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

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

REPLICATION_ACTION_ROOT_NODE_REF

protected static final org.alfresco.service.cmr.repository.NodeRef REPLICATION_ACTION_ROOT_NODE_REF

ACTION_TYPES

protected static final java.util.Set ACTION_TYPES
Constructor Detail

ReplicationDefinitionPersisterImpl

public ReplicationDefinitionPersisterImpl()
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 loadReplicationDefinitions()
Description copied from interface: ReplicationDefinitionPersister
This method retrieves the ReplicationDefinitions that have been stored in the repository using the save() method.

If there are no such ReplicationDefinitions, an empty list is returned.

Specified by:
loadReplicationDefinitions in interface ReplicationDefinitionPersister
Returns:
The ReplicationDefinitions.

loadReplicationDefinitions

public java.util.List loadReplicationDefinitions(java.lang.String targetName)
Description copied from interface: ReplicationDefinitionPersister
This method retrieves the stored ReplicationDefinitions that have been registered for the specified transfer target name.

If there are no such rendering ReplicationDefinitions, an empty list is returned.

Specified by:
loadReplicationDefinitions in interface ReplicationDefinitionPersister
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: ReplicationDefinitionPersister
This method retrieves a 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.

Specified by:
loadReplicationDefinition in interface ReplicationDefinitionPersister
Parameters:
replicationDefinitionName - The unique identifier used to specify the ReplicationDefinition to retrieve.
Returns:
The specified ReplicationDefinition or 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: ReplicationDefinitionPersister
This method renames a 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.

Specified by:
renameReplicationDefinition in interface ReplicationDefinitionPersister
Parameters:
oldReplicationName - The unique identifier used to specify the ReplicationDefinition to rename.
newReplicationName - The unique identifier used to specify the new ReplicationDefinition name.

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: ReplicationDefinitionPersister
This method serializes the ReplicationDefinition and stores it in the repository. ReplicationDefinitions saved in this way may be retrieved using the load() method.

Specified by:
saveReplicationDefinition in interface ReplicationDefinitionPersister
Parameters:
replicationAction - The ReplicationDefinition to be persisted.

deleteReplicationDefinition

public void deleteReplicationDefinition(ReplicationDefinition replicationAction)
Description copied from interface: ReplicationDefinitionPersister
This method removes the previously serializes ReplicationDefinition from the repository. The ReplicationDefinition will then no longer be available using the load methods.

Specified by:
deleteReplicationDefinition in interface ReplicationDefinitionPersister
Parameters:
replicationAction - The ReplicationDefinition to be deleted.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.