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
 
 public abstract class AbstractResourceProvider<T extends Query<?,U>,U,DTO> extends java.lang.ObjectBase class to unify the getResource(boolean deserialized) and getResourceBinary() methods for several subclasses. (formerly getVariable() and getBinaryVariable())- Author:
- Ronny Bräunlich
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ProcessEngineengineprotected java.lang.Stringid
 - 
Constructor SummaryConstructors Constructor Description AbstractResourceProvider(java.lang.String detailId, ProcessEngine engine)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Query<T,U>baseQueryForBinaryVariable()Create the query we need for fetching the desired result.protected abstract Query<T,U>baseQueryForVariable(boolean deserializeObjectValue)TODO change comment Create the query we need for fetching the desired result.protected ProcessEnginegetEngine()protected java.lang.StringgetId()DTOgetResource(boolean deserializeObjectValue)javax.ws.rs.core.ResponsegetResourceBinary()protected abstract java.lang.StringgetResourceNameForErrorMessage()protected abstract TypedValuetransformQueryResultIntoTypedValue(U queryResult)protected abstract DTOtransformToDto(U queryResult)
 
- 
- 
- 
Field Detail- 
idprotected java.lang.String id 
 - 
engineprotected ProcessEngine engine 
 
- 
 - 
Constructor Detail- 
AbstractResourceProviderpublic AbstractResourceProvider(java.lang.String detailId, ProcessEngine engine)
 
- 
 - 
Method Detail- 
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()
 - 
getIdprotected java.lang.String getId() 
 - 
getEngineprotected ProcessEngine getEngine() 
 - 
baseQueryForBinaryVariableprotected abstract Query<T,U> 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.
 - 
baseQueryForVariableprotected abstract 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-
 
 - 
transformQueryResultIntoTypedValueprotected abstract TypedValue transformQueryResultIntoTypedValue(U queryResult) 
 - 
getResourceNameForErrorMessageprotected abstract java.lang.String getResourceNameForErrorMessage() 
 
- 
 
-