Class 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
    • Constructor Detail

      • ServiceContact

        public ServiceContact()
    • 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 Exception
        Return list of DetailUserDTO of my contacts
        Returns:
        list of UserDetailDTO
        Throws:
        Exception
      • hasContacts

        @GET
        @Produces("application/json")
        @Path("hasContacts/")
        public ContactFilters hasContacts()
      • getResourceBasePath

        protected String getResourceBasePath()
        Specified by:
        getResourceBasePath in class org.silverpeas.core.web.rs.RESTWebService
      • getComponentId

        public String getComponentId()
      • validateUserAuthorization

        public void validateUserAuthorization​(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)