@Named 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)
public javax.ws.rs.core.Response createUser(String username, Long directoryId, @Nullable String email, boolean active, boolean hasExpiredPassword, @Nullable String firstName, @Nullable String lastName) throws Exception
Exceptionpublic javax.ws.rs.core.Response updateUser(String username, Long directoryId, @Nullable String email, @Nullable Boolean active, boolean hasExpiredPassword, @Nullable String firstName, @Nullable String lastName) throws Exception
Exceptionpublic javax.ws.rs.core.Response updateUserLocally(String username, long directoryId, Map<String,String> updates) throws Exception
Exceptionpublic javax.ws.rs.core.Response getExternalIds(List<String> usernames, long directoryId) throws Exception
Exceptionpublic javax.ws.rs.core.Response getResetToken(String username, long directoryId) throws Exception
Exceptionpublic javax.ws.rs.core.Response removeUser(String username, long directoryId) throws Exception
Exceptionpublic javax.ws.rs.core.Response updateUserPasswordToExpired(String username, long directoryId) throws UserNotFoundException, DirectoryNotFoundException
public javax.ws.rs.core.Response searchUsersPagedPerformance(long appId,
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.