Class ReportResource
java.lang.Object
com.xebialabs.xlrelease.reports.api.internal.ReportResource
@Path("/reports")
@Consumes("application/json")
@Produces("application/json")
@Controller
public class ReportResource
extends Object
Provides data to the various reports available in the Digital.ai Release UI.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReportResource(com.xebialabs.xlrelease.security.PermissionChecker permissions, com.xebialabs.xlrelease.reports.service.ReportServiceCache reportService, com.xebialabs.xlrelease.reports.job.api.ReportingEngineService reportingEngineService, com.xebialabs.xlrelease.service.UserProfileService userProfileService, com.xebialabs.xlrelease.reports.service.ReportsService reportsService, com.xebialabs.xlrelease.reports.pdf.DashboardReportService dashboardReportService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseabortAll()jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsegenerateReportPdf(String reportName, String pngContent) jakarta.ws.rs.core.ResponsegetAverageAndLongestReleaseDuration(ReportForm reportForm) getAverageAndLongestTaskDuration(ReportForm reportForm) getCompletedReleases(ReportForm reportForm) getMostRecentReleaseData(Integer limit, ReportForm reportForm) List<com.xebialabs.xlrelease.views.Point>getNumberOfReleaseByMonth(ReportForm reportForm) getReleaseAutomation(ReportForm reportForm) getReleaseDuration(ReportForm reportForm) getTopLongestPhases(ReportForm reportForm) getTopLongestTasks(ReportForm reportForm) getTopLongestTaskTypes(ReportForm reportForm) getTopPeopleMostInvolved(ReportForm reportForm) List<com.xebialabs.xlrelease.reports.job.domain.ReportJob>jakarta.ws.rs.core.Responsepreview(com.xebialabs.xlrelease.reports.job.api.ReportDefinition report) org.springframework.data.domain.Page<com.xebialabs.xlrelease.reports.job.domain.ReportJob>search(com.xebialabs.xlrelease.reports.job.repository.ReportJobFilters reportJobFilters, int page, int resultsPerPage, jakarta.ws.rs.core.UriInfo uriInfo) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsesubmit(com.xebialabs.xlrelease.reports.job.api.ReportDefinition report)
-
Constructor Details
-
ReportResource
@Autowired public ReportResource(com.xebialabs.xlrelease.security.PermissionChecker permissions, com.xebialabs.xlrelease.reports.service.ReportServiceCache reportService, com.xebialabs.xlrelease.reports.job.api.ReportingEngineService reportingEngineService, com.xebialabs.xlrelease.service.UserProfileService userProfileService, com.xebialabs.xlrelease.reports.service.ReportsService reportsService, com.xebialabs.xlrelease.reports.pdf.DashboardReportService dashboardReportService)
-
-
Method Details
-
getReleaseDuration
-
getTopPeopleMostInvolved
@POST @Path("most-involved-people") public List<UserParticipation> getTopPeopleMostInvolved(ReportForm reportForm) -
getTopLongestTasks
-
getTopLongestTaskTypes
@POST @Path("longest-task-types") public List<LongestTaskType> getTopLongestTaskTypes(ReportForm reportForm) -
getAverageAndLongestTaskDuration
@POST @Path("average-and-longest-task-duration") public AverageAndLongestTaskDuration getAverageAndLongestTaskDuration(ReportForm reportForm) -
getCompletedReleases
@POST @Path("release/completed") public CompletedReleases getCompletedReleases(ReportForm reportForm) -
getAverageAndLongestReleaseDuration
@POST @Path("release/average-and-longest-release-duration") public AverageAndLongestReleaseDuration getAverageAndLongestReleaseDuration(ReportForm reportForm) -
getReleaseAutomation
@POST @Path("releases/automation") public ReleasesAutomation getReleaseAutomation(ReportForm reportForm) -
getTopLongestPhases
-
getNumberOfReleaseByMonth
@POST @Path("releases/number-by-month") public List<com.xebialabs.xlrelease.views.Point> getNumberOfReleaseByMonth(ReportForm reportForm) -
getMostRecentReleaseData
@POST @Path("releases/most-recent/{limit}") public List<ReleaseAutomationData> getMostRecentReleaseData(@PathParam("limit") Integer limit, ReportForm reportForm) -
preview
@POST @Path("preview") @Produces("application/json") public jakarta.ws.rs.core.Response preview(com.xebialabs.xlrelease.reports.job.api.ReportDefinition report) -
submit
@POST @Path("submit") @Produces("application/json") public jakarta.ws.rs.core.Response submit(com.xebialabs.xlrelease.reports.job.api.ReportDefinition report) -
download
@GET @Path("download/{jobId}") @Produces("application/octet-stream") public jakarta.ws.rs.core.Response download(@PathParam("jobId") Integer jobId) -
status
@GET @Path("status/{jobId}") @Produces("application/json") public jakarta.ws.rs.core.Response status(@PathParam("jobId") Integer jobId) -
get
@GET @Path("{jobId}") @Produces("application/json") public jakarta.ws.rs.core.Response get(@PathParam("jobId") Integer jobId) -
search
@GET @Path("search") @Produces("application/json") public org.springframework.data.domain.Page<com.xebialabs.xlrelease.reports.job.domain.ReportJob> search(@BeanParam com.xebialabs.xlrelease.reports.job.repository.ReportJobFilters reportJobFilters, @DefaultValue("0") @QueryParam("page") int page, @DefaultValue("100") @QueryParam("resultsPerPage") int resultsPerPage, @Context jakarta.ws.rs.core.UriInfo uriInfo) -
poll
-
applicationsNames
-
environmentNames
-
abort
@POST @Path("{jobId}/abort") @Produces("application/json") public jakarta.ws.rs.core.Response abort(@PathParam("jobId") Integer jobId) -
abort
-
abortAll
@POST @Path("abort/all") @Produces("application/json") public jakarta.ws.rs.core.Response abortAll() -
delete
@DELETE @Path("{jobId}") @Produces("application/json") public jakarta.ws.rs.core.Response delete(@PathParam("jobId") Integer jobId) -
delete
-
deleteAll
@POST @Path("delete/all") @Produces("application/json") public jakarta.ws.rs.core.Response deleteAll() -
generateReportPdf
-