Class AbstractEntityServices<T extends step.core.accessors.AbstractIdentifiableObject>

java.lang.Object
step.framework.server.AbstractServices<User>
step.core.deployment.AbstractStepServices
step.core.deployment.AbstractStepAsyncServices
step.controller.services.entities.AbstractEntityServices<T>
Direct Known Subclasses:
AbtractFunctionServices, DockerRegistryServices, ParameterServices, PlanServices, SchedulerServices

public abstract class AbstractEntityServices<T extends step.core.accessors.AbstractIdentifiableObject> extends AbstractStepAsyncServices
  • Constructor Details

    • AbstractEntityServices

      public AbstractEntityServices(String entityName)
  • Method Details

    • init

      @PostConstruct public void init() throws Exception
      Overrides:
      init in class AbstractStepAsyncServices
      Throws:
      Exception
    • get

      @GET @Path("/{id}") @Produces("application/json") public T get(@PathParam("id") String id)
    • findManyByAttributes

      @POST @Path("/find") @Produces("application/json") @Consumes("application/json") public List<T> findManyByAttributes(Map<String,String> attributes)
    • delete

      @DELETE @Path("/{id}") public void delete(@PathParam("id") String id)
    • cloneEntities

      @POST @Path("/bulk/clone") @Consumes("application/json") public AsyncTaskStatus<step.framework.server.tables.service.bulk.TableBulkOperationReport> cloneEntities(step.framework.server.tables.service.bulk.TableBulkOperationRequest request)
    • save

      @POST @Produces("application/json") @Consumes("application/json") public T save(T entity)
    • clone

      @GET @Path("/{id}/clone") @Produces("application/json") public T clone(@PathParam("id") String id)
    • cloneEntity

      protected T cloneEntity(T entity)
    • beforeSave

      protected T beforeSave(T entity)
    • bulkDelete

      @POST @Path("/bulk/delete") @Consumes("application/json") public AsyncTaskStatus<step.framework.server.tables.service.bulk.TableBulkOperationReport> bulkDelete(step.framework.server.tables.service.bulk.TableBulkOperationRequest request)
    • request

      @POST @Path("/table") @Consumes("application/json") @Produces("application/json") public step.framework.server.tables.service.TableResponse<T> request(step.framework.server.tables.service.TableRequest request) throws step.framework.server.tables.service.TableServiceException
      Throws:
      step.framework.server.tables.service.TableServiceException
    • getVersions

      @GET @Path("/{id}/versions") @Produces("application/json") public List<AbstractEntityServices.History> getVersions(@PathParam("id") String id)
    • restoreVersion

      @POST @Produces("application/json") @Consumes("application/json") @Path("{id}/restore/{versionId}") public T restoreVersion(@PathParam("id") String id, @PathParam("versionId") String versionId)