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 javax.ws.rs.core.Response |
responseForByteVariable(org.camunda.bpm.engine.variable.value.TypedValue variableInstance)
Creates a response for a variable of type
ValueType.BYTES . |
protected javax.ws.rs.core.Response |
responseForFileVariable(org.camunda.bpm.engine.variable.value.FileValue fileValue)
Creates a response for a variable of type
ValueType.FILE . |
protected abstract org.camunda.bpm.engine.variable.value.TypedValue |
transformQueryResultIntoTypedValue(U queryResult) |
protected abstract DTO |
transformToDto(U queryResult) |
protected String id
protected ProcessEngine engine
public AbstractResourceProvider(String detailId, ProcessEngine engine)
public DTO getResource(boolean deserializeObjectValue)
public javax.ws.rs.core.Response getResourceBinary()
protected javax.ws.rs.core.Response responseForFileVariable(org.camunda.bpm.engine.variable.value.FileValue fileValue)
ValueType.FILE
.protected javax.ws.rs.core.Response responseForByteVariable(org.camunda.bpm.engine.variable.value.TypedValue variableInstance)
ValueType.BYTES
.protected String getId()
protected ProcessEngine getEngine()
protected abstract Query<T,U> baseQueryForBinaryVariable()
protected abstract Query<T,U> baseQueryForVariable(boolean deserializeObjectValue)
deserializeObjectValue
- protected abstract org.camunda.bpm.engine.variable.value.TypedValue transformQueryResultIntoTypedValue(U queryResult)
protected abstract String getResourceNameForErrorMessage()
Copyright © 2018. All rights reserved.