@Named @Path(value="/user") @Produces(value="application/json") @Consumes(value="application/json") public class TestKitUserResource extends Object
| Constructor and Description |
|---|
TestKitUserResource(DirectoryManager directoryManager,
ForgottenLoginManager forgottenLoginManager,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate,
ApplicationService applicationService,
ApplicationManager applicationManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createUser(String username,
Long directoryId,
String email,
boolean active,
boolean hasExpiredPassword,
String firstName,
String lastName) |
javax.ws.rs.core.Response |
getExternalIds(List<String> usernames,
long directoryId) |
javax.ws.rs.core.Response |
getResetToken(String username,
long directoryId) |
javax.ws.rs.core.Response |
removeUser(String username,
long directoryId) |
<T> List<T> |
searchUsersPaged(Application app,
EntityQuery<T> query,
int pageSize,
boolean pager) |
Map<String,String> |
searchUsersPaged(Application app,
String searchText) |
javax.ws.rs.core.Response |
searchUsersPagedPerformance(long appId,
String searchText) |
javax.ws.rs.core.Response |
updateUser(String username,
Long directoryId,
String email,
Boolean active,
boolean hasExpiredPassword,
String firstName,
String lastName) |
javax.ws.rs.core.Response |
updateUserLocally(String username,
long directoryId,
Map<String,String> updates) |
javax.ws.rs.core.Response |
updateUserPasswordToExpired(String username,
long directoryId) |
@Inject public TestKitUserResource(DirectoryManager directoryManager, ForgottenLoginManager forgottenLoginManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, ApplicationService applicationService, ApplicationManager applicationManager)
@POST
public javax.ws.rs.core.Response createUser(@QueryParam(value="name")
String username,
@QueryParam(value="directoryId")
Long directoryId,
@QueryParam(value="email") @Nullable
String email,
@QueryParam(value="active") @DefaultValue(value="true")
boolean active,
@QueryParam(value="hasExpiredPassword") @DefaultValue(value="false")
boolean hasExpiredPassword,
@QueryParam(value="firstName") @Nullable
String firstName,
@QueryParam(value="lastName") @Nullable
String lastName)
throws Exception
Exception@PUT
public javax.ws.rs.core.Response updateUser(@QueryParam(value="name")
String username,
@QueryParam(value="directoryId")
Long directoryId,
@QueryParam(value="email") @Nullable
String email,
@QueryParam(value="active") @Nullable
Boolean active,
@QueryParam(value="hasExpiredPassword") @DefaultValue(value="false")
boolean hasExpiredPassword,
@QueryParam(value="firstName") @Nullable
String firstName,
@QueryParam(value="lastName") @Nullable
String lastName)
throws Exception
Exception@PUT
@Path(value="/update-locally")
public javax.ws.rs.core.Response updateUserLocally(@QueryParam(value="name")
String username,
@QueryParam(value="directoryId")
long directoryId,
Map<String,String> updates)
throws Exception
Exception@GET
@Path(value="/external-ids")
public javax.ws.rs.core.Response getExternalIds(@QueryParam(value="names")
List<String> usernames,
@QueryParam(value="directoryId")
long directoryId)
throws Exception
Exception@GET
@Path(value="/reset-token")
public javax.ws.rs.core.Response getResetToken(@QueryParam(value="name")
String username,
@QueryParam(value="directoryId")
long directoryId)
throws Exception
Exception@DELETE
@Path(value="/remove")
public javax.ws.rs.core.Response removeUser(@QueryParam(value="name")
String username,
@QueryParam(value="directoryId")
long directoryId)
throws Exception
Exception@PUT
@Path(value="/expire-password")
public javax.ws.rs.core.Response updateUserPasswordToExpired(@QueryParam(value="name")
String username,
@QueryParam(value="directoryId")
long directoryId)
throws UserNotFoundException,
DirectoryNotFoundException
@GET
@Path(value="/search-paged-performance")
public javax.ws.rs.core.Response searchUsersPagedPerformance(@QueryParam(value="appId")
long appId,
@QueryParam(value="search")
String searchText)
throws Exception
Exceptionpublic Map<String,String> searchUsersPaged(Application app, String searchText) throws PagingNotSupportedException
PagingNotSupportedExceptionpublic <T> List<T> searchUsersPaged(Application app, EntityQuery<T> query, int pageSize, boolean pager) throws PagingNotSupportedException
PagingNotSupportedExceptionCopyright © 2023 Atlassian. All rights reserved.