Class ScriptReplicationDefinition
java.lang.Object
org.alfresco.repo.jscript.ScriptAction
org.alfresco.repo.replication.script.ScriptReplicationDefinition
- All Implemented Interfaces:
Serializable,Scopeable
ReplicationDefinition JavaScript Object. This class is a JavaScript-friendly wrapper for
the
replicationDefinition class.- Author:
- Nick Burch
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.repo.jscript.ScriptAction
ScriptAction.ScriptableParameterMap<K,V> -
Field Summary
Fields inherited from class org.alfresco.repo.jscript.ScriptAction
action, actionDef, services -
Constructor Summary
ConstructorsConstructorDescriptionScriptReplicationDefinition(ServiceRegistry serviceRegistry, ReplicationService replicationService, org.mozilla.javascript.Scriptable scope, ReplicationDefinition replicationDefinition) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteImpl(ScriptNode node) Returns the name of this replication definitionvoidTriggers the execution of the replication.voidsetPayload(ScriptNode[] payloadNodes) voidsetTargetName(String target) toString()Methods inherited from class org.alfresco.repo.jscript.ScriptAction
execute, execute, execute, execute, executeAsynchronously, executeAsynchronouslyImpl, getName, getParameters, performParamConversionForRepo, setScope
-
Constructor Details
-
ScriptReplicationDefinition
public ScriptReplicationDefinition(ServiceRegistry serviceRegistry, ReplicationService replicationService, org.mozilla.javascript.Scriptable scope, ReplicationDefinition replicationDefinition)
-
-
Method Details
-
getReplicationName
Returns the name of this replication definition- Returns:
- the name which uniquely identifies this replication definition.
-
getDescription
-
getTargetName
-
setTargetName
-
getPayload
-
setPayload
-
toString
-
replicate
public void replicate()Triggers the execution of the replication. -
executeImpl
- Overrides:
executeImplin classScriptAction
-