Class ServiceContact
java.lang.Object
org.silverpeas.core.web.rs.RESTWebService
org.silverpeas.mobile.server.services.AbstractRestWebService
org.silverpeas.mobile.server.services.ServiceContact
- All Implemented Interfaces:
org.silverpeas.core.web.rs.ProtectedWebResource,org.silverpeas.core.web.rs.WebAuthenticationValidation,org.silverpeas.core.web.rs.WebAuthorizationValidation,org.silverpeas.core.web.SilverpeasWebResource
@WebService
@Authorized
@Path("mobile/contact")
public class ServiceContact
extends AbstractRestWebService
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME, USER_ATTRIBUT_NAMEFields inherited from class org.silverpeas.core.web.rs.RESTWebService
RESPONSE_HEADER_ARRAYSIZEFields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContact(String userId) getContacts(String type, String filter, int pageSize, int startIndex) Return list of DetailUserDTO of my contactsgetContactsFiltered(String type, String filter) protected StringvoidvalidateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation) Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
authenticate, createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingListMethods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getLanguage, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, processMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
Constructor Details
-
ServiceContact
public ServiceContact()
-
-
Method Details
-
getContact
@GET @Produces("application/json") @Path("/contact/{userId}/") public DetailUserDTO getContact(@PathParam("userId") String userId) throws org.silverpeas.core.admin.service.AdminException - Throws:
org.silverpeas.core.admin.service.AdminException
-
getContacts
@GET @Produces("application/json") @Path("paging/{type}/") public List<DetailUserDTO> getContacts(@PathParam("type") String type, @QueryParam("filter") String filter, @QueryParam("pageSize") int pageSize, @QueryParam("startIndex") int startIndex) Return list of DetailUserDTO of my contacts- Returns:
- list of UserDetailDTO
-
getContactsFiltered
@GET @Produces("application/json") @Path("{type}/") public List<DetailUserDTO> getContactsFiltered(@PathParam("type") String type, @QueryParam("filter") String filter) throws org.silverpeas.core.admin.service.AdminException - Throws:
org.silverpeas.core.admin.service.AdminException
-
hasContacts
-
getResourceBasePath
- Specified by:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
-
validateUserAuthorization
public void validateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)
-