Class IntranetNotificationRestService
- java.lang.Object
-
- org.exoplatform.social.service.rest.IntranetNotificationRestService
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
@Deprecated public class IntranetNotificationRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
Deprecated.Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Nov 26, 2014
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGE_JSON_FILE_NAMEDeprecated.
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.ResponseacceptInvitationToJoinSpace(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String userId, String notificationId, String format)Deprecated.Processes the "Accept the invitation to join a space" action and update notification.javax.ws.rs.core.ResponseconfirmInvitationToConnect(javax.ws.rs.core.UriInfo uriInfo, String senderId, String receiverId, String notificationId, String format)Deprecated.Processes the "Accept the invitation to connect" action between 2 users and update notification.javax.ws.rs.core.ResponseignoreInvitationToConnect(javax.ws.rs.core.UriInfo uriInfo, String senderId, String receiverId, String notificationId, String format)Deprecated.Processes the "Deny the invitation to connect" action between 2 usersjavax.ws.rs.core.ResponseignoreInvitationToJoinSpace(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String userId, String notificationId, String format)Deprecated.Processes the "Deny the invitation to join a space" action.javax.ws.rs.core.ResponserefuseRequestToJoinSpace(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String requestUserId, String currentUserId, String notificationId, String format)Deprecated.Refuses a user's request for joining a space.javax.ws.rs.core.ResponsevalidateRequestToJoinSpace(javax.ws.rs.core.UriInfo uriInfo, String spaceId, String requestUserId, String currentUserId, String notificationId, String format)Deprecated.Adds a member to a space and update notification.
-
-
-
Field Detail
-
MESSAGE_JSON_FILE_NAME
public static final String MESSAGE_JSON_FILE_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
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 ExceptionDeprecated.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 ExceptionDeprecated.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 ExceptionDeprecated.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 ExceptionDeprecated.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 ExceptionDeprecated.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 userIdnotificationId-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 ExceptionDeprecated.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
-
-