|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.rest.sub.AbstractResourceProvider<T,U,DTO>
public abstract class AbstractResourceProvider<T extends Query<?,U>,U,DTO>
Base class to unify the getResource(boolean deserialized) and getResourceBinary() methods for several subclasses. (formerly getVariable() and getBinaryVariable())
| Field Summary | |
|---|---|
protected ProcessEngine |
engine
|
protected String |
id
|
| Constructor Summary | |
|---|---|
AbstractResourceProvider(String detailId,
ProcessEngine engine)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected ProcessEngine engine
| Constructor Detail |
|---|
public AbstractResourceProvider(String detailId,
ProcessEngine engine)
| Method Detail |
|---|
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 DTO transformToDto(U queryResult)
protected abstract String getResourceNameForErrorMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||