Package org.exoplatform.addons.chat.api
Class UserRestService
- java.lang.Object
-
- org.exoplatform.addons.chat.api.UserRestService
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class UserRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
-
-
Field Summary
Fields Modifier and Type Field Description static StringANONIM_USERprotected static StringEXTERNAL_PROPERTYprotected static StringIF_MODIFIED_SINCE_DATE_FORMATprotected static StringLAST_MODIFIED_PROPERTY
-
Constructor Summary
Constructors Constructor Description UserRestService(org.exoplatform.services.user.UserStateService userStateService, org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.ws.frameworks.cometd.ContinuationService continuationService, org.exoplatform.services.organization.OrganizationService organizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetCometdToken(javax.servlet.http.HttpServletRequest request)DocumentServicegetDocumentService()javax.ws.rs.core.ResponsegetModalParticipantsToSuggest(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest request, List<org.exoplatform.chat.model.UserBean> userList)javax.ws.rs.core.ResponsegetOnlineStatus(javax.servlet.http.HttpServletRequest request, String users)javax.ws.rs.core.ResponsegetOnlineUsers(javax.servlet.http.HttpServletRequest request)javax.ws.rs.core.ResponsegetRoomParticipantsToSuggest(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest request, List<org.exoplatform.chat.model.UserBean> userList)javax.ws.rs.core.ResponsegetToken(javax.servlet.http.HttpServletRequest request, String tokenOnly)javax.ws.rs.core.ResponsegetUserSettings(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.SecurityContext sc)javax.ws.rs.core.ResponsegetUserState(javax.servlet.http.HttpServletRequest request, String user)WikiServicegetWikiService()javax.ws.rs.core.ResponsesendNotificationToMentionUsers(javax.servlet.http.HttpServletRequest request, MentionModel mentionModel)javax.ws.rs.core.ResponsesendNotificationToUsers(javax.servlet.http.HttpServletRequest request, MessageReceivedModel messageReceivedModel)
-
-
-
Field Detail
-
ANONIM_USER
public static final String ANONIM_USER
- See Also:
- Constant Field Values
-
LAST_MODIFIED_PROPERTY
protected static final String LAST_MODIFIED_PROPERTY
- See Also:
- Constant Field Values
-
IF_MODIFIED_SINCE_DATE_FORMAT
protected static final String IF_MODIFIED_SINCE_DATE_FORMAT
- See Also:
- Constant Field Values
-
EXTERNAL_PROPERTY
protected static final String EXTERNAL_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserRestService
public UserRestService(org.exoplatform.services.user.UserStateService userStateService, org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.ws.frameworks.cometd.ContinuationService continuationService, org.exoplatform.services.organization.OrganizationService organizationService)
-
-
Method Detail
-
getToken
public javax.ws.rs.core.Response getToken(@Context javax.servlet.http.HttpServletRequest request, String tokenOnly) throws Exception- Throws:
Exception
-
getCometdToken
@RolesAllowed("users") public javax.ws.rs.core.Response getCometdToken(@Context javax.servlet.http.HttpServletRequest request) throws Exception- Throws:
Exception
-
getOnlineStatus
@RolesAllowed("users") public javax.ws.rs.core.Response getOnlineStatus(@Context javax.servlet.http.HttpServletRequest request, String users) throws Exception- Throws:
Exception
-
sendNotificationToMentionUsers
@RolesAllowed("users") public javax.ws.rs.core.Response sendNotificationToMentionUsers(@Context javax.servlet.http.HttpServletRequest request, MentionModel mentionModel) throws Exception- Throws:
Exception
-
sendNotificationToUsers
@RolesAllowed("users") public javax.ws.rs.core.Response sendNotificationToUsers(@Context javax.servlet.http.HttpServletRequest request, MessageReceivedModel messageReceivedModel) throws Exception- Throws:
Exception
-
getOnlineUsers
@RolesAllowed("users") public javax.ws.rs.core.Response getOnlineUsers(@Context javax.servlet.http.HttpServletRequest request) throws Exception- Throws:
Exception
-
getRoomParticipantsToSuggest
@RolesAllowed("users") public javax.ws.rs.core.Response getRoomParticipantsToSuggest(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest request, List<org.exoplatform.chat.model.UserBean> userList) throws Exception- Throws:
Exception
-
getModalParticipantsToSuggest
@RolesAllowed("users") public javax.ws.rs.core.Response getModalParticipantsToSuggest(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest request, List<org.exoplatform.chat.model.UserBean> userList) throws Exception- Throws:
Exception
-
getUserState
@RolesAllowed("users") public javax.ws.rs.core.Response getUserState(@Context javax.servlet.http.HttpServletRequest request, String user) throws Exception- Throws:
Exception
-
getUserSettings
@RolesAllowed("users") public javax.ws.rs.core.Response getUserSettings(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.SecurityContext sc) throws Exception- Throws:
Exception
-
getDocumentService
public DocumentService getDocumentService()
-
getWikiService
public WikiService getWikiService()
-
-