Class MessageManager


  • @Path("messages")
    public class MessageManager
    extends Impersonable
    • Constructor Detail

      • MessageManager

        public MessageManager()
    • Method Detail

      • getById

        @GET
        @Path("{id}")
        @Produces("application/json")
        public org.gcube.common.storagehub.model.messages.Message getById()
      • deleteById

        @DELETE
        @Path("{id}")
        public void deleteById()
      • getAttachments

        @GET
        @Path("{id}/attachments")
        @Produces("application/json")
        public org.gcube.common.storagehub.model.service.ItemList getAttachments()
      • getReceivedMessages

        @GET
        @Path("inbox")
        @Produces("application/json")
        public org.gcube.common.storagehub.model.types.MessageList getReceivedMessages​(@QueryParam("reduceBody")
                                                                                       Integer reduceBody)
      • getSentMessages

        @GET
        @Path("sent")
        @Produces("application/json")
        public org.gcube.common.storagehub.model.types.MessageList getSentMessages​(@QueryParam("reduceBody")
                                                                                   Integer reduceBody)
      • setProperty

        @PUT
        @Path("{id}/{prop}")
        @Consumes("application/json")
        public void setProperty​(@PathParam("prop")
                                String property,
                                Object value)
      • sendMessage

        @POST
        @Path("send")
        @Consumes("application/x-www-form-urlencoded")
        public String sendMessage​(@FormParam("to[]")
                                  List<String> addresses,
                                  @FormParam("subject")
                                  String subject,
                                  @FormParam("body")
                                  String body,
                                  @FormParam("attachments[]")
                                  List<String> attachments)