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

      • 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 class org.silverpeas.core.web.rs.RESTWebService
      • getComponentId

        public String getComponentId()
      • validateUserAuthorization

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