@Path(value="users/self") public interface UserSelfService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
void |
confirmPasswordReset(String token,
String password)
Reset the password value for the user matching the provided token, if available and still valid.
|
javax.ws.rs.core.Response |
create(UserTO userTO,
boolean storePassword)
Self-registration for new user.
|
javax.ws.rs.core.Response |
delete()
Self-deletes user.
|
javax.ws.rs.core.Response |
getOptions()
Checks whether self-registration is allowed.
|
UserTO |
read()
Returns the user making the service call.
|
void |
requestPasswordReset(String username,
String securityAnswer)
Provides answer for the security question configured for user matching the given username, if any.
|
javax.ws.rs.core.Response |
update(Long userId,
UserMod userMod)
Self-updates user.
|
@OPTIONS javax.ws.rs.core.Response getOptions()
RESTHeaders.SELFREG_ALLOWED,
RESTHeaders.PWDRESET_ALLOWED,
RESTHeaders.PWDRESET_NEEDS_SECURITYQUESTIONS@GET
@Produces(value={"application/xml","application/json"})
UserTO read()
@POST
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response create(@NotNull
UserTO userTO,
@DefaultValue(value="true")@QueryParam(value="storePassword")
boolean storePassword)
userTO - user to be createdstorePassword - whether password shall be stored internallyUserTO as Entity@POST
@Path(value="{userId}")
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response update(@NotNull@PathParam(value="userId")
Long userId,
@NotNull
UserMod userMod)
userId - id of user to be updateduserMod - modification to be applied to user matching the provided userIdUserTO as Entity@DELETE
@Produces(value={"application/xml","application/json"})
javax.ws.rs.core.Response delete()
UserTO as Entity@POST
@Path(value="requestPasswordReset")
void requestPasswordReset(@NotNull@QueryParam(value="username")
String username,
String securityAnswer)
username - username for which the security answer is providedsecurityAnswer - actual answer text@POST
@Path(value="confirmPasswordReset")
void confirmPasswordReset(@NotNull@QueryParam(value="token")
String token,
String password)
token - password reset tokenpassword - new password to be setCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.