Package org.camunda.bpm.engine.rest.dto
Class AbstractReportDto<T extends Report>
- java.lang.Object
-
- org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
-
- org.camunda.bpm.engine.rest.dto.AbstractReportDto<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
HistoricProcessInstanceReportDto
,HistoricTaskInstanceReportQueryDto
public abstract class AbstractReportDto<T extends Report> extends AbstractSearchQueryDto
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected PeriodUnit
periodUnit
static String
REPORT_TYPE_COUNT
static String
REPORT_TYPE_DURATION
protected String
reportType
static List<String>
VALID_REPORT_TYPE_VALUES
-
Fields inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
objectMapper
-
-
Constructor Summary
Constructors Constructor Description AbstractReportDto()
AbstractReportDto(com.fasterxml.jackson.databind.ObjectMapper objectMapper, javax.ws.rs.core.MultivaluedMap<String,String> queryParameters)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
applyFilters(T reportQuery)
protected abstract T
createNewReportQuery(ProcessEngine engine)
List<? extends ReportResult>
executeReport(ProcessEngine engine)
protected List<? extends ReportResult>
executeReportQuery(T report)
protected PeriodUnit
getPeriodUnit()
String
getReportType()
void
setPeriodUnit(PeriodUnit periodUnit)
void
setReportType(String reportType)
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
setObjectMapper, setValueBasedOnAnnotation
-
-
-
-
Field Detail
-
periodUnit
protected PeriodUnit periodUnit
-
reportType
protected String reportType
-
REPORT_TYPE_DURATION
public static final String REPORT_TYPE_DURATION
- See Also:
- Constant Field Values
-
REPORT_TYPE_COUNT
public static final String REPORT_TYPE_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPeriodUnit
protected PeriodUnit getPeriodUnit()
-
getReportType
public String getReportType()
-
setReportType
public void setReportType(String reportType)
-
setPeriodUnit
public void setPeriodUnit(PeriodUnit periodUnit)
-
executeReportQuery
protected List<? extends ReportResult> executeReportQuery(T report)
-
executeReport
public List<? extends ReportResult> executeReport(ProcessEngine engine)
-
createNewReportQuery
protected abstract T createNewReportQuery(ProcessEngine engine)
-
applyFilters
protected abstract void applyFilters(T reportQuery)
-
-