Package org.camunda.bpm.engine.rest.sub
Class AbstractResourceProvider<T extends Query<?,U>,U,DTO>
java.lang.Object
org.camunda.bpm.engine.rest.sub.AbstractResourceProvider<T,U,DTO>
- Direct Known Subclasses:
HistoricDetailResourceImpl,HistoricVariableInstanceResourceImpl,VariableInstanceResourceImpl
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
Constructors -
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 ProcessEngineprotected StringgetId()getResource(boolean deserializeObjectValue) jakarta.ws.rs.core.Responseprotected abstract Stringprotected abstract TypedValuetransformQueryResultIntoTypedValue(U queryResult) protected abstract DTOtransformToDto(U queryResult)
-
Field Details
-
id
-
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 jakarta.ws.rs.core.Response getResourceBinary() -
getId
-
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
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
-
transformToDto
-
getResourceNameForErrorMessage
-