Class AbstractRestQueryParametersDto<T>

    • Field Detail


        protected static final java.lang.String SORT_ORDER_ASC_VALUE
        See Also:
        Constant Field Values

        protected static final java.lang.String SORT_ORDER_DESC_VALUE
        See Also:
        Constant Field Values
      • sortBy

        protected java.lang.String sortBy
      • sortOrder

        protected java.lang.String sortOrder
      • objectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • Constructor Detail

      • AbstractRestQueryParametersDto

        public AbstractRestQueryParametersDto()
      • AbstractRestQueryParametersDto

        public AbstractRestQueryParametersDto​(<java.lang.String,​java.lang.String> queryParameters)
    • Method Detail

      • setSortBy

        public void setSortBy​(java.lang.String sortBy)
      • setSortOrder

        public void setSortOrder​(java.lang.String sortOrder)
      • sortOptionsValid

        protected boolean sortOptionsValid()
      • getInternalOrderBy

        public java.lang.String getInternalOrderBy()
      • getOrderBy

        public java.lang.String getOrderBy()
      • getOrderByValue

        protected abstract java.lang.String getOrderByValue​(java.lang.String sortBy)
      • isValidSortByValue

        protected abstract boolean isValidSortByValue​(java.lang.String value)
      • resolveVariableValue

        protected java.lang.Object resolveVariableValue​(java.lang.Object value)
      • setValueBasedOnAnnotation

        protected void setValueBasedOnAnnotation​(java.lang.String key,
                                                 java.lang.String value)
        Finds the methods that are annotated with a CamundaQueryParam with a value that matches the key parameter. Before invoking these methods, the annotated StringToTypeConverter is used to convert the String value to the desired Java type.
        key -
        value -
      • setObjectMapper

        public void setObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)