Class TestKitUserResource

java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestKitUserResource

@Named @Path("/user") @Produces("application/json") @Consumes("application/json") public class TestKitUserResource extends Object
  • Constructor Details

  • Method Details

    • createUser

      @POST public javax.ws.rs.core.Response createUser(@QueryParam("name") String username, @QueryParam("directoryId") Long directoryId, @QueryParam("email") @Nullable String email, @QueryParam("active") @DefaultValue("true") boolean active, @QueryParam("hasExpiredPassword") @DefaultValue("false") boolean hasExpiredPassword, @QueryParam("firstName") @Nullable String firstName, @QueryParam("lastName") @Nullable String lastName) throws Exception
      Throws:
      Exception
    • updateUser

      @PUT public javax.ws.rs.core.Response updateUser(@QueryParam("name") String username, @QueryParam("directoryId") Long directoryId, @QueryParam("email") @Nullable String email, @QueryParam("active") @Nullable Boolean active, @QueryParam("hasExpiredPassword") @DefaultValue("false") boolean hasExpiredPassword, @QueryParam("firstName") @Nullable String firstName, @QueryParam("lastName") @Nullable String lastName) throws Exception
      Throws:
      Exception
    • updateUserLocally

      @PUT @Path("/update-locally") public javax.ws.rs.core.Response updateUserLocally(@QueryParam("name") String username, @QueryParam("directoryId") long directoryId, Map<String,String> updates) throws Exception
      Throws:
      Exception
    • getExternalIds

      @GET @Path("/external-ids") public javax.ws.rs.core.Response getExternalIds(@QueryParam("names") List<String> usernames, @QueryParam("directoryId") long directoryId) throws Exception
      Throws:
      Exception
    • getResetToken

      @GET @Path("/reset-token") public javax.ws.rs.core.Response getResetToken(@QueryParam("name") String username, @QueryParam("directoryId") long directoryId) throws Exception
      Throws:
      Exception
    • removeUser

      @DELETE @Path("/remove") public javax.ws.rs.core.Response removeUser(@QueryParam("name") String username, @QueryParam("directoryId") long directoryId) throws Exception
      Throws:
      Exception
    • updateUserPasswordToExpired

      @PUT @Path("/expire-password") public javax.ws.rs.core.Response updateUserPasswordToExpired(@QueryParam("name") String username, @QueryParam("directoryId") long directoryId) throws UserNotFoundException, DirectoryNotFoundException
      Throws:
      UserNotFoundException
      DirectoryNotFoundException
    • searchUsersPagedPerformance

      @GET @Path("/search-paged-performance") public javax.ws.rs.core.Response searchUsersPagedPerformance(@QueryParam("appId") long appId, @QueryParam("search") String searchText) throws Exception
      Throws:
      Exception
    • searchUsersPaged

      public Map<String,String> searchUsersPaged(Application app, String searchText) throws PagingNotSupportedException
      Throws:
      PagingNotSupportedException
    • searchUsersPaged

      public <T> List<T> searchUsersPaged(Application app, EntityQuery<T> query, int pageSize, boolean pager) throws PagingNotSupportedException
      Throws:
      PagingNotSupportedException