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
FieldsModifier and TypeFieldDescriptionprotected step.core.objectenricher.ObjectPredicateFactoryprotected PlanAccessorprotected PlanTypeRegistryFields inherited from class step.core.deployment.AbstractStepServices
configuration, SESSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PlanbeforeSave(Plan entity) cloneArtefact(AbstractArtefact artefact) cloneArtefacts(List<AbstractArtefact> artefacts) protected PlancloneEntity(Plan plan) compilePlan(Plan plan) getAllPlans(Integer skip, Integer limit) getArtefactType(String type) getPlanByAttributes(Map<String, String> attributes) voidinit()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, saveMethods inherited from class step.core.deployment.AbstractStepAsyncServices
getSession, scheduleAsyncTaskWithinSessionContext, setCurrentSessionMethods inherited from class step.core.deployment.AbstractStepServices
checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getSchedulerMethods 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:
initin 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:
beforeSavein 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:
cloneEntityin 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
-