Class AbstractResourceProvider<T extends Query<?,​U>,​U,​DTO>

    • Field Detail

      • id

        protected java.lang.String id
    • Constructor Detail

      • AbstractResourceProvider

        public 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()
      • getId

        protected java.lang.String getId()
      • baseQueryForBinaryVariable

        protected 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.
      • baseQueryForVariable

        protected 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 -
      • transformQueryResultIntoTypedValue

        protected abstract TypedValue transformQueryResultIntoTypedValue​(U queryResult)
      • transformToDto

        protected abstract DTO transformToDto​(U queryResult)
      • getResourceNameForErrorMessage

        protected abstract java.lang.String getResourceNameForErrorMessage()