Package step.core.plans
Class PlanServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.core.plans.PlanServices
-
@Singleton @Path("plans") public class PlanServices extends AbstractServices
-
-
Field Summary
Fields Modifier and Type Field Description protected PlanAccessor
planAccessor
protected PlanTypeRegistry
planTypeRegistry
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description PlanServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractArtefact
cloneArtefact(AbstractArtefact artefact)
Plan
clonePlan(String id)
PlanCompilationResult
compilePlan(String id)
PlanCompilationResult
compilePlan(Plan plan)
void
delete(String id)
List<Plan>
findMany(Map<String,String> attributes)
Plan
get(String id)
Plan
get(Map<String,String> attributes)
List<Plan>
getAll(Integer skip, Integer limit)
void
init()
Plan
lookupPlan(String id, String artefactId)
Plan
newPlan(String type, String template)
Plan
save(Plan plan)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectDrainer, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Field Detail
-
planAccessor
protected PlanAccessor planAccessor
-
planTypeRegistry
protected PlanTypeRegistry planTypeRegistry
-
-
Method Detail
-
init
@PostConstruct public void init()
- Overrides:
init
in classAbstractServices
-
newPlan
@GET @Produces("application/json") public Plan newPlan(@QueryParam("type") String type, @QueryParam("template") String template) throws Exception
- Throws:
Exception
-
compilePlan
@GET @Path("/{id}/compile") @Produces("application/json") public PlanCompilationResult compilePlan(@PathParam("id") String id)
-
compilePlan
@POST @Path("/compile") @Produces("application/json") public PlanCompilationResult compilePlan(Plan plan)
-
clonePlan
@GET @Path("/{id}/clone") @Produces("application/json") public Plan clonePlan(@PathParam("id") String id)
-
findMany
@POST @Path("/find") @Produces("application/json") public List<Plan> findMany(Map<String,String> attributes)
-
getAll
@GET @Path("/all") @Produces("application/json") public List<Plan> getAll(@QueryParam("skip") Integer skip, @QueryParam("limit") Integer limit)
-
delete
@DELETE @Path("/{id}") @Consumes("application/json") public void delete(@PathParam("id") String id)
-
lookupPlan
@GET @Path("/{id}/artefacts/{artefactid}/lookup/plan") @Produces("application/json") public Plan lookupPlan(@PathParam("id") String id, @PathParam("artefactid") String artefactId)
-
cloneArtefact
@POST @Path("/artefacts/clone") @Produces("application/json") public AbstractArtefact cloneArtefact(AbstractArtefact artefact)
-
-