public abstract class AbstractVariablesResource extends Object implements VariableResource
Modifier and Type | Field and Description |
---|---|
protected ProcessEngine |
engine |
protected org.codehaus.jackson.map.ObjectMapper |
objectMapper |
protected String |
resourceId |
DESERIALIZE_VALUE_QUERY_PARAM, DESERIALIZE_VALUES_QUERY_PARAM
Constructor and Description |
---|
AbstractVariablesResource(ProcessEngine engine,
String resourceId,
org.codehaus.jackson.map.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
void |
deleteVariable(String variableName) |
protected Object |
deserializeJsonObject(String className,
byte[] data) |
protected abstract String |
getResourceTypeName() |
protected TypedValue |
getTypedValueForVariable(String variableName,
boolean deserializeValue) |
VariableValueDto |
getVariable(String variableName,
boolean deserializeValue) |
InputStream |
getVariableBinary(String variableName) |
protected abstract VariableMap |
getVariableEntities(boolean deserializeValues) |
protected abstract TypedValue |
getVariableEntity(String variableKey,
boolean deserializeValue) |
Map<String,VariableValueDto> |
getVariables(boolean deserializeValues) |
void |
modifyVariables(PatchVariablesDto patch) |
void |
putVariable(String variableName,
VariableValueDto variable) |
protected abstract void |
removeVariableEntity(String variableKey) |
void |
setBinaryVariable(String variableKey,
MultipartFormData payload) |
protected abstract void |
setVariableEntity(String variableKey,
TypedValue variableValue) |
protected abstract void |
updateVariableEntities(VariableMap variables,
List<String> deletions) |
protected ProcessEngine engine
protected String resourceId
protected org.codehaus.jackson.map.ObjectMapper objectMapper
public AbstractVariablesResource(ProcessEngine engine, String resourceId, org.codehaus.jackson.map.ObjectMapper objectMapper)
public Map<String,VariableValueDto> getVariables(boolean deserializeValues)
getVariables
in interface VariableResource
public VariableValueDto getVariable(String variableName, boolean deserializeValue)
getVariable
in interface VariableResource
protected TypedValue getTypedValueForVariable(String variableName, boolean deserializeValue)
public InputStream getVariableBinary(String variableName)
getVariableBinary
in interface VariableResource
public void putVariable(String variableName, VariableValueDto variable)
putVariable
in interface VariableResource
public void setBinaryVariable(String variableKey, MultipartFormData payload)
setBinaryVariable
in interface VariableResource
public void deleteVariable(String variableName)
deleteVariable
in interface VariableResource
public void modifyVariables(PatchVariablesDto patch)
modifyVariables
in interface VariableResource
protected abstract VariableMap getVariableEntities(boolean deserializeValues)
protected abstract void updateVariableEntities(VariableMap variables, List<String> deletions)
protected abstract TypedValue getVariableEntity(String variableKey, boolean deserializeValue)
protected abstract void setVariableEntity(String variableKey, TypedValue variableValue)
protected abstract void removeVariableEntity(String variableKey)
protected abstract String getResourceTypeName()
Copyright © 2018. All rights reserved.