Package org.camunda.bpm.engine.rest.sub
Class AbstractResourceProvider<T extends org.camunda.bpm.engine.query.Query<?,U>,U,DTO>
java.lang.Object
org.camunda.bpm.engine.rest.sub.AbstractResourceProvider<T,U,DTO>
- Direct Known Subclasses:
HistoricDetailResourceImpl,HistoricVariableInstanceResourceImpl,VariableInstanceResourceImpl
public abstract class AbstractResourceProvider<T extends org.camunda.bpm.engine.query.Query<?,U>,U,DTO>
extends Object
Base class to unify the getResource(boolean deserialized) and
getResourceBinary() methods for several subclasses. (formerly getVariable()
and getBinaryVariable())
- Author:
- Ronny Bräunlich
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractResourceProvider(String detailId, org.camunda.bpm.engine.ProcessEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionCreate the query we need for fetching the desired result.baseQueryForVariable(boolean deserializeObjectValue) TODO change comment Create the query we need for fetching the desired result.protected org.camunda.bpm.engine.ProcessEngineprotected StringgetId()getResource(boolean deserializeObjectValue) javax.ws.rs.core.Responseprotected abstract Stringprotected abstract org.camunda.bpm.engine.variable.value.TypedValuetransformQueryResultIntoTypedValue(U queryResult) protected abstract DTOtransformToDto(U queryResult)
-
Field Details
-
id
-
engine
protected org.camunda.bpm.engine.ProcessEngine engine
-
-
Constructor Details
-
AbstractResourceProvider
-
-
Method Details
-
getResource
@GET @Produces("application/json") public DTO getResource(@QueryParam("deserializeValue") @DefaultValue("true") boolean deserializeObjectValue) -
getResourceBinary
@GET @Path("/data") public javax.ws.rs.core.Response getResourceBinary() -
getId
-
getEngine
protected org.camunda.bpm.engine.ProcessEngine getEngine() -
baseQueryForBinaryVariable
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. -
baseQueryForVariable
protected abstract org.camunda.bpm.engine.query.Query<T,U> baseQueryForVariable(boolean deserializeObjectValue) 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.- Parameters:
deserializeObjectValue-
-
transformQueryResultIntoTypedValue
protected abstract org.camunda.bpm.engine.variable.value.TypedValue transformQueryResultIntoTypedValue(U queryResult) -
transformToDto
-
getResourceNameForErrorMessage
-