Interface MessagingResource
@Produces("application/json")
@Consumes("application/json")
@Path("/msg")
public interface MessagingResource
Messaging resource to access the inbox (list, view, mark read, delete) and
send messages
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsedelete(int id) Delete message with given IDlist(boolean unread) List messages for the current userread(MessagesReadRequest request) Set messages to be readsend(MessageSendRequest request) Send a message to users/groups
-
Method Details
-
delete
Delete message with given ID- Parameters:
id- message id- Returns:
- response
- Throws:
Exception
-
send
Send a message to users/groups- Parameters:
request- request to send messages- Returns:
- generic response
- Throws:
Exception
-
list
@GET @Path("/list") GenericResponse list(@QueryParam("unread") @DefaultValue("false") boolean unread) throws Exception List messages for the current user- Parameters:
unread- true if only unread messages shall be shown, false for all messages (default)- Returns:
- response containing the messages
- Throws:
Exception
-
read
Set messages to be read- Parameters:
request- request containing the list of messages to be set read- Returns:
- generic response
- Throws:
Exception
-