@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) |
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 |
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) |
@Inject public TestKitUserResource(DirectoryManager directoryManager, ForgottenLoginManager forgottenLoginManager)
@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
@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.
View cookie preferences