Class AbstractResourceProvider<T extends org.camunda.bpm.engine.query.Query<?,​U>,​U,​DTO>

    • Field Detail

      • engine

        protected org.camunda.bpm.engine.ProcessEngine engine
    • Constructor Detail

      • AbstractResourceProvider

        public AbstractResourceProvider​(String detailId,
                                        org.camunda.bpm.engine.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()
      • getId

        protected String getId()
      • getEngine

        protected org.camunda.bpm.engine.ProcessEngine getEngine()
      • baseQueryForBinaryVariable

        protected abstract org.camunda.bpm.engine.query.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.
      • baseQueryForVariable

        protected abstract org.camunda.bpm.engine.query.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 -
      • transformQueryResultIntoTypedValue

        protected abstract org.camunda.bpm.engine.variable.value.TypedValue transformQueryResultIntoTypedValue​(U queryResult)
      • transformToDto

        protected abstract DTO transformToDto​(U queryResult)
      • getResourceNameForErrorMessage

        protected abstract String getResourceNameForErrorMessage()