public class ReplicationServiceImpl extends Object implements ReplicationService, ReplicationDefinitionPersister
Constructor and Description |
---|
ReplicationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ReplicationDefinition |
createReplicationDefinition(String replicationDefinitionName,
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.
|
TransferService |
getTransferService() |
boolean |
isEnabled()
Is the replication service enabled?
|
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 target)
This method retrieves the stored
ReplicationDefinition s that have
been registered for the specified transfer target name. |
void |
renameReplicationDefinition(String oldReplicationName,
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 |
setReplicationParams(ReplicationParams replicationParams)
Sets Replication Parameters
|
void |
setScheduledPersistedActionService(ScheduledPersistedActionService scheduledPersistedActionService)
Injects the Scheduled Persisted Action Service bean
|
void |
setTransferService(TransferService transferService) |
public void setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
replicationDefinitionPersister
- ReplicationDefinitionPersisterImplpublic void setActionService(ActionService actionService)
actionService
- ActionServicepublic void setScheduledPersistedActionService(ScheduledPersistedActionService scheduledPersistedActionService)
scheduledPersistedActionService
- ScheduledPersistedActionServicepublic ReplicationDefinition createReplicationDefinition(String replicationDefinitionName, String description)
ReplicationService
ReplicationDefinition
and sets the replication
name and description to the specified values.createReplicationDefinition
in interface ReplicationService
replicationDefinitionName
- A unique identifier used to specify the created
ReplicationDefinition
description
- A description of the replicationReplicationDefinition
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 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 target)
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
target
- the name of a target.ReplicationDefinition
s.ReplicationDefinitionPersister.saveReplicationDefinition(ReplicationDefinition)
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 saveReplicationDefinition(ReplicationDefinition replicationDefinition)
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
replicationDefinition
- The ReplicationDefinition
to be
persisted.public void deleteReplicationDefinition(ReplicationDefinition replicationDefinition)
ReplicationDefinitionPersister
ReplicationDefinition
from the repository. The ReplicationDefinition
will then no longer
be available using the load methods.deleteReplicationDefinition
in interface ReplicationDefinitionPersister
replicationDefinition
- The ReplicationDefinition
to be
deleted.public void replicate(ReplicationDefinition replicationDefinition)
ReplicationService
replicate
in interface ReplicationService
replicationDefinition
- The replication to runpublic void disableScheduling(ReplicationDefinition replicationDefinition)
ReplicationService
disableScheduling
in interface ReplicationService
public void enableScheduling(ReplicationDefinition replicationDefinition)
ReplicationService
enableScheduling
in interface ReplicationService
public boolean isEnabled()
ReplicationService
isEnabled
in interface ReplicationService
public void setReplicationParams(ReplicationParams replicationParams)
replicationParams
- replication parameterspublic TransferService getTransferService()
public void setTransferService(TransferService transferService)
Copyright © 2005–2017 Alfresco Software. All rights reserved.