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 java.lang.String
REPORT_TYPE_COUNT
static java.lang.String
REPORT_TYPE_DURATION
protected java.lang.String
reportType
static java.util.List<java.lang.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<java.lang.String,java.lang.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)
java.util.List<? extends ReportResult>
executeReport(ProcessEngine engine)
protected java.util.List<? extends ReportResult>
executeReportQuery(T report)
protected PeriodUnit
getPeriodUnit()
java.lang.String
getReportType()
void
setPeriodUnit(PeriodUnit periodUnit)
void
setReportType(java.lang.String reportType)
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.AbstractSearchQueryDto
setObjectMapper, setValueBasedOnAnnotation
-
-
-
-
Field Detail
-
periodUnit
protected PeriodUnit periodUnit
-
reportType
protected java.lang.String reportType
-
REPORT_TYPE_DURATION
public static final java.lang.String REPORT_TYPE_DURATION
- See Also:
- Constant Field Values
-
REPORT_TYPE_COUNT
public static final java.lang.String REPORT_TYPE_COUNT
- See Also:
- Constant Field Values
-
VALID_REPORT_TYPE_VALUES
public static final java.util.List<java.lang.String> VALID_REPORT_TYPE_VALUES
-
-
Method Detail
-
getPeriodUnit
protected PeriodUnit getPeriodUnit()
-
getReportType
public java.lang.String getReportType()
-
setReportType
public void setReportType(java.lang.String reportType)
-
setPeriodUnit
public void setPeriodUnit(PeriodUnit periodUnit)
-
executeReportQuery
protected java.util.List<? extends ReportResult> executeReportQuery(T report)
-
executeReport
public java.util.List<? extends ReportResult> executeReport(ProcessEngine engine)
-
createNewReportQuery
protected abstract T createNewReportQuery(ProcessEngine engine)
-
applyFilters
protected abstract void applyFilters(T reportQuery)
-
-