Package step.core.execution
Class ExecutionServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.core.execution.ExecutionServices
-
@Singleton @Path("executions") public class ExecutionServices extends AbstractServices
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutionAccessor
executionAccessor
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller, SESSION
-
-
Constructor Summary
Constructors Constructor Description ExecutionServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
abort(String executionID)
void
delete(String id)
String
execute(ExecutionParameters executionParams)
List<Execution>
findByCritera(FindByCriteraParam param)
Execution
get(String id)
Execution
get(Map<String,String> attributes)
List<Execution>
getAll(Integer skip, Integer limit)
List<Execution>
getExecutionsByRepositoryObjectReference(RepositoryObjectReference objectReference)
List<ReportNode>
getReportNodesByExecutionID(String executionID, String reportNodeClass, int limit)
void
init()
Execution
save(Execution execution)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, invalidateSession, setSession
-
-
-
-
Field Detail
-
executionAccessor
protected ExecutionAccessor executionAccessor
-
-
Method Detail
-
init
@PostConstruct public void init()
- Overrides:
init
in classAbstractServices
-
execute
@POST @Consumes("application/json") @Path("/start") public String execute(ExecutionParameters executionParams)
-
getAll
@GET @Produces("application/json") public List<Execution> getAll(@QueryParam("skip") Integer skip, @QueryParam("limit") Integer limit)
-
get
@GET @Path("/{id}") @Produces("application/json") public Execution get(@PathParam("id") String id)
-
getExecutionsByRepositoryObjectReference
@POST @Path("/search/by/ref") @Produces("application/json") public List<Execution> getExecutionsByRepositoryObjectReference(RepositoryObjectReference objectReference)
-
findByCritera
@POST @Consumes("application/json") @Produces("application/json") @Path("/search/by/critera") public List<Execution> findByCritera(FindByCriteraParam param)
-
getReportNodesByExecutionID
@GET @Path("/{id}/reportnodes") @Produces("application/json") public List<ReportNode> getReportNodesByExecutionID(@PathParam("id") String executionID, @QueryParam("class") String reportNodeClass, @QueryParam("limit") int limit)
-
save
@POST @Produces("application/json") @Consumes("application/json") public Execution save(Execution execution)
-
delete
@DELETE @Path("/{id}") @Consumes("application/json") public void delete(@PathParam("id") String id)
-
-