Package step.plugins.messages
Class MessagesServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.core.deployment.AbstractStepAsyncServices
-
- step.plugins.messages.MessagesServices
-
@Singleton @Path("/messages") public class MessagesServices extends step.core.deployment.AbstractStepAsyncServices
-
-
Constructor Summary
Constructors Constructor Description MessagesServices()
-
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
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.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)
-
-