|
|||||||||
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. |
boolean |
isEnabled()
Is the replication service enabled? |
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 target)
This method retrieves the stored ReplicationDefinition s 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 |
setReplicationParams(ReplicationParams replicationParams)
Sets Replication Parameters |
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)
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 replication
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 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 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(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 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 parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |