|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.replication.ReplicationServiceImpl
public class ReplicationServiceImpl
| Constructor Summary | |
|---|---|
ReplicationServiceImpl()
|
|
| Method Summary | |
|---|---|
ReplicationDefinition |
createReplicationDefinition(java.lang.String replicationDefinitionName,
java.lang.String description)
Creates a new ReplicationDefinition and sets the replication
name and description to the specified values. |
void |
deleteReplicationDefinition(ReplicationDefinition replicationDefinition)
This method removes the previously serializes ReplicationDefinition
from the repository. |
void |
disableScheduling(ReplicationDefinition replicationDefinition)
Turns off scheduling for the specified replication |
void |
enableScheduling(ReplicationDefinition replicationDefinition)
Turns on scheduling for the specified replication. |
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 target)
This method retrieves the stored ReplicationDefinitions that have
been registered for the specified transfer target name. |
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 |
replicate(ReplicationDefinition replicationDefinition)
Runs the specified replication. |
void |
saveReplicationDefinition(ReplicationDefinition replicationDefinition)
This method serializes the ReplicationDefinition and stores it in
the repository. |
void |
setActionService(ActionService actionService)
Injects the ActionService bean. |
void |
setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
Injects the ReplicationDefinitionPersister bean. |
void |
setScheduledPersistedActionService(ScheduledPersistedActionService scheduledPersistedActionService)
Injects the Scheduled Persisted Action Service bean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationServiceImpl()
| Method Detail |
|---|
public void setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
replicationDefinitionPersister - public void setActionService(ActionService actionService)
actionService - public void setScheduledPersistedActionService(ScheduledPersistedActionService scheduledPersistedActionService)
scheduledPersistedActionService -
public ReplicationDefinition createReplicationDefinition(java.lang.String replicationDefinitionName,
java.lang.String description)
ReplicationServiceReplicationDefinition and sets the replication
name and description to the specified values.
createReplicationDefinition in interface ReplicationServicereplicationDefinitionName - A unique identifier used to specify the created
ReplicationDefinitiondescription - A description of the replication
ReplicationDefinitionpublic 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 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 target)
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 ReplicationDefinitionPersistertarget - the name of a target.
ReplicationDefinitions.ReplicationDefinitionPersister.saveReplicationDefinition(ReplicationDefinition)
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 saveReplicationDefinition(ReplicationDefinition replicationDefinition)
ReplicationDefinitionPersisterReplicationDefinition and stores it in
the repository. ReplicationDefinitions saved in this way may be
retrieved using the load() method.
saveReplicationDefinition in interface ReplicationDefinitionPersisterreplicationDefinition - The ReplicationDefinition to be
persisted.public void deleteReplicationDefinition(ReplicationDefinition replicationDefinition)
ReplicationDefinitionPersisterReplicationDefinition
from the repository. The ReplicationDefinition will then no longer
be available using the load methods.
deleteReplicationDefinition in interface ReplicationDefinitionPersisterreplicationDefinition - The ReplicationDefinition to be
deleted.public void replicate(ReplicationDefinition replicationDefinition)
ReplicationService
replicate in interface ReplicationServicereplicationDefinition - The replication to runpublic void disableScheduling(ReplicationDefinition replicationDefinition)
ReplicationService
disableScheduling in interface ReplicationServicepublic void enableScheduling(ReplicationDefinition replicationDefinition)
ReplicationService
enableScheduling in interface ReplicationService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||