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
-
-
Field Summary
-
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME
-
-
Constructor Summary
Constructors Constructor Description ServiceContact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentId()
DetailUserDTO
getContact(String userId)
List<DetailUserDTO>
getContacts(String type, String filter, int pageSize, int startIndex)
Return list of DetailUserDTO of my contactsList<DetailUserDTO>
getContactsFiltered(String type, String filter)
protected String
getResourceBasePath()
ContactFilters
hasContacts()
void
validateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)
-
Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingList, setMainsessioncontroller
-
Methods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, process
-
-
-
-
Method Detail
-
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
@GET @Produces("application/json") @Path("hasContacts/") public ContactFilters hasContacts()
-
getResourceBasePath
protected String getResourceBasePath()
- Specified by:
getResourceBasePath
in classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
public String getComponentId()
-
validateUserAuthorization
public void validateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)
-
-