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 ObjectPredicateFactoryobjectPredicateFactoryprotected PlanAccessorplanAccessorprotected PlanTypeRegistryplanTypeRegistry-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller, SESSION
-
-
Constructor Summary
Constructors Constructor Description PlanServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AbstractArtefact>cloneArtefact(List<AbstractArtefact> artefacts)AbstractArtefactcloneArtefact(AbstractArtefact artefact)PlanclonePlan(String id)PlanCompilationResultcompilePlan(String id)PlanCompilationResultcompilePlan(Plan plan)voiddelete(String id)List<Plan>findMany(Map<String,String> attributes)Planget(String id)Planget(Map<String,String> attributes)List<Plan>getAll(Integer skip, Integer limit)Set<String>getArtefactTemplates()AbstractArtefactgetArtefactType(String type)Set<String>getArtefactTypes()voidinit()PlanlookupPlan(String id, String artefactId)PlannewPlan(String type, String template)Plansave(Plan plan)-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, invalidateSession, setSession
-
-
-
-
Field Detail
-
planAccessor
protected PlanAccessor planAccessor
-
planTypeRegistry
protected PlanTypeRegistry planTypeRegistry
-
objectPredicateFactory
protected ObjectPredicateFactory objectPredicateFactory
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception- Overrides:
initin classAbstractServices- Throws:
Exception
-
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)
-
get
@POST @Path("/search") @Consumes("application/json") @Produces("application/json") public Plan get(Map<String,String> attributes)
-
findMany
@POST @Path("/find") @Consumes("application/json") @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)
-
cloneArtefact
@POST @Path("/artefacts/clonemany") @Produces("application/json") public List<AbstractArtefact> cloneArtefact(List<AbstractArtefact> artefacts)
-
getArtefactTypes
@GET @Path("/artefact/types") @Consumes("application/json") @Produces("application/json") public Set<String> getArtefactTypes()
-
getArtefactType
@GET @Path("/artefact/types/{id}") @Consumes("application/json") @Produces("application/json") public AbstractArtefact getArtefactType(@PathParam("id") String type) throws Exception- Throws:
Exception
-
-