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
-
Constructor Summary
-
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 ProcessEngine
protected String
getId()
getResource
(boolean deserializeObjectValue) javax.ws.rs.core.Response
protected abstract String
protected abstract TypedValue
transformQueryResultIntoTypedValue
(U queryResult) protected abstract DTO
transformToDto
(U queryResult)
-
Field Details
-
id
-
engine
-
-
Constructor Details
-
AbstractResourceProvider
-
-
Method Details
-
getResource
-
getResourceBinary
public javax.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
-