org.alfresco.repo.replication.script
Class ScriptReplicationDefinition

java.lang.Object
  extended by org.alfresco.repo.jscript.ScriptAction
      extended by 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 the replicationDefinition class.

See Also:
ReplicationDefinition, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.jscript.ScriptAction
ScriptAction.ScriptableParameterMap
 
Field Summary
 
Fields inherited from class org.alfresco.repo.jscript.ScriptAction
action, actionDef, services
 
Constructor Summary
ScriptReplicationDefinition(ServiceRegistry serviceRegistry, ReplicationService replicationService, org.mozilla.javascript.Scriptable scope, ReplicationDefinition replicationDefinition)
           
 
Method Summary
protected  void executeImpl(ScriptNode node)
           
 java.lang.String getDescription()
           
 ScriptNode[] getPayload()
           
 java.lang.String getReplicationName()
          Returns the name of this replication definition
 java.lang.String getTargetName()
           
 void replicate()
          Triggers the execution of the replication.
 void setPayload(ScriptNode[] payloadNodes)
           
 void setTargetName(java.lang.String target)
           
 java.lang.String toString()
           
 
Methods inherited from class org.alfresco.repo.jscript.ScriptAction
execute, execute, execute, execute, executeAsynchronously, executeAsynchronouslyImpl, getName, getParameters, performParamConversionForRepo, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
toString in class java.lang.Object

replicate

public void replicate()
Triggers the execution of the replication.


executeImpl

protected void executeImpl(ScriptNode node)
Overrides:
executeImpl in class ScriptAction


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.