public class IntranetNotificationRestService
extends org.exoplatform.social.core.storage.impl.AbstractStorage
implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_JSON_FILE_NAME |
| Constructor and Description |
|---|
IntranetNotificationRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
acceptInvitationToJoinSpace(javax.ws.rs.core.UriInfo uriInfo,
String spaceId,
String userId,
String notificationId,
String format)
Processes the "Accept the invitation to join a space" action and update notification.
|
javax.ws.rs.core.Response |
confirmInvitationToConnect(javax.ws.rs.core.UriInfo uriInfo,
String senderId,
String receiverId,
String notificationId,
String format)
Processes the "Accept the invitation to connect" action between 2 users and update notification.
|
static org.exoplatform.social.core.space.spi.SpaceService |
getSpaceService()
Gets a service which manages all things related to spaces.
|
javax.ws.rs.core.Response |
ignoreInvitationToConnect(javax.ws.rs.core.UriInfo uriInfo,
String senderId,
String receiverId,
String notificationId,
String format)
Processes the "Deny the invitation to connect" action between 2 users
|
javax.ws.rs.core.Response |
ignoreInvitationToJoinSpace(javax.ws.rs.core.UriInfo uriInfo,
String spaceId,
String userId,
String notificationId,
String format)
Processes the "Deny the invitation to join a space" action.
|
javax.ws.rs.core.Response |
refuseRequestToJoinSpace(javax.ws.rs.core.UriInfo uriInfo,
String spaceId,
String requestUserId,
String currentUserId,
String notificationId,
String format)
Refuses a user's request for joining a space.
|
javax.ws.rs.core.Response |
validateRequestToJoinSpace(javax.ws.rs.core.UriInfo uriInfo,
String spaceId,
String requestUserId,
String currentUserId,
String notificationId,
String format)
Adds a member to a space and update notification.
|
_findById, _findByPath, _getMixin, _hasMixin, _removeById, _removeMixin, _skip, getProviderRoot, getSession, getSpaceRoot, getStatus, isJcrProperty, lifecycleLookup, node, nodes, nodes, startSynchronization, stopSynchronizationpublic static final String MESSAGE_JSON_FILE_NAME
@RolesAllowed(value="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
senderId - The sender's remote Id.receiverId - The receiver's remote Id.Exceptionhttp://localhost:8080/rest/social/intranet-notifications/confirmInvitationToConnect/john/root/<notificationId>/message.json@RolesAllowed(value="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
senderId - The sender's remote Id.receiverId - The receiver's remote Id.Exception@RolesAllowed(value="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
userId - The invitee's remote Id.spaceId - Id of the space.Exceptionlocalhost:8080/rest/social/intranet-notifications/acceptInvitationToJoinSpace/e1cacf067f0001015ac312536462fc6b/john/<notificationId>/message.json@RolesAllowed(value="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
userId - The invitee's remote Id.spaceId - Id of the space.Exception@RolesAllowed(value="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
uriInfo - spaceId - Id of the space.requestUserId - The remote Id of the user who requests for joining the space.currentUserId - the userIdnotificationId - format - Exceptionlocalhost:8080/rest/social/intranet-notifications/validateRequestToJoinSpace/e1cacf067f0001015ac312536462fc6b/john/<notificationId>/message.json@RolesAllowed(value="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
uriInfo - spaceId - Id of the space.requestUserId - The remote Id of the user who requests for joining the space.currentUserId - notificationId - format - Exceptionpublic static org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
SpaceServiceCopyright © 2003–2017 eXo Platform SAS. All rights reserved.