Class IntranetNotificationRestService

  • All Implemented Interfaces:
    org.exoplatform.services.rest.resource.ResourceContainer

    @Deprecated
    public class IntranetNotificationRestService
    extends Object
    implements org.exoplatform.services.rest.resource.ResourceContainer
    Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Nov 26, 2014
    • Constructor Detail

      • IntranetNotificationRestService

        public IntranetNotificationRestService​(org.exoplatform.social.core.manager.IdentityManager identityManager,
                                               org.exoplatform.social.core.manager.RelationshipManager relationshipManager,
                                               org.exoplatform.social.core.space.spi.SpaceService spaceService,
                                               org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webNotificationStorage)
        Deprecated.
    • Method Detail

      • confirmInvitationToConnect

        @RolesAllowed("users")
        public javax.ws.rs.core.Response confirmInvitationToConnect​(@Context
                                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                                    String senderId,
                                                                    String receiverId,
                                                                    String notificationId,
                                                                    String format)
                                                             throws Exception
        Deprecated.
        Processes the "Accept the invitation to connect" action between 2 users and update notification.
        Parameters:
        senderId - The remote Id of the identity who sent the invitation.
        receiverId - The remote Id of the identity who received the invitation.
        Throws:
        Exception
        eXo anchor for generated doc on REST API
        GET: http://localhost:8080/rest/social/intranet-notifications/confirmInvitationToConnect/john/root/<notificationId>/message.json
        eXo authentication for generated doc on REST API
        eXo notificationId for generated doc on REST API
        Id of the web notification message
      • ignoreInvitationToConnect

        @RolesAllowed("users")
        public javax.ws.rs.core.Response ignoreInvitationToConnect​(@Context
                                                                   javax.ws.rs.core.UriInfo uriInfo,
                                                                   String senderId,
                                                                   String receiverId,
                                                                   String notificationId,
                                                                   String format)
                                                            throws Exception
        Deprecated.
        Processes the "Deny the invitation to connect" action between 2 users
        Parameters:
        senderId - The sender's remote Id.
        receiverId - The receiver's remote Id.
        Throws:
        Exception
        eXo anchor for generated doc on REST API
        GET: localhost:8080/rest/social/intranet-notifications/ignoreInvitationToConnect/john/root
        eXo authentication for generated doc on REST API
      • acceptInvitationToJoinSpace

        @RolesAllowed("users")
        public javax.ws.rs.core.Response acceptInvitationToJoinSpace​(@Context
                                                                     javax.ws.rs.core.UriInfo uriInfo,
                                                                     String spaceId,
                                                                     String userId,
                                                                     String notificationId,
                                                                     String format)
                                                              throws Exception
        Deprecated.
        Processes the "Accept the invitation to join a space" action and update notification.
        Parameters:
        userId - The invitee's remote Id.
        spaceId - Id of the space.
        Throws:
        Exception
        eXo anchor for generated doc on REST API
        GET: localhost:8080/rest/social/intranet-notifications/acceptInvitationToJoinSpace/e1cacf067f0001015ac312536462fc6b/john/<notificationId>/message.json
        eXo authentication for generated doc on REST API
        eXo notificationId for generated doc on REST API
        of the web notification message
      • ignoreInvitationToJoinSpace

        @RolesAllowed("users")
        public javax.ws.rs.core.Response ignoreInvitationToJoinSpace​(@Context
                                                                     javax.ws.rs.core.UriInfo uriInfo,
                                                                     String spaceId,
                                                                     String userId,
                                                                     String notificationId,
                                                                     String format)
                                                              throws Exception
        Deprecated.
        Processes the "Deny the invitation to join a space" action.
        Parameters:
        userId - The invitee's remote Id.
        spaceId - Id of the space.
        Throws:
        Exception
        eXo anchor for generated doc on REST API
        GET: localhost:8080/rest/social/intranet-notifications/ignoreInvitationToJoinSpace/e1cacf067f0001015ac312536462fc6b/john
        eXo authentication for generated doc on REST API
      • validateRequestToJoinSpace

        @RolesAllowed("users")
        public javax.ws.rs.core.Response validateRequestToJoinSpace​(@Context
                                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                                    String spaceId,
                                                                    String requestUserId,
                                                                    String currentUserId,
                                                                    String notificationId,
                                                                    String format)
                                                             throws Exception
        Deprecated.
        Adds a member to a space and update notification.
        Parameters:
        uriInfo -
        spaceId - Id of the space.
        requestUserId - The remote Id of the user who requests for joining the space.
        currentUserId - the userId
        notificationId -
        format -
        Throws:
        Exception
        eXo anchor for generated doc on REST API
        GET: localhost:8080/rest/social/intranet-notifications/validateRequestToJoinSpace/e1cacf067f0001015ac312536462fc6b/john/<notificationId>/message.json
        eXo authentication for generated doc on REST API
        eXo notificationId for generated doc on REST API
        of the web notification message
      • refuseRequestToJoinSpace

        @RolesAllowed("users")
        public javax.ws.rs.core.Response refuseRequestToJoinSpace​(@Context
                                                                  javax.ws.rs.core.UriInfo uriInfo,
                                                                  String spaceId,
                                                                  String requestUserId,
                                                                  String currentUserId,
                                                                  String notificationId,
                                                                  String format)
                                                           throws Exception
        Deprecated.
        Refuses a user's request for joining a space.
        Parameters:
        uriInfo -
        spaceId - Id of the space.
        requestUserId - The remote Id of the user who requests for joining the space.
        currentUserId -
        notificationId -
        format -
        Throws:
        Exception
        eXo anchor for generated doc on REST API
        GET: localhost:8080/rest/social/intranet-notifications/refuseRequestToJoinSpace/e1cacf067f0001015ac312536462fc6b/john
        eXo authentication for generated doc on REST API