org.camunda.bpm.engine.rest.sub.runtime.impl
Class VariableInstanceResourceImpl

java.lang.Object
  extended by org.camunda.bpm.engine.rest.sub.AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>
      extended by org.camunda.bpm.engine.rest.sub.runtime.impl.VariableInstanceResourceImpl
All Implemented Interfaces:
VariableInstanceResource

public class VariableInstanceResourceImpl
extends AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>
implements VariableInstanceResource

Author:
Daniel Meyer, Ronny Bräunlich

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.rest.sub.AbstractResourceProvider
engine, id
 
Constructor Summary
VariableInstanceResourceImpl(String variableId, ProcessEngine engine)
           
 
Method Summary
protected  VariableInstanceQuery baseQuery()
           
protected  Query<VariableInstanceQuery,VariableInstance> baseQueryForBinaryVariable()
          Create the query we need for fetching the desired result.
protected  Query<VariableInstanceQuery,VariableInstance> baseQueryForVariable(boolean deserializeObjectValue)
          TODO change comment Create the query we need for fetching the desired result.
protected  String getResourceNameForErrorMessage()
           
protected  org.camunda.bpm.engine.variable.value.TypedValue transformQueryResultIntoTypedValue(VariableInstance queryResult)
           
protected  VariableInstanceDto transformToDto(VariableInstance queryResult)
           
 
Methods inherited from class org.camunda.bpm.engine.rest.sub.AbstractResourceProvider
getEngine, getId, getResource, getResourceBinary, responseForByteVariable, responseForFileVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.rest.sub.runtime.VariableInstanceResource
getResource, getResourceBinary
 

Constructor Detail

VariableInstanceResourceImpl

public VariableInstanceResourceImpl(String variableId,
                                    ProcessEngine engine)
Method Detail

baseQuery

protected VariableInstanceQuery baseQuery()

baseQueryForBinaryVariable

protected Query<VariableInstanceQuery,VariableInstance> baseQueryForBinaryVariable()
Description copied from class: AbstractResourceProvider
Create the query we need for fetching the desired result. Setting properties in the query like disableCustomObjectDeserialization() or disableBinaryFetching() should be done in this method.

Specified by:
baseQueryForBinaryVariable in class AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>

baseQueryForVariable

protected Query<VariableInstanceQuery,VariableInstance> baseQueryForVariable(boolean deserializeObjectValue)
Description copied from class: AbstractResourceProvider
TODO change comment Create the query we need for fetching the desired result. Setting properties in the query like disableCustomObjectDeserialization() or disableBinaryFetching() should be done in this method.

Specified by:
baseQueryForVariable in class AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>

transformQueryResultIntoTypedValue

protected org.camunda.bpm.engine.variable.value.TypedValue transformQueryResultIntoTypedValue(VariableInstance queryResult)
Specified by:
transformQueryResultIntoTypedValue in class AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>

transformToDto

protected VariableInstanceDto transformToDto(VariableInstance queryResult)
Specified by:
transformToDto in class AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>

getResourceNameForErrorMessage

protected String getResourceNameForErrorMessage()
Specified by:
getResourceNameForErrorMessage in class AbstractResourceProvider<VariableInstanceQuery,VariableInstance,VariableInstanceDto>


Copyright © 2016 camunda services GmbH. All rights reserved.