@Path(value="securityQuestions") public interface SecurityQuestionService 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 |
|---|---|
javax.ws.rs.core.Response |
create(SecurityQuestionTO securityQuestionTO)
Creates a new security question.
|
void |
delete(Long securityQuestionId)
Deletes the security question matching the provided id.
|
List<SecurityQuestionTO> |
list()
Returns a list of all security questions.
|
SecurityQuestionTO |
read(Long securityQuestionId)
Returns security question with matching id.
|
SecurityQuestionTO |
readByUser(String username)
Ask for security question configured for the user matching the given username, if any.
|
void |
update(Long securityQuestionId,
SecurityQuestionTO securityQuestionTO)
Updates the security question matching the provided id.
|
@GET
@Produces(value={"application/xml","application/json"})
List<SecurityQuestionTO> list()
@GET
@Path(value="{securityQuestionId}")
@Produces(value={"application/xml","application/json"})
SecurityQuestionTO read(@NotNull@PathParam(value="securityQuestionId")
Long securityQuestionId)
securityQuestionId - security question id to be read@POST
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response create(@NotNull
SecurityQuestionTO securityQuestionTO)
securityQuestionTO - security question to be created@PUT
@Path(value="{securityQuestionId}")
@Consumes(value={"application/xml","application/json"})
void update(@NotNull@PathParam(value="securityQuestionId")
Long securityQuestionId,
@NotNull
SecurityQuestionTO securityQuestionTO)
securityQuestionId - security question id to be updatedsecurityQuestionTO - security question to be stored@DELETE
@Path(value="{securityQuestionId}")
void delete(@NotNull@PathParam(value="securityQuestionId")
Long securityQuestionId)
securityQuestionId - security question id to be deleted@GET
@Path(value="byUser/{username}")
@Produces(value={"application/xml","application/json"})
@Consumes(value={"application/xml","application/json"})
SecurityQuestionTO readByUser(@NotNull@PathParam(value="username")
String username)
username - username for which the security question is requestedCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.