Class PlanServices


@Singleton @Path("plans") public class PlanServices extends AbstractEntityServices<Plan>
  • Field Details

    • planAccessor

      protected PlanAccessor planAccessor
    • planTypeRegistry

      protected PlanTypeRegistry planTypeRegistry
    • objectPredicateFactory

      protected step.core.objectenricher.ObjectPredicateFactory objectPredicateFactory
  • Constructor Details

    • PlanServices

      public PlanServices()
  • Method Details

    • init

      @PostConstruct public void init() throws Exception
      Overrides:
      init in class AbstractEntityServices<Plan>
      Throws:
      Exception
    • newPlan

      @GET @Produces("application/json") public Plan newPlan(@QueryParam("type") String type, @QueryParam("template") String template) throws Exception
      Throws:
      Exception
    • beforeSave

      protected Plan beforeSave(Plan entity)
      Overrides:
      beforeSave in class AbstractEntityServices<Plan>
    • compilePlanWithId

      @GET @Path("/{id}/compile") @Produces("application/json") public PlanCompilationResult compilePlanWithId(@PathParam("id") String id) throws Exception
      Throws:
      Exception
    • compilePlan

      @POST @Path("/compile") @Consumes("application/json") @Produces("application/json") public PlanCompilationResult compilePlan(Plan plan)
    • cloneEntity

      protected Plan cloneEntity(Plan plan)
      Overrides:
      cloneEntity in class AbstractEntityServices<Plan>
    • getPlanByAttributes

      @POST @Path("/search") @Consumes("application/json") @Produces("application/json") public Plan getPlanByAttributes(Map<String,String> attributes)
    • getAllPlans

      @GET @Path("/all") @Produces("application/json") public List<Plan> getAllPlans(@QueryParam("skip") Integer skip, @QueryParam("limit") Integer limit)
    • lookupPlan

      @GET @Path("/{id}/artefacts/{artefactid}/lookup/plan") @Produces("application/json") public Plan lookupPlan(@PathParam("id") String id, @PathParam("artefactid") String artefactId)
    • lookupCallPlan

      @POST @Path("/lookup") @Produces("application/json") @Consumes("application/json") public Plan lookupCallPlan(CallPlan callPlan)
    • cloneArtefact

      @POST @Path("/artefacts/clone") @Consumes("application/json") @Produces("application/json") public AbstractArtefact cloneArtefact(AbstractArtefact artefact)
    • cloneArtefacts

      @POST @Path("/artefacts/clonemany") @Consumes("application/json") @Produces("application/json") public List<AbstractArtefact> cloneArtefacts(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
    • getArtefactTemplates

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