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 ObjectPredicateFactory
objectPredicateFactory
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 java.util.List<AbstractArtefact>
cloneArtefact(java.util.List<AbstractArtefact> artefacts)
AbstractArtefact
cloneArtefact(AbstractArtefact artefact)
Plan
clonePlan(java.lang.String id)
PlanCompilationResult
compilePlan(java.lang.String id)
PlanCompilationResult
compilePlan(Plan plan)
void
delete(java.lang.String id)
java.util.List<Plan>
findMany(java.util.Map<java.lang.String,java.lang.String> attributes)
Plan
get(java.lang.String id)
Plan
get(java.util.Map<java.lang.String,java.lang.String> attributes)
java.util.List<Plan>
getAll(java.lang.Integer skip, java.lang.Integer limit)
void
init()
Plan
lookupPlan(java.lang.String id, java.lang.String artefactId)
Plan
newPlan(java.lang.String type, java.lang.String template)
Plan
save(Plan plan)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Field Detail
-
planAccessor
protected PlanAccessor planAccessor
-
planTypeRegistry
protected PlanTypeRegistry planTypeRegistry
-
objectPredicateFactory
protected ObjectPredicateFactory objectPredicateFactory
-
-
Method Detail
-
init
@PostConstruct public void init()
- Overrides:
init
in classAbstractServices
-
newPlan
@GET @Produces("application/json") public Plan newPlan(@QueryParam("type") java.lang.String type, @QueryParam("template") java.lang.String template) throws java.lang.Exception
- Throws:
java.lang.Exception
-
get
@GET @Path("/{id}") @Produces("application/json") public Plan get(@PathParam("id") java.lang.String id)
-
compilePlan
@GET @Path("/{id}/compile") @Produces("application/json") public PlanCompilationResult compilePlan(@PathParam("id") java.lang.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") java.lang.String id)
-
get
@POST @Path("/search") public Plan get(java.util.Map<java.lang.String,java.lang.String> attributes)
-
findMany
@POST @Path("/find") @Produces("application/json") public java.util.List<Plan> findMany(java.util.Map<java.lang.String,java.lang.String> attributes)
-
getAll
@GET @Path("/all") @Produces("application/json") public java.util.List<Plan> getAll(@QueryParam("skip") java.lang.Integer skip, @QueryParam("limit") java.lang.Integer limit)
-
delete
@DELETE @Path("/{id}") @Consumes("application/json") public void delete(@PathParam("id") java.lang.String id)
-
lookupPlan
@GET @Path("/{id}/artefacts/{artefactid}/lookup/plan") @Produces("application/json") public Plan lookupPlan(@PathParam("id") java.lang.String id, @PathParam("artefactid") java.lang.String artefactId)
-
cloneArtefact
@POST @Path("/artefacts/clone") @Produces("application/json") public AbstractArtefact cloneArtefact(AbstractArtefact artefact)
-
cloneArtefact
@POST @Path("/artefacts/clonemany") @Produces("application/json") public java.util.List<AbstractArtefact> cloneArtefact(java.util.List<AbstractArtefact> artefacts)
-
-