Class ControllerServices


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

      • ControllerServices

        public ControllerServices()
    • Method Detail

      • 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 String execute​(@PathParam("id")
                              String executionTaskID)
      • enableAllExecutionTasksSchedule

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

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

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

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

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

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

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

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

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

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

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

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

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

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