Interface UserRestResources

  • All Superinterfaces:
    org.exoplatform.services.rest.resource.ResourceContainer, SocialRest
    All Known Implementing Classes:
    UserRestResourcesV1

    public interface UserRestResources
    extends SocialRest
    • Method Detail

      • getUsers

        javax.ws.rs.core.Response getUsers​(@Context
                                           javax.ws.rs.core.UriInfo uriInfo,
                                           String q,
                                           String status,
                                           String userType,
                                           String isConnected,
                                           String spaceId,
                                           boolean isDisabled,
                                           String enrollmentStatus,
                                           int offset,
                                           int limit,
                                           boolean returnSize,
                                           String expand)
                                    throws Exception
        Get all users, filter by name if exists.
        Parameters:
        q - value that an user's name match
        status - filter only online users
        userType - filter by user type
        isConnected - filter by connected users
        spaceId - filter only space members
        isDisabled - only disabled users
        enrollmentStatus - filter by enrollment status
        Returns:
        List of users in json format.
        Throws:
        Exception
      • addUser

        javax.ws.rs.core.Response addUser​(@Context
                                          javax.ws.rs.core.UriInfo uriInfo,
                                          String expand,
                                          UserEntity model)
                                   throws Exception
        Creates an user
        Parameters:
        uriInfo -
        Returns:
        user created in json format
        Throws:
        Exception
      • getUserById

        javax.ws.rs.core.Response getUserById​(@Context
                                              javax.ws.rs.core.UriInfo uriInfo,
                                              String id,
                                              String expand)
                                       throws Exception
        Throws:
        Exception
      • deleteUserById

        javax.ws.rs.core.Response deleteUserById​(@Context
                                                 javax.ws.rs.core.UriInfo uriInfo,
                                                 String id,
                                                 String expand)
                                          throws Exception
        Throws:
        Exception
      • getConnectionsOfUser

        javax.ws.rs.core.Response getConnectionsOfUser​(@Context
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       String id,
                                                       String q,
                                                       boolean returnSize,
                                                       String expand)
                                                throws Exception
        Throws:
        Exception
      • getInvitationsOfUser

        javax.ws.rs.core.Response getInvitationsOfUser​(@Context
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       boolean returnSize,
                                                       String expand)
                                                throws Exception
        Throws:
        Exception
      • getPendingOfUser

        javax.ws.rs.core.Response getPendingOfUser​(@Context
                                                   javax.ws.rs.core.UriInfo uriInfo,
                                                   boolean returnSize,
                                                   String expand)
                                            throws Exception
        Throws:
        Exception
      • getSpacesOfUser

        javax.ws.rs.core.Response getSpacesOfUser​(@Context
                                                  javax.ws.rs.core.UriInfo uriInfo,
                                                  String id,
                                                  int offset,
                                                  int limit,
                                                  boolean returnSize,
                                                  String expand)
                                           throws Exception
        Throws:
        Exception