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

java.lang.Object
org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
org.camunda.bpm.engine.rest.dto.AbstractQueryDto<T>
Direct Known Subclasses:
AuthorizationQueryDto, BatchQueryDto, BatchStatisticsQueryDto, CaseDefinitionQueryDto, CaseExecutionQueryDto, CaseInstanceQueryDto, CleanableHistoricBatchReportDto, CleanableHistoricCaseInstanceReportDto, CleanableHistoricDecisionInstanceReportDto, CleanableHistoricProcessInstanceReportDto, DecisionDefinitionQueryDto, DecisionRequirementsDefinitionQueryDto, DeploymentQueryDto, EventSubscriptionQueryDto, ExecutionQueryDto, ExternalTaskQueryDto, FilterQueryDto, GroupQueryDto, HistoricActivityInstanceQueryDto, HistoricActivityStatisticsQueryDto, HistoricBatchQueryDto, HistoricCaseActivityInstanceQueryDto, HistoricCaseInstanceQueryDto, HistoricDecisionInstanceQueryDto, HistoricDetailQueryDto, HistoricExternalTaskLogQueryDto, HistoricIdentityLinkLogQueryDto, HistoricIncidentQueryDto, HistoricJobLogQueryDto, HistoricProcessInstanceQueryDto, HistoricTaskInstanceQueryDto, HistoricVariableInstanceQueryDto, IncidentQueryDto, JobDefinitionQueryDto, JobQueryDto, ProcessDefinitionQueryDto, ProcessInstanceQueryDto, SchemaLogQueryDto, TaskQueryDto, TenantQueryDto, UserOperationLogQueryDto, UserQueryDto, VariableInstanceQueryDto

public abstract class AbstractQueryDto<T extends Query<?,?>> extends AbstractSearchQueryDto
Defines common query operations, such as sorting options and validation. Also allows to access its setter methods based on CamundaQueryParam annotations which is used for processing Http query parameters.
Author:
Thorben Lindhauer
  • Field Details

  • Constructor Details

    • AbstractQueryDto

      public AbstractQueryDto()
    • AbstractQueryDto

      public AbstractQueryDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper, jakarta.ws.rs.core.MultivaluedMap<String,String> queryParameters)
  • Method Details

    • setSortBy

      public void setSortBy(String sortBy)
    • setSortOrder

      public void setSortOrder(String sortOrder)
    • setSorting

      public void setSorting(List<SortingDto> sorting)
    • getSorting

      public List<SortingDto> getSorting()
    • isValidSortByValue

      protected abstract boolean isValidSortByValue(String value)
    • sortOptionsValid

      protected boolean sortOptionsValid()
    • toQuery

      public T toQuery(ProcessEngine engine)
    • 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, String sortBy, Map<String,Object> parameters, ProcessEngine engine)
    • applySortOrder

      protected void applySortOrder(T query, String sortOrder)
    • sortOrderValueForDirection

      public static String sortOrderValueForDirection(Direction direction)