public class InsertDataElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
InsertDataElement() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance)
Check if it is possible (concerning structural and state based correctness)
to insert a new data element in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
CheckReport checkReport)
Check if it is possible to insert a new data element (concerning structural
and state based correctness) in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
DataElement dataElement)
Check if it is possible (concerning structural and state based correctness)
to insert a new data element given as a data element container object
(without an id) in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
DataElement dataElement,
CheckReport checkReport)
Check if it is possible (concerning structural and state based correctness)
to insert a new data element given as a data element container object
(without an id) in the instance.
|
static boolean |
isPossible(Template template)
Check if it is possible (concerning structural aspects) to insert a new
data element in the template.
|
static boolean |
isPossible(Template template,
CheckReport checkReport)
Check if it is possible to insert a new data element (concerning structural
aspects) to insert a new data element in the template.
|
static boolean |
isPossible(Template template,
DataElement dataElement)
Check if it is possible (concerning structural aspects) to insert a new
data element given as a data element container object (without an id) in
the template.
|
static boolean |
isPossible(Template template,
DataElement dataElement,
CheckReport checkReport)
Check if it is possible (concerning structural aspects) to insert a new
data element given as a data element container object (without an id) in
the template.
|
static DataElement |
performOperation(SessionToken session,
ChangeableInstance instance)
Insert a new data element in the instance.
|
static DataElement |
performOperation(SessionToken session,
ChangeableInstance instance,
DataElement dataElement)
Insert a new data element in the instance.
|
static DataElement |
performOperation(SessionToken session,
ChangeableInstance instance,
DataElement dataElement,
UpdateManager updateManager)
Insert a new data element in the instance.
|
static DataElement |
performOperation(SessionToken session,
ChangeableInstance instance,
UpdateManager updateManager)
Insert a new data element in the instance (with updateManager).
|
static DataElement |
performOperation(SessionToken session,
ChangeableTemplate template)
Insert a new data element in the template.
|
static DataElement |
performOperation(SessionToken session,
ChangeableTemplate template,
DataElement dataElement)
Insert a new data element in the template.
|
static DataElement |
performOperation(SessionToken session,
ChangeableTemplate template,
DataElement dataElement,
UpdateManager updateManager)
Insert a new data element in the template.
|
static DataElement |
performOperation(SessionToken session,
ChangeableTemplate template,
UpdateManager updateManager)
Insert a new data element in the template.
|
protected static DataElement |
performOperation(SessionToken session,
ChangePrimitives processGraph,
DataElement dataElement,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances (with given dataElement).
|
protected static DataElement |
performOperation(SessionToken session,
ChangePrimitives processGraph,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template)
template - The template where the data element should be
inserted.public static boolean isPossible(Template template, CheckReport checkReport)
template - The template where the data element should be
inserted.checkReport - 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(Template template, DataElement dataElement)
template - The template where the data element should be inserted.dataElement - a data element container (without an id) which should be
inserted including all of its parameterspublic static boolean isPossible(Template template, DataElement dataElement, CheckReport checkReport)
template - The template where the data element should be inserted.dataElement - a data element container (without an id) which should be
inserted including all of its parameterscheckReport - 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)
instance - The changeable instance where the data element should be inserted.public static boolean isPossible(ChangeableInstance instance, CheckReport checkReport)
instance - The changeable instance where the data element should be
inserted.checkReport - 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 inserted.dataElement - a data element container (without an id) which should be
inserted including all of its parameterspublic static boolean isPossible(ChangeableInstance instance, DataElement dataElement, CheckReport checkReport)
instance - The changeable instance where the data element should be
inserted.dataElement - a data element container (without an id) which should be
inserted including all of its parameterscheckReport - 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 DataElement performOperation(SessionToken session, ChangeableTemplate template)
session - The session which is used to check for access rights on this
method.template - The changeable template where the data element is to be
inserted.public static DataElement performOperation(SessionToken session, ChangeableTemplate template, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - The changeable template where the data element is to be
inserted.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static DataElement performOperation(SessionToken session, ChangeableTemplate template, DataElement dataElement)
session - The session which is used to check for access rights on this
method.template - The changeable template where the data element is to be
inserted.dataElement - the dummy data element containerpublic static DataElement 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 changeable template where the data element is to be
inserted.dataElement - the dummy data element containerupdateManager - the update manager for the visualisation; may be nullpublic static DataElement performOperation(SessionToken session, ChangeableInstance instance)
session - The session which is used to check for access rights on this
method.instance - The changeable instance where the data element is to be
inserted.public static DataElement performOperation(SessionToken session, ChangeableInstance instance, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - The changeable instance where the data element is to be
inserted.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static DataElement 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 data element is to be
inserted.dataElement - the dummy data element containerpublic static DataElement 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 data element is to be
inserted.dataElement - the dummy data element containerupdateManager - the update manager for the visualisation; may be nullprotected static DataElement 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 dummy data element containerupdateManager - the update manager for the visualisation; may be nullprotected static DataElement performOperation(SessionToken session, ChangePrimitives processGraph, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstanceupdateManager - the update manager for the visualisation; may be null