public class RemoveNodeSystemParameter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
RemoveNodeSystemParameter() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(Instance instance,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName)
Check if it is possible (concerning structural correctness and state based
correctness) to remove the given system parameter from the given node.
|
static boolean |
isPossible(Instance instance,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to remove the given system parameter from the given node.
|
static boolean |
isPossible(Template template,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName)
Check if it is possible (concerning structural correctness) to remove the given
system parameter from the given node.
|
static boolean |
isPossible(Template template,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to remove the given
system parameter from the given node.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName)
Removes the given system parameter from the given node in the given instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName,
UpdateManager updateManager)
Removes the given system parameter from the given node in the given instance.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName)
Removes the given system parameter from the given node in the given template.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName,
UpdateManager updateManager)
Removes the given system parameter from the given node in the given template.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
int nodeID,
ActivityConstants.AccessType type,
java.lang.String parameterName,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName)
template - The corresponding templatenodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterpublic static boolean isPossible(Template template, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName, CheckReport checkReport)
template - The corresponding templatenodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parametercheckReport - 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(Instance instance, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName)
instance - The related changeable instance.nodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterpublic static boolean isPossible(Instance instance, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName, CheckReport checkReport)
instance - The related changeable instance.nodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parametercheckReport - 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, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName)
session - The session which is used to check for access rights on this
method.template - The related changeable template.nodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterpublic static void performOperation(SessionToken session, ChangeableTemplate template, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - The related changeable template.nodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterupdateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(SessionToken session, ChangeableInstance instance, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName)
session - The session which is used to check for access rights on this
method.instance - The related changeable instance.nodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterpublic static void performOperation(SessionToken session, ChangeableInstance instance, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - The related changeable instance.nodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)protected static void performOperation(SessionToken session, ChangePrimitives processGraph, int nodeID, ActivityConstants.AccessType type, java.lang.String parameterName, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenodeID - the node where the system parameter should be removed.type - the access type SYSTEM_READ or SYSTEM_WRITEparameterName - the name of the system parameterupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)