|
|||||||||
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 ReplicationDefinition s that have been
stored in the repository using the save() method. |
java.util.List |
loadReplicationDefinitions(java.lang.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(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()
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 java.util.List loadReplicationDefinitions(java.lang.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(java.lang.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(java.lang.String oldReplicationName, java.lang.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |