Class ScriptTransferService
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.transfer.script.ScriptTransferService
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,Scopeable
Java Script Transfer Service. Adapts the Java Transfer Service to Java Script.
- Author:
- Mark Rogers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTransferTarget(String name) getTransferTargetsByGroup(String groupName) Get the transfer targets for the specified groupRemove a set of nodes, with no callbackvoidsetExcludedAspects(String[] excludedAspects) voidsetServiceRegistry(ServiceRegistry serviceRegistry) voidsetTransferService(TransferService transferService) Transfer a set of nodes, with no callbacktransferReadOnly(String targetName, Object nodesToTransfer) Transfer a set of nodes, with no callback.Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
ScriptTransferService
public ScriptTransferService()
-
-
Method Details
-
setTransferService
- Parameters:
transferService- TransferService
-
getTransferService
- Returns:
- TransferService
-
getTransferTargetsByGroup
Get the transfer targets for the specified group -
getAllTransferTargets
-
getTransferTarget
-
transferReadOnly
Transfer a set of nodes, with no callback.Nodes are to be locked read only on target.
- Parameters:
targetName- the name of the target to transfer tonodesToTransfer- the nodes to transfer - Java Script Array of either ScriptNodes, NodeRef or String- Returns:
- node ref of transfer report.
-
transfer
Transfer a set of nodes, with no callbackNodes are not locked on the target.
- Parameters:
targetName- the name of the target to transfer tonodesToTransfer- the nodes to transfer - Java Script Array of either ScriptNodes, NodeRef or String- Returns:
- node ref of transfer report.
-
remove
Remove a set of nodes, with no callbackNodes are not locked on the target.
- Parameters:
targetName- the name of the target to transfer tonodesToRemove- the nodes to transfer - Java Script Array of either ScriptNodes, NodeRef or String- Returns:
- node ref of transfer report.
-
setServiceRegistry
-
getServiceRegistry
-
setExcludedAspects
-