public class CloneResourceTask extends SessionedTask<java.lang.Object>
Cloning a resource simply creates a copy of that resource with the given target identity. The clone will remain to have the same references as the original one. Moreover any other resources that were referencing the original resource will continue to reference the original.
Constructor and Description |
---|
CloneResourceTask(Ref source, Ref target)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
_execute()
Subclasses implement this method
|
static void |
clone(ConfigService configService, Ref source, Ref target) |
static void |
clone(ConfigService configService, java.lang.String session, Ref source, Ref target) |
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransaction
public static void clone(ConfigService configService, Ref source, Ref target) throws CreateException, ValidationException
CreateException
ValidationException
public static void clone(ConfigService configService, java.lang.String session, Ref source, Ref target) throws CreateException, ValidationException
CreateException
ValidationException
protected java.lang.Object _execute() throws java.lang.Exception
SessionedTask
_execute
in class SessionedTask<java.lang.Object>
java.lang.Exception