public class DeleteDataElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
DeleteDataElement() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
DataElement dataElement)
checks if it is valid (concerning structural and state-based correctness) to
delete the given data element from the instance
|
static boolean |
isPossible(ChangeableInstance instance,
DataElement dataElement,
CheckReport checkReport)
checks if it is valid (concerning structural and state based correctness)
to delete the given data element from the instance If not, the reasons are
stored in the check report.
|
static boolean |
isPossible(Template template,
DataElement dataElement)
checks if it is valid (concerning structural correctness) to delete the
given data element from the template
|
static boolean |
isPossible(Template template,
DataElement dataElement,
CheckReport checkReport)
Checks if it is valid (concerning structural correctness) to delete the
given data element from the template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
DataElement dataElement)
Deletes the given data element from the instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
DataElement dataElement,
UpdateManager updateManager)
Deletes the given data element from the instance Possibly assigned in- or
outgoing data edges are also deleted.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
DataElement dataElement)
Deletes the given data element from the template.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
DataElement dataElement,
UpdateManager updateManager)
Deletes the given data element from the template Possibly assigned in- or
outgoing data edges are also deleted.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
DataElement dataElement,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, DataElement dataElement)
template - the template where the data element should be deleteddataElement - the data element which should be deletedpublic static boolean isPossible(Template template, DataElement dataElement, CheckReport checkReport)
template - the template where the data element should be deleteddataElement - the data element which should be deletedcheckReport - a checkReport object which can be filled with the reason why the
isPossible failed (i.e. in the case the method returns false), may
be nullpublic static boolean isPossible(ChangeableInstance instance, DataElement dataElement)
instance - the changeable instance where the data element should be
deleteddataElement - the data element which should be deletedpublic static boolean isPossible(ChangeableInstance instance, DataElement dataElement, CheckReport checkReport)
instance - the changeable instance where the data element should be
deleteddataElement - the data element which should be deletedcheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static void performOperation(SessionToken session, ChangeableTemplate template, DataElement dataElement)
session - The session which is used to check for access rights on this
method.template - the template where the change is performed ondataElement - the data element which is to be deletedpublic static void performOperation(SessionToken session, ChangeableTemplate template, DataElement dataElement, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - the template where the change is performed ondataElement - the data element which is to be deletedupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)public static void performOperation(SessionToken session, ChangeableInstance instance, DataElement dataElement)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change is performed ondataElement - the data element which is to be deletedpublic static void performOperation(SessionToken session, ChangeableInstance instance, DataElement dataElement, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change is performed ondataElement - the data element which is to be deletedupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)protected static void performOperation(SessionToken session, ChangePrimitives processGraph, DataElement dataElement, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancedataElement - the data element which is to be deletedupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)