Class ControllerServices


  • @Singleton
    @Path("controller")
    public class ControllerServices
    extends AbstractServices
    • Constructor Detail

      • ControllerServices

        public ControllerServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class AbstractServices
        Throws:
        java.lang.Exception
      • shutdown

        @POST
        @Consumes("application/json")
        @Path("/shutdown")
        public void shutdown()
      • schedule

        @POST
        @Consumes("application/json")
        @Path("/task")
        public void schedule​(ExecutiontTaskParameters schedule)
      • execute

        @POST
        @Consumes("application/json")
        @Path("/task/{id}/execute")
        public java.lang.String execute​(@PathParam("id")
                                        java.lang.String executionTaskID)
      • enableAllExecutionTasksSchedule

        @PUT
        @Path("/task/schedule")
        public void enableAllExecutionTasksSchedule​(@QueryParam("enabled")
                                                    java.lang.Boolean enabled)
      • enableExecutionTask

        @PUT
        @Path("/task/{id}")
        public void enableExecutionTask​(@PathParam("id")
                                        java.lang.String executionTaskID)
      • removeExecutionTask

        @DELETE
        @Path("/task/{id}")
        public void removeExecutionTask​(@PathParam("id")
                                        java.lang.String executionTaskID,
                                        @QueryParam("remove")
                                        java.lang.Boolean remove)
      • getExecutionTask

        @GET
        @Path("/task/{id}")
        @Produces("application/json")
        public ExecutiontTaskParameters getExecutionTask​(@PathParam("id")
                                                         java.lang.String executionTaskID)
      • createExecutionTask

        @GET
        @Path("/task/new")
        @Produces("application/json")
        public ExecutiontTaskParameters createExecutionTask​(@PathParam("id")
                                                            java.lang.String executionTaskID)
      • getScheduledExecutions

        @GET
        @Path("/task")
        @Produces("application/json")
        public java.util.List<ExecutiontTaskParameters> getScheduledExecutions()
      • execute

        @POST
        @Consumes("application/json")
        @Path("/execution")
        public java.lang.String execute​(ExecutionParameters executionParams)
      • abort

        @GET
        @Path("/execution/{id}/stop")
        public java.lang.Void abort​(@PathParam("id")
                                    java.lang.String executionID)
      • getReportNode

        @GET
        @Path("/reportnode/{id}")
        @Produces("application/json")
        public ReportNode getReportNode​(@PathParam("id")
                                        java.lang.String reportNodeId)
      • getReportNodePath

        @GET
        @Path("/reportnode/{id}/path")
        public java.util.List<ReportNode> getReportNodePath​(@PathParam("id")
                                                            java.lang.String reportNodeId)
      • getReportNodeChildren

        @GET
        @Path("/reportnode/{id}/children")
        @Produces("application/json")
        public java.util.List<ReportNode> getReportNodeChildren​(@PathParam("id")
                                                                java.lang.String reportNodeId,
                                                                @QueryParam("skip")
                                                                java.lang.Integer skip,
                                                                @QueryParam("limit")
                                                                java.lang.Integer limit)
      • getArtefactInfo

        @POST
        @Path("/repository/artefact/info")
        @Consumes("application/json")
        @Produces("application/json")
        public ArtefactInfo getArtefactInfo​(RepositoryObjectReference ref)
      • getReport

        @POST
        @Path("/repository/report")
        @Consumes("application/json")
        @Produces("application/json")
        public TestSetStatusOverview getReport​(RepositoryObjectReference report)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getArtefactTypes

        @GET
        @Path("/artefact/types")
        @Consumes("application/json")
        @Produces("application/json")
        public java.util.Set<java.lang.String> getArtefactTypes()
      • getArtefactTemplates

        @GET
        @Path("/artefact/templates")
        @Consumes("application/json")
        @Produces("application/json")
        public java.util.Set<java.lang.String> getArtefactTemplates()
      • getArtefactType

        @GET
        @Path("/artefact/types/{id}")
        @Consumes("application/json")
        @Produces("application/json")
        public AbstractArtefact getArtefactType​(@PathParam("id")
                                                java.lang.String type)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception