Class AbstractQueryDto<T extends Query<?,​?>>

    • Field Detail

      • SORT_ORDER_ASC_VALUE

        public static final java.lang.String SORT_ORDER_ASC_VALUE
        See Also:
        Constant Field Values
      • SORT_ORDER_DESC_VALUE

        public static final java.lang.String SORT_ORDER_DESC_VALUE
        See Also:
        Constant Field Values
      • VALID_SORT_ORDER_VALUES

        public static final java.util.List<java.lang.String> VALID_SORT_ORDER_VALUES
      • sortBy

        protected java.lang.String sortBy
      • sortOrder

        protected java.lang.String sortOrder
      • sortings

        protected java.util.List<SortingDto> sortings
      • expressions

        protected java.util.Map<java.lang.String,​java.lang.String> expressions
    • Constructor Detail

      • AbstractQueryDto

        public AbstractQueryDto()
      • AbstractQueryDto

        public AbstractQueryDto​(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                javax.ws.rs.core.MultivaluedMap<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)
      • setSorting

        public void setSorting​(java.util.List<SortingDto> sorting)
      • getSorting

        public java.util.List<SortingDto> getSorting()
      • isValidSortByValue

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

        protected boolean sortOptionsValid()
      • createNewQuery

        protected abstract T createNewQuery​(ProcessEngine engine)
      • applyFilters

        protected abstract void applyFilters​(T query)
      • applySortingOptions

        protected void applySortingOptions​(T query,
                                           ProcessEngine engine)
      • applySortBy

        protected abstract void applySortBy​(T query,
                                            java.lang.String sortBy,
                                            java.util.Map<java.lang.String,​java.lang.Object> parameters,
                                            ProcessEngine engine)
      • applySortOrder

        protected void applySortOrder​(T query,
                                      java.lang.String sortOrder)
      • sortOrderValueForDirection

        public static java.lang.String sortOrderValueForDirection​(Direction direction)