public class UpdateUserAttribute
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
UpdateUserAttribute() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value)
Checks if it is valid (concerning structural and state-based correctness)
to update the user attribute of UserAttributeContainer given by
name with the value given by value in the
instance. |
static boolean |
isPossible(ChangeableInstance instance,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value,
CheckReport checkReport)
Checks if it is valid (concerning structural and state-based correctness)
to update the user attribute of UserAttributeContainer given by
name with the value given by value in the
instance. |
static boolean |
isPossible(Template template,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value)
Checks if it is valid (concerning structural correctness) to update the
user attribute of UserAttributeContainer given by
name with
the value given by value in the template. |
static boolean |
isPossible(Template template,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value,
CheckReport checkReport)
Checks if it is valid (concerning structural correctness) to update the
user attribute of UserAttributeContainer given by
name with
the value given by value in the template. |
static void |
performOperation(ChangeableInstance instance,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value)
Sets the value of the user defined attribute identified by name to
value in the given template.
|
static void |
performOperation(ChangeableInstance instance,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value,
UpdateManager updateManager)
Sets the value of the user defined attribute identified by name to
value in the given template.
|
static void |
performOperation(ChangeableTemplate template,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value)
Sets the value of the user defined attribute identified by name to
value in the given template.
|
static void |
performOperation(ChangeableTemplate template,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value,
UpdateManager updateManager)
Sets the value of the user defined attribute identified by name to
value in the given template.
|
protected static void |
performOperation(ChangePrimitives processGraph,
UserAttributeContainer attributeContainer,
java.lang.String name,
java.lang.String value,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value)
name with
the value given by value in the template. A value of null
for value signals that the attribute should be removed.template - the template where the method is performed onattributeContainer - the container which holds the attribute
namename - of the user attribute which is to be changedvalue - the new value for the user attribute or nullpublic static boolean isPossible(Template template, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value, CheckReport checkReport)
name with
the value given by value in the template. A value of null
for value signals that the attribute should be removed. If
it is not possible the reasons are stored in the checkReport.template - the template where the method is performed onattributeContainer - the container which holds the attribute
namename - of the user attribute which is to be changedvalue - the new value for the user attribute or nullcheckReport - 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, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value)
name with the value given by value in the
instance. A value of null for value signals that the
attribute should be removed.instance - the changeable instance where the method is performed onattributeContainer - the container which holds the attribute
namename - of the user attribute which is to be changedvalue - the new value for the user attributepublic static boolean isPossible(ChangeableInstance instance, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value, CheckReport checkReport)
name with the value given by value in the
instance. A value of null for value signals that the
attribute should be removed. If it is not possible the reasons are stored
in the checkReport.instance - the changeable instance where the method is performed onattributeContainer - the container which holds the attribute
namename - of the user attribute which is to be changedvalue - the new value for the user attribute or nullcheckReport - 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(ChangeableTemplate template, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value)
value
is null, the attribute is removed. User attribute containers are e.g. Node,
Edge, DataElement, ...template - the related templateattributeContainer - The attribute container.name - The name of the user defined attribute to be modified.value - The new value or null.public static void performOperation(ChangeableTemplate template, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value, UpdateManager updateManager)
value
signals that the attribute should be removed. User attribute containers
are e.g. Node, Edge, DataElement, ... (Method with updateManager)template - the related templateattributeContainer - The attribute container.name - The name of the user defined attribute to be modified.value - The new value or null.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(ChangeableInstance instance, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value)
value
is null, the attribute is removed. User attribute containers are e.g. Node,
Edge, DataElement, ...instance - the related changeable instanceattributeContainer - The attribute container.name - The name of the user defined attribute to be modified.value - The new value or null.public static void performOperation(ChangeableInstance instance, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value, UpdateManager updateManager)
value
is null, the attribute is removed. User attribute containers are e.g. Node,
Edge, DataElement, ... (Method with updateManager)instance - the related changeable instanceattributeContainer - The attribute container.name - The name of the user defined attribute to be modified.value - The new value or null.updateManager - The UpdateManager where modifications are logged, may
be nullprotected static void performOperation(ChangePrimitives processGraph, UserAttributeContainer attributeContainer, java.lang.String name, java.lang.String value, UpdateManager updateManager)
processGraph - an instance of type ChangeableTemplate or
ChangeableInstanceattributeContainer - The attribute container.name - The name of the user defined attribute to be modified.value - The new value.updateManager - The UpdateManager where modifications are logged, may
be null