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

    • Constructor Detail

      • AbstractEntityServices

        public AbstractEntityServices​(String entityName)
    • Method Detail

      • setCurrentSession

        public static void setCurrentSession​(step.framework.server.Session<User> session)
        Set the current Session for the current thread. This is useful for request that are processed outside the Jetty scope like for BulkOperationManager
        Parameters:
        session - the current Session
      • getSession

        protected step.framework.server.Session<User> getSession()
        Overrides:
        getSession in class step.framework.server.AbstractServices<User>
      • 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)
      • 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)
      • 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