public class CopyInstancesWithRelationsRule extends CopyInstancesAbstractRule
Modifier and Type | Field and Description |
---|---|
static int |
RC_FACTORY_UNAVAILABLE |
static int |
RC_GENERAL_EXCEPTION |
static int |
RC_INVALID_CREDENTIALS |
static int |
RC_INVALID_DATA |
static int |
RC_SERVICE_UNAVAILABLE |
static int |
RC_SUCCESS |
aeIdMap, checkInstElem, copyInstanceAttributes, skipId, skipValues, targetSess, useGetValueSeq, userGroupMap, withSecurity
elementName, handledMap, messenger, sourceSess, useDestroy
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
CopyInstancesWithRelationsRule() |
Modifier and Type | Method and Description |
---|---|
NameValueUnit[][] |
getValue()
ElementToRule, nothing to do at getValue()
|
void |
init()
The initialization of the rule.
|
protected InstanceElement |
instanceElementCopyRelated(InstanceElement ie,
ApplicationStructure sourceAs,
ApplicationStructure targetAs,
boolean copyChild)
Copy an instance element from the source instance element structure to the
target instance element structure.
|
void |
setValue(NameValueUnit[][] nvu)
Set the value.
|
void |
terminate()
The terminat method, reset the local variables.
|
copyInitialRights, copyRights, createCopiedInstance, getAttributeDatatype, getAttributName, getTargetAID, getTargetUserGroup, init, linkRelated, listAttributes, listElementAttributes, loadFromTarget, terminate
addCopied, addHandledId, checkHandledId, destroy, destroy, execute, getCopiedTarget, getIds, getIds, getIdValue, getTargetApplicationRelation, setValue, stactTraceToString
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
public static final int RC_SUCCESS
public static final int RC_INVALID_DATA
public static final int RC_INVALID_CREDENTIALS
public static final int RC_SERVICE_UNAVAILABLE
public static final int RC_FACTORY_UNAVAILABLE
public static final int RC_GENERAL_EXCEPTION
public NameValueUnit[][] getValue()
getValue
in interface RuleIF
getValue
in class CopyInstancesAbstractRule
RuleIF.getValue()
protected InstanceElement instanceElementCopyRelated(InstanceElement ie, ApplicationStructure sourceAs, ApplicationStructure targetAs, boolean copyChild) throws AoException
ie
- the instance element to be copiedsourceAs
- the source application structuretargetAs
- the target application structurecopyChild
- copy also the child instances.AoException
public void setValue(NameValueUnit[][] nvu) throws RuleException
setValue
in interface RuleIF
setValue
in class AscobaAbstractRule
nvu
- -
the attribute values of the instances of the element of the rule.RuleException
RuleIF.setValue(org.asam.ods.NameValueUnit[][])
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- if the initialization fails.AbstractImplementation.init()
public void terminate() throws TerminationException
terminate
in interface ExecutableIF
terminate
in class AbstractRule
TerminationException
- if termination fails.AbstractRule.terminate()