org.alfresco.repo.jscript
Class CrossRepositoryCopy
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.jscript.CrossRepositoryCopy
- All Implemented Interfaces:
- org.alfresco.processor.ProcessorExtension, Scopeable
public final class CrossRepositoryCopy
- extends BaseScopableProcessorExtension
Helper bean to access Cross Repository copy services from a script context.
Field Summary |
static java.lang.String |
BEAN_NAME
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_NAME
public static final java.lang.String BEAN_NAME
- See Also:
- Constant Field Values
CrossRepositoryCopy
public CrossRepositoryCopy()
setServiceRegistry
public void setServiceRegistry(ServiceRegistry services)
- Set the service registry
- Parameters:
services
- the service registry
copy
public ScriptNode copy(ScriptNode src,
ScriptNode dest,
java.lang.String name)
- Perform a copy of a source node to the specified parent destination node. The name will
be applied to the destination node copy.
Inter-store copy operations between Workspace and AVM and visa-versa are supported.
- Parameters:
src
- Source node instancedest
- Destination parent node instancename
- Name of the node copy
- Returns:
- node representing the copy if successful, null on unsupported store type.
- Throws:
org.alfresco.error.AlfrescoRuntimeException
- on copy error
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.