public class ScriptTransferService extends BaseScopableProcessorExtension
Constructor and Description |
---|
ScriptTransferService() |
Modifier and Type | Method and Description |
---|---|
ScriptTransferTarget[] |
getAllTransferTargets() |
ServiceRegistry |
getServiceRegistry() |
TransferService |
getTransferService() |
ScriptTransferTarget |
getTransferTarget(String name) |
ScriptTransferTarget[] |
getTransferTargetsByGroup(String groupName)
Get the transfer targets for the specified group
|
ScriptNode |
remove(String targetName,
Object nodesToRemove)
Remove a set of nodes, with no callback
|
void |
setExcludedAspects(String[] excludedAspects) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setTransferService(TransferService transferService) |
ScriptNode |
transfer(String targetName,
Object nodesToTransfer)
Transfer a set of nodes, with no callback
|
ScriptNode |
transferReadOnly(String targetName,
Object nodesToTransfer)
Transfer a set of nodes, with no callback.
|
getScope, setScope
getExtensionName, register, setExtensionName, setProcessor
public void setTransferService(TransferService transferService)
transferService
- TransferServicepublic TransferService getTransferService()
public ScriptTransferTarget[] getTransferTargetsByGroup(String groupName)
public ScriptTransferTarget[] getAllTransferTargets()
public ScriptTransferTarget getTransferTarget(String name)
public ScriptNode transferReadOnly(String targetName, Object nodesToTransfer)
Nodes are to be locked read only on target.
targetName
- the name of the target to transfer tonodesToTransfer
- the nodes to transfer - Java Script Array of either ScriptNodes, NodeRef or Stringpublic ScriptNode transfer(String targetName, Object nodesToTransfer)
Nodes are not locked on the target.
targetName
- the name of the target to transfer tonodesToTransfer
- the nodes to transfer - Java Script Array of either ScriptNodes, NodeRef or Stringpublic ScriptNode remove(String targetName, Object nodesToRemove)
Nodes are not locked on the target.
targetName
- the name of the target to transfer tonodesToRemove
- the nodes to transfer - Java Script Array of either ScriptNodes, NodeRef or Stringpublic void setServiceRegistry(ServiceRegistry serviceRegistry)
public ServiceRegistry getServiceRegistry()
public void setExcludedAspects(String[] excludedAspects)
Copyright © 2005–2017 Alfresco Software. All rights reserved.