public abstract class AbstractResourceProvider<T extends Query<?,U>,U,DTO> extends Object
Modifier and Type | Field and Description |
---|---|
protected ProcessEngine |
engine |
protected String |
id |
Constructor and Description |
---|
AbstractResourceProvider(String detailId,
ProcessEngine engine) |
Modifier and Type | Method and 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 ProcessEngine |
getEngine() |
protected String |
getId() |
DTO |
getResource(boolean deserializeObjectValue) |
javax.ws.rs.core.Response |
getResourceBinary() |
protected abstract String |
getResourceNameForErrorMessage() |
protected abstract TypedValue |
transformQueryResultIntoTypedValue(U queryResult) |
protected abstract DTO |
transformToDto(U queryResult) |
protected String id
protected ProcessEngine engine
public AbstractResourceProvider(String detailId, ProcessEngine engine)
@GET @Produces(value="application/json") public DTO getResource(@QueryParam(value="deserializeValue") @DefaultValue(value="true") boolean deserializeObjectValue)
@GET @Path(value="/data") public javax.ws.rs.core.Response getResourceBinary()
protected String getId()
protected ProcessEngine getEngine()
protected abstract Query<T,U> baseQueryForBinaryVariable()
protected abstract Query<T,U> baseQueryForVariable(boolean deserializeObjectValue)
deserializeObjectValue
- protected abstract TypedValue transformQueryResultIntoTypedValue(U queryResult)
protected abstract String getResourceNameForErrorMessage()
Copyright © 2021. All rights reserved.