@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) |
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) |
javax.ws.rs.core.Response |
updateUser(String username,
Long directoryId,
String email,
Boolean active,
String firstName,
String lastName) |
javax.ws.rs.core.Response |
updateUserLocally(String username,
long directoryId,
Map<String,String> updates) |
@Inject public TestKitUserResource(DirectoryManager directoryManager, ForgottenLoginManager forgottenLoginManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
@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="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
Copyright © 2021 Atlassian. All rights reserved.