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 StringgetComponentId()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 StringgetResourceBasePath()ContactFiltershasContacts()voidvalidateUserAuthorization(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
-
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) throws ExceptionReturn list of DetailUserDTO of my contacts- Returns:
- list of UserDetailDTO
- Throws:
Exception
-
getContactsFiltered
@GET @Produces("application/json") @Path("{type}/") public List<DetailUserDTO> getContactsFiltered(@PathParam("type") String type, @QueryParam("filter") String filter) throws Exception- Throws:
Exception
-
hasContacts
@GET @Produces("application/json") @Path("hasContacts/") public ContactFilters hasContacts()
-
getResourceBasePath
protected String getResourceBasePath()
- Specified by:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
public String getComponentId()
-
validateUserAuthorization
public void validateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)
-
-