Package step.core.plans
Class PlanServices
java.lang.Object
step.framework.server.AbstractServices<User>
-
Nested Class Summary
Nested classes/interfaces inherited from class step.controller.services.entities.AbstractEntityServices
AbstractEntityServices.History
-
Field Summary
Modifier and TypeFieldDescriptionprotected step.core.objectenricher.ObjectPredicateFactory
protected PlanAccessor
protected PlanTypeRegistry
Fields inherited from class step.core.deployment.AbstractStepServices
configuration, SESSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Plan
beforeSave
(Plan entity) cloneArtefact
(AbstractArtefact artefact) cloneArtefacts
(List<AbstractArtefact> artefacts) protected Plan
cloneEntity
(Plan plan) compilePlan
(Plan plan) getAllPlans
(Integer skip, Integer limit) getArtefactType
(String type) getPlanByAttributes
(Map<String, String> attributes) void
init()
lookupCallPlan
(CallPlan callPlan) lookupPlan
(String id, String artefactId) Methods inherited from class step.controller.services.entities.AbstractEntityServices
bulkDelete, clone, cloneEntities, delete, findManyByAttributes, get, getVersions, request, restoreVersion, save
Methods inherited from class step.core.deployment.AbstractStepAsyncServices
getSession, scheduleAsyncTaskWithinSessionContext, setCurrentSession
Methods inherited from class step.core.deployment.AbstractStepServices
checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
Methods inherited from class step.framework.server.AbstractServices
getAbstractContext, getHttpSession, getSession, invalidateSession, setHttpServletRequest, setSession
-
Field Details
-
planAccessor
-
planTypeRegistry
-
objectPredicateFactory
protected step.core.objectenricher.ObjectPredicateFactory objectPredicateFactory
-
-
Constructor Details
-
PlanServices
public PlanServices()
-
-
Method Details
-
init
- Overrides:
init
in classAbstractEntityServices<Plan>
- Throws:
Exception
-
newPlan
@GET @Produces("application/json") public Plan newPlan(@QueryParam("type") String type, @QueryParam("template") String template) throws Exception - Throws:
Exception
-
beforeSave
- Overrides:
beforeSave
in classAbstractEntityServices<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
- Overrides:
cloneEntity
in classAbstractEntityServices<Plan>
-
getPlanByAttributes
-
getAllPlans
-
lookupPlan
-
lookupCallPlan
-
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
-
getArtefactType
@GET @Path("/artefact/types/{id}") @Consumes("application/json") @Produces("application/json") public AbstractArtefact getArtefactType(@PathParam("id") String type) throws Exception - Throws:
Exception
-
getArtefactTemplates
-