mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-4348 - Fix up scheduled replication execution, and stub out the unit tests for this
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22027 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -169,6 +169,14 @@ public class ReplicationActionExecutor extends ActionExecuterAbstractBase {
|
||||
|
||||
@Override
|
||||
protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {
|
||||
// Specialise the action if needed, eg when loaded directly from
|
||||
// the NodeRef without going via the replication service
|
||||
if(action.getActionDefinitionName().equals(ReplicationDefinitionImpl.EXECUTOR_NAME))
|
||||
{
|
||||
action = new ReplicationDefinitionImpl(action);
|
||||
}
|
||||
|
||||
// Off we go
|
||||
final ReplicationDefinition replicationDef = (ReplicationDefinition)action;
|
||||
if(replicationDef.getTargetName() == null ||
|
||||
replicationDef.getTargetName().equals(""))
|
||||
|
Reference in New Issue
Block a user