Class UserRestResourcesV1

java.lang.Object
org.exoplatform.portal.rest.UserRestResourcesV1
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class UserRestResourcesV1 extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Field Details

  • Constructor Details

    • UserRestResourcesV1

      public UserRestResourcesV1(org.exoplatform.services.organization.OrganizationService organizationService, org.exoplatform.services.organization.search.UserSearchService userSearchService, UserACL userACL, org.exoplatform.web.login.recovery.PasswordRecoveryService passwordRecoveryService)
  • Method Details

    • getUsers

      @RolesAllowed("administrators") public javax.ws.rs.core.Response getUsers(String q, String status, int offset, int limit, boolean returnSize) throws Exception
      Throws:
      Exception
    • createUser

      @RolesAllowed("administrators") public javax.ws.rs.core.Response createUser(@Context jakarta.servlet.http.HttpServletRequest request, UserRestEntity userEntity) throws Exception
      Throws:
      Exception
    • updateUser

      @RolesAllowed("users") public javax.ws.rs.core.Response updateUser(@Context jakarta.servlet.http.HttpServletRequest request, UserRestEntity userEntity) throws Exception
      Throws:
      Exception
    • deleteUser

      @RolesAllowed("administrators") public javax.ws.rs.core.Response deleteUser(String userName) throws Exception
      Throws:
      Exception
    • getUser

      @RolesAllowed("users") public javax.ws.rs.core.Response getUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id) throws Exception
      Throws:
      Exception
    • changePassword

      @RolesAllowed("users") public javax.ws.rs.core.Response changePassword(@Context jakarta.servlet.http.HttpServletRequest request, String username, String currentPassword, String newPassword)
    • getUserMemberships

      @RolesAllowed("administrators") public javax.ws.rs.core.Response getUserMemberships(String userName, int offset, int limit, boolean returnSize) throws Exception
      Throws:
      Exception
    • isSuperUser

      @RolesAllowed("users") public javax.ws.rs.core.Response isSuperUser()
    • isDelegatedAdministrator

      @RolesAllowed("users") public javax.ws.rs.core.Response isDelegatedAdministrator()
    • isSynchronizedUserAllowedToChangePassword

      @RolesAllowed("users") public javax.ws.rs.core.Response isSynchronizedUserAllowedToChangePassword(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
      Throws:
      Exception
    • getCurrentUsername

      public static String getCurrentUsername()