Package step.functions.packages
Class FunctionPackageServices
- java.lang.Object
-
- step.framework.server.AbstractServices<User>
-
- step.core.deployment.AbstractStepServices
-
- step.functions.packages.FunctionPackageServices
-
@Path("/functionpackages") public class FunctionPackageServices extends AbstractStepServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FunctionPackageServices.PackagePreview
-
Field Summary
Fields Modifier and Type Field Description protected FunctionPackageManager
functionPackageManager
-
Fields inherited from class step.core.deployment.AbstractStepServices
configuration, SESSION
-
-
Constructor Summary
Constructors Constructor Description FunctionPackageServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteFunctionPackage(String functionPackageId)
FunctionPackage
getFunctionPackage(String functionPackageId)
List<Function>
getPackageFunctions(String functionPackageId)
void
init()
FunctionPackage
lookupByResourceName(String resourceName)
FunctionPackageServices.PackagePreview
packagePreview(FunctionPackage functionPackage)
FunctionPackage
reloadFunctionPackage(String functionPackageId, jakarta.ws.rs.core.UriInfo uriInfo)
FunctionPackage
saveFunctionPackage(FunctionPackage functionPackage, jakarta.ws.rs.core.UriInfo uriInfo)
FunctionPackage
updateFunctionPackage(FunctionPackage functionPackage, jakarta.ws.rs.core.UriInfo uriInfo)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Field Detail
-
functionPackageManager
protected FunctionPackageManager functionPackageManager
-
-
Method Detail
-
init
@PostConstruct public void init()
- Overrides:
init
in classAbstractStepServices
-
getFunctionPackage
@GET @Path("/{id}") @Produces("application/json") public FunctionPackage getFunctionPackage(@PathParam("id") String functionPackageId)
-
deleteFunctionPackage
@DELETE @Path("/{id}") @Produces("application/json") public void deleteFunctionPackage(@PathParam("id") String functionPackageId)
-
packagePreview
@POST @Consumes("application/json") @Produces("application/json") @Path("/preview") public FunctionPackageServices.PackagePreview packagePreview(FunctionPackage functionPackage)
-
saveFunctionPackage
@POST @Consumes("application/json") @Produces("application/json") public FunctionPackage saveFunctionPackage(FunctionPackage functionPackage, @Context jakarta.ws.rs.core.UriInfo uriInfo) throws Exception
- Throws:
Exception
-
updateFunctionPackage
@POST @Consumes("application/json") @Produces("application/json") @Path("/resourcebased") public FunctionPackage updateFunctionPackage(FunctionPackage functionPackage, @Context jakarta.ws.rs.core.UriInfo uriInfo) throws Exception
- Throws:
Exception
-
lookupByResourceName
@GET @Path("/resourcebased/lookup/{resourceName}") @Produces("application/json") public FunctionPackage lookupByResourceName(@PathParam("resourceName") String resourceName) throws Exception
- Throws:
Exception
-
getPackageFunctions
@GET @Path("/{id}/functions") @Produces("application/json") public List<Function> getPackageFunctions(@PathParam("id") String functionPackageId)
-
reloadFunctionPackage
@POST @Consumes("application/json") @Produces("application/json") @Path("/{id}/reload") public FunctionPackage reloadFunctionPackage(@PathParam("id") String functionPackageId, @Context jakarta.ws.rs.core.UriInfo uriInfo) throws Exception
- Throws:
Exception
-
-