Class MessagesServices


  • @Singleton
    @Path("/messages")
    public class MessagesServices
    extends step.core.deployment.AbstractStepAsyncServices
    • Field Summary

      • Fields inherited from class step.core.deployment.AbstractStepServices

        configuration, SESSION
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      step.controller.services.async.AsyncTaskStatus<step.framework.server.tables.service.bulk.TableBulkOperationReport> bulkDismiss​(step.framework.server.tables.service.bulk.TableBulkOperationRequest request)  
      int count​(java.util.List<Message.State> states)  
      void init()  
      java.util.List<Message> listAll()  
      void setState​(java.lang.String id, Message.State state)  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessagesServices

        public MessagesServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractStepAsyncServices
        Throws:
        java.lang.Exception
      • setState

        @POST
        @Path("/{id}/")
        @Consumes("application/json")
        public void setState​(@PathParam("id")
                             java.lang.String id,
                             @QueryParam("state")
                             Message.State state)
      • count

        @POST
        @Path("/count")
        @Consumes("application/json")
        @Produces("application/json")
        public int count​(@QueryParam("state")
                         java.util.List<Message.State> states)
      • listAll

        @GET
        @Path("/allDontUse")
        @Produces("application/json")
        public java.util.List<Message> listAll()
      • bulkDismiss

        @POST
        @Path("/bulk/delete")
        @Consumes("application/json")
        @Produces("application/json")
        public step.controller.services.async.AsyncTaskStatus<step.framework.server.tables.service.bulk.TableBulkOperationReport> bulkDismiss​(step.framework.server.tables.service.bulk.TableBulkOperationRequest request)