Class ScriptReplicationDefinition
- java.lang.Object
-
- org.alfresco.repo.jscript.ScriptAction
-
- org.alfresco.repo.replication.script.ScriptReplicationDefinition
-
- All Implemented Interfaces:
java.io.Serializable,Scopeable
public final class ScriptReplicationDefinition extends ScriptAction
ReplicationDefinition JavaScript Object. This class is a JavaScript-friendly wrapper for thereplicationDefinitionclass.- Author:
- Nick Burch
- See Also:
ReplicationDefinition, Serialized Form
-
-
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
Constructors Constructor Description ScriptReplicationDefinition(ServiceRegistry serviceRegistry, ReplicationService replicationService, org.mozilla.javascript.Scriptable scope, ReplicationDefinition replicationDefinition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteImpl(ScriptNode node)java.lang.StringgetDescription()ScriptNode[]getPayload()java.lang.StringgetReplicationName()Returns the name of this replication definitionjava.lang.StringgetTargetName()voidreplicate()Triggers the execution of the replication.voidsetPayload(ScriptNode[] payloadNodes)voidsetTargetName(java.lang.String target)java.lang.StringtoString()-
Methods inherited from class org.alfresco.repo.jscript.ScriptAction
execute, execute, execute, execute, executeAsynchronously, executeAsynchronouslyImpl, getName, getParameters, performParamConversionForRepo, setScope
-
-
-
-
Constructor Detail
-
ScriptReplicationDefinition
public ScriptReplicationDefinition(ServiceRegistry serviceRegistry, ReplicationService replicationService, org.mozilla.javascript.Scriptable scope, ReplicationDefinition replicationDefinition)
-
-
Method Detail
-
getReplicationName
public java.lang.String getReplicationName()
Returns the name of this replication definition- Returns:
- the name which uniquely identifies this replication definition.
-
getDescription
public java.lang.String getDescription()
-
getTargetName
public java.lang.String getTargetName()
-
setTargetName
public void setTargetName(java.lang.String target)
-
getPayload
public ScriptNode[] getPayload()
-
setPayload
public void setPayload(ScriptNode[] payloadNodes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
replicate
public void replicate()
Triggers the execution of the replication.
-
executeImpl
protected void executeImpl(ScriptNode node)
- Overrides:
executeImplin classScriptAction
-
-