@Path(value="reports") public interface ReportService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
void |
actionJob(Long reportId,
JobAction action)
Execute a control action on an existing report
|
javax.ws.rs.core.Response |
create(ReportTO reportTO)
Creates a new report.
|
void |
delete(Long reportId)
Deletes report with matching id.
|
void |
deleteExecution(Long executionId)
Deletes report execution with matching id.
|
BulkActionResult |
deleteExecutions(Long reportId,
Date startedBefore,
Date startedAfter,
Date endedBefore,
Date endedAfter)
Deletes the report executions belonging to the given report and matching the date conditions.
|
ReportExecTO |
execute(Long reportId)
Executes the report with matching id.
|
javax.ws.rs.core.Response |
exportExecutionResult(Long executionId,
ReportExecExportFormat fmt)
Exports the report execution with matching id in the requested format.
|
List<ReportletConfClass> |
getReportletConfClasses()
Returns a list of available classes for reportlet configuration.
|
PagedResult<ReportTO> |
list()
Returns a paged list of all existing reports.
|
PagedResult<ReportTO> |
list(Integer page,
Integer size)
Returns a paged list of all existing reports matching page/size conditions.
|
PagedResult<ReportTO> |
list(Integer page,
Integer size,
String orderBy)
Returns a paged list of all existing reports matching page/size conditions.
|
PagedResult<ReportTO> |
list(String orderBy)
Returns a paged list of all existing reports.
|
List<ReportExecTO> |
listJobs(JobStatusType type)
List report jobs of the given type
|
ReportTO |
read(Long reportId)
Returns report with matching id.
|
ReportExecTO |
readExecution(Long executionId)
Returns report execution with matching id.
|
void |
update(Long reportId,
ReportTO reportTO)
Updates report with matching id.
|
@GET
@Path(value="reportletConfClasses")
@Produces(value={"application/xml","application/json"})
List<ReportletConfClass> getReportletConfClasses()
@GET
@Path(value="{reportId}")
@Produces(value={"application/xml","application/json"})
ReportTO read(@NotNull@PathParam(value="reportId")
Long reportId)
reportId - id of report to be read@GET
@Path(value="executions/{executionId}")
@Produces(value={"application/xml","application/json"})
ReportExecTO readExecution(@NotNull@PathParam(value="executionId")
Long executionId)
executionId - report execution id to be selected@GET
@Produces(value={"application/xml","application/json"})
PagedResult<ReportTO> list()
@GET
@Produces(value={"application/xml","application/json"})
PagedResult<ReportTO> list(@QueryParam(value="orderby")
String orderBy)
orderBy - list of ordering clauses, separated by comma@GET
@Produces(value={"application/xml","application/json"})
PagedResult<ReportTO> list(@NotNull@Min(value=1L)@QueryParam(value="page")@DefaultValue(value="1")
Integer page,
@NotNull@Min(value=1L)@QueryParam(value="size")@DefaultValue(value="25")
Integer size)
page - selected page in relation to sizesize - number of entries per page@GET
@Produces(value={"application/xml","application/json"})
PagedResult<ReportTO> list(@NotNull@Min(value=1L)@QueryParam(value="page")@DefaultValue(value="1")
Integer page,
@NotNull@Min(value=1L)@QueryParam(value="size")@DefaultValue(value="25")
Integer size,
@QueryParam(value="orderby")
String orderBy)
page - selected page in relation to sizesize - number of entries per pageorderBy - list of ordering clauses, separated by comma@POST
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response create(@NotNull
ReportTO reportTO)
reportTO - report to be created@PUT
@Path(value="{reportId}")
@Consumes(value={"application/xml","application/json"})
void update(@NotNull@PathParam(value="reportId")
Long reportId,
ReportTO reportTO)
reportId - id for report to be updatedreportTO - report to be stored@DELETE
@Path(value="{reportId}")
void delete(@NotNull@PathParam(value="reportId")
Long reportId)
reportId - Deletes report with matching id@DELETE
@Path(value="executions/{executionId}")
void deleteExecution(@NotNull@PathParam(value="executionId")
Long executionId)
executionId - id of execution report to be deleted@DELETE
@Path(value="{reportId}/executions")
@Produces(value={"application/xml","application/json"})
BulkActionResult deleteExecutions(@NotNull@PathParam(value="reportId")
Long reportId,
@QueryParam(value="startedBefore")
Date startedBefore,
@QueryParam(value="startedAfter")
Date startedAfter,
@QueryParam(value="endedBefore")
Date endedBefore,
@QueryParam(value="endedAfter")
Date endedAfter)
reportId - report to which executions belongstartedBefore - selects executions started before this timestampstartedAfter - selects executions started after this timestampendedBefore - selects executions ended before this timestampendedAfter - selects executions ended after this timestamp@POST
@Path(value="{reportId}/execute")
@Produces(value={"application/xml","application/json"})
ReportExecTO execute(@NotNull@PathParam(value="reportId")
Long reportId)
reportId - id of report to be executed@GET
@Path(value="executions/{executionId}/stream")
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response exportExecutionResult(@NotNull@PathParam(value="executionId")
Long executionId,
@QueryParam(value="format")
ReportExecExportFormat fmt)
executionId - id of execution report to be selectedfmt - file-format selection@GET
@Path(value="jobs")
@Produces(value={"application/xml","application/json"})
List<ReportExecTO> listJobs(@MatrixParam(value="type")
JobStatusType type)
type - of report jobCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.