Class AbstractVariablesResource
- java.lang.Object
- 
- org.camunda.bpm.engine.rest.sub.impl.AbstractVariablesResource
 
- 
- All Implemented Interfaces:
- VariableResource
 - Direct Known Subclasses:
- CaseExecutionVariablesResource,- ExecutionVariablesResource,- LocalCaseExecutionVariablesResource,- LocalExecutionVariablesResource,- LocalTaskVariablesResource,- TaskVariablesResource
 
 public abstract class AbstractVariablesResource extends java.lang.Object implements VariableResource 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static java.lang.StringDEFAULT_BINARY_VALUE_TYPEprotected ProcessEngineengineprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected java.lang.StringresourceId- 
Fields inherited from interface org.camunda.bpm.engine.rest.sub.VariableResourceDESERIALIZE_VALUE_QUERY_PARAM, DESERIALIZE_VALUES_QUERY_PARAM
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractVariablesResource(ProcessEngine engine, java.lang.String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddeleteVariable(java.lang.String variableName)protected java.lang.ObjectdeserializeJsonObject(java.lang.String className, byte[] data)protected ProcessEngineConfigurationgetProcessEngineConfiguration()protected abstract java.lang.StringgetResourceTypeName()protected TypedValuegetTypedValueForVariable(java.lang.String variableName, boolean deserializeValue)VariableValueDtogetVariable(java.lang.String variableName, boolean deserializeValue)javax.ws.rs.core.ResponsegetVariableBinary(java.lang.String variableName)protected abstract VariableMapgetVariableEntities(boolean deserializeValues)protected abstract TypedValuegetVariableEntity(java.lang.String variableKey, boolean deserializeValue)java.util.Map<java.lang.String,VariableValueDto>getVariables(boolean deserializeValues)voidmodifyVariables(PatchVariablesDto patch)voidputVariable(java.lang.String variableName, VariableValueDto variable)protected abstract voidremoveVariableEntity(java.lang.String variableKey)voidsetBinaryVariable(java.lang.String variableKey, MultipartFormData payload)protected abstract voidsetVariableEntity(java.lang.String variableKey, TypedValue variableValue)protected abstract voidupdateVariableEntities(VariableMap variables, java.util.List<java.lang.String> deletions)protected voidvalidateType(com.fasterxml.jackson.databind.JavaType type)Validate the type with the help of the validator in the engine.
 Note: when adjusting this method, please also consider adjusting theJacksonJsonDataFormatMapper#validateTypein the Engine Spin Pluginprotected voidvalidateType(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, java.util.List<java.lang.String> invalidTypes)protected voidvalidateTypeInternal(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, java.util.List<java.lang.String> invalidTypes)
 
- 
- 
- 
Field Detail- 
DEFAULT_BINARY_VALUE_TYPEprotected static final java.lang.String DEFAULT_BINARY_VALUE_TYPE - See Also:
- Constant Field Values
 
 - 
engineprotected ProcessEngine engine 
 - 
resourceIdprotected java.lang.String resourceId 
 - 
objectMapperprotected com.fasterxml.jackson.databind.ObjectMapper objectMapper 
 
- 
 - 
Constructor Detail- 
AbstractVariablesResourcepublic AbstractVariablesResource(ProcessEngine engine, java.lang.String resourceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper) 
 
- 
 - 
Method Detail- 
getVariablespublic java.util.Map<java.lang.String,VariableValueDto> getVariables(boolean deserializeValues) - Specified by:
- getVariablesin interface- VariableResource
 
 - 
getVariablepublic VariableValueDto getVariable(java.lang.String variableName, boolean deserializeValue) - Specified by:
- getVariablein interface- VariableResource
 
 - 
getTypedValueForVariableprotected TypedValue getTypedValueForVariable(java.lang.String variableName, boolean deserializeValue) 
 - 
getVariableBinarypublic javax.ws.rs.core.Response getVariableBinary(java.lang.String variableName) - Specified by:
- getVariableBinaryin interface- VariableResource
 
 - 
putVariablepublic void putVariable(java.lang.String variableName, VariableValueDto variable)- Specified by:
- putVariablein interface- VariableResource
 
 - 
setBinaryVariablepublic void setBinaryVariable(java.lang.String variableKey, MultipartFormData payload)- Specified by:
- setBinaryVariablein interface- VariableResource
 
 - 
deserializeJsonObjectprotected java.lang.Object deserializeJsonObject(java.lang.String className, byte[] data)
 - 
validateTypeprotected void validateType(com.fasterxml.jackson.databind.JavaType type) Validate the type with the help of the validator in the engine.
 Note: when adjusting this method, please also consider adjusting theJacksonJsonDataFormatMapper#validateTypein the Engine Spin Plugin
 - 
validateTypeprotected void validateType(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, java.util.List<java.lang.String> invalidTypes)
 - 
validateTypeInternalprotected void validateTypeInternal(com.fasterxml.jackson.databind.JavaType type, DeserializationTypeValidator validator, java.util.List<java.lang.String> invalidTypes)
 - 
getProcessEngineConfigurationprotected ProcessEngineConfiguration getProcessEngineConfiguration() 
 - 
deleteVariablepublic void deleteVariable(java.lang.String variableName) - Specified by:
- deleteVariablein interface- VariableResource
 
 - 
modifyVariablespublic void modifyVariables(PatchVariablesDto patch) - Specified by:
- modifyVariablesin interface- VariableResource
 
 - 
getVariableEntitiesprotected abstract VariableMap getVariableEntities(boolean deserializeValues) 
 - 
updateVariableEntitiesprotected abstract void updateVariableEntities(VariableMap variables, java.util.List<java.lang.String> deletions) 
 - 
getVariableEntityprotected abstract TypedValue getVariableEntity(java.lang.String variableKey, boolean deserializeValue) 
 - 
setVariableEntityprotected abstract void setVariableEntity(java.lang.String variableKey, TypedValue variableValue)
 - 
removeVariableEntityprotected abstract void removeVariableEntity(java.lang.String variableKey) 
 - 
getResourceTypeNameprotected abstract java.lang.String getResourceTypeName() 
 
- 
 
-