Class ServiceNotifications

  • All Implemented Interfaces:
    org.silverpeas.core.web.rs.ProtectedWebResource, org.silverpeas.core.web.rs.WebAuthenticationValidation, org.silverpeas.core.web.rs.WebAuthorizationValidation, org.silverpeas.core.web.SilverpeasWebResource

    @WebService
    @Authorized
    @Path("mobile/notification")
    public class ServiceNotifications
    extends AbstractRestWebService
    Service de gestion des Notifications.
    Author:
    svuillet
    • Constructor Detail

      • ServiceNotifications

        public ServiceNotifications()
    • Method Detail

      • getUserNotifications

        @GET
        @Produces("application/json")
        @Path("received/{callNumber}")
        public StreamingList<NotificationReceivedDTO> getUserNotifications​(@PathParam("callNumber")
                                                                           int callNumber)
      • getAllowedUsersAndGroups

        @GET
        @Produces("application/json")
        @Path("allowedUsersAndGroups/{componentId}/{contentId}")
        public List<BaseDTO> getAllowedUsersAndGroups​(@PathParam("componentId")
                                                      String componentId,
                                                      @PathParam("contentId")
                                                      String contentId)
                                               throws Exception
        Throws:
        Exception
      • markAsReaden

        @PUT
        @Produces("application/json")
        @Consumes("application/json")
        @Path("readed/{id}")
        public void markAsReaden​(@PathParam("id")
                                 long id)
      • markAsRead

        @PUT
        @Produces("application/json")
        @Consumes("application/json")
        @Path("readed/")
        public void markAsRead​(List<NotificationBoxDTO> selection)
      • delete

        @DELETE
        @Produces("application/json")
        @Consumes("application/json")
        @Path("")
        public void delete​(List<NotificationBoxDTO> selection)
      • getResourceBasePath

        protected String getResourceBasePath()
        Specified by:
        getResourceBasePath in class org.silverpeas.core.web.rs.RESTWebService
      • getComponentId

        public String getComponentId()
      • validateUserAuthorization

        public void validateUserAuthorization​(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)