@Path(value="reports") public interface ReportService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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@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 selectionCopyright © 2010–2015 The Apache Software Foundation. All rights reserved.