public class NotificationsRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
NotificationsRestService.URL_TYPE |
| Constructor and Description |
|---|
NotificationsRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
acceptInvitationToJoinSpace(String spaceId,
String userId)
Processes the "Accept the invitation to join a space" action and redirects to the space homepage.
|
javax.ws.rs.core.Response |
confirmInvitationToConnect(String senderId,
String receiverId)
Processes the "Accept the invitation to connect" action between 2 users, then redirects to the sender's activity stream.
|
org.exoplatform.social.core.space.spi.SpaceService |
getSpaceService()
Gets a service which manages all things related to spaces.
|
javax.ws.rs.core.Response |
ignoreInvitationToConnect(String senderId,
String receiverId)
Processes the "Deny the invitation to connect" action between 2 users, then redirects to the receiver's page of received invitations.
|
javax.ws.rs.core.Response |
ignoreInvitationToJoinSpace(String spaceId,
String userId)
Processes the "Deny the invitation to join a space" action, then redirects to the page of all spaces.
|
javax.ws.rs.core.Response |
inviteToConnect(javax.ws.rs.core.UriInfo uriInfo,
String receiverId,
String senderId)
Processes the "Invite to connect" action between two users, sender and receiver, then redirects to the receiver's profile page.
|
javax.ws.rs.core.Response |
redirectUrl(javax.ws.rs.core.UriInfo uriInfo,
String type,
String objectId)
Redirects the current user to an associated page, such as user activity stream, portal homepage,
space homepage and user profile.
|
javax.ws.rs.core.Response |
refuseRequestToJoinSpace(String spaceId,
String userId)
Refuses a user's request for joining a space, then redirects to
the space's members page.
|
javax.ws.rs.core.Response |
validateRequestToJoinSpace(String spaceId,
String userId)
Adds a member to a space, then redirects to the space's members page.
|
public javax.ws.rs.core.Response inviteToConnect(@Context
javax.ws.rs.core.UriInfo uriInfo,
String receiverId,
String senderId)
throws Exception
senderId - The sender's remote Id.receiverId - The receiver's remote Id.Exceptionpublic javax.ws.rs.core.Response confirmInvitationToConnect(String senderId, String receiverId) throws Exception
senderId - The sender's remote Id.receiverId - The receiver's remote Id.Exceptionpublic javax.ws.rs.core.Response ignoreInvitationToConnect(String senderId, String receiverId) throws Exception
senderId - The sender's remote Id.receiverId - The receiver's remote Id.Exceptionpublic javax.ws.rs.core.Response acceptInvitationToJoinSpace(String spaceId, String userId) throws Exception
userId - The invitee's remote Id.spaceId - Id of the space.Exceptionpublic javax.ws.rs.core.Response ignoreInvitationToJoinSpace(String spaceId, String userId) throws Exception
userId - The invitee's remote Id.spaceId - Id of the space.Exceptionpublic javax.ws.rs.core.Response validateRequestToJoinSpace(String spaceId, String userId) throws Exception
userId - The remote Id of the user who requests for joining the space.spaceId - Id of the space.Exceptionpublic javax.ws.rs.core.Response refuseRequestToJoinSpace(String spaceId, String userId) throws Exception
userId - The remote Id of the user who requests for joining the space.spaceId - Id of the space.Exceptionpublic javax.ws.rs.core.Response redirectUrl(@Context
javax.ws.rs.core.UriInfo uriInfo,
String type,
String objectId)
throws Exception
type - Type of the redirected page.objectId - Id of the associated type that can be activity Id, space Id, or user remote Id.Exceptionpublic org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
SpaceServiceCopyright © 2003–2018 eXo Platform SAS. All rights reserved.