public class UserAgreementStatusResource extends Object
UserAgreementStatusEntity related methods.| Constructor and Description |
|---|
UserAgreementStatusResource(UserAgreementStatusDao inUserAgreementStatusDao,
UserAgreementDao inUserAgreementDao)
Creates the user agreement REST endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(org.eurekaclinical.useragreement.client.comm.UserAgreementStatus inUserAgreement,
javax.servlet.http.HttpServletRequest req)
Creates a user agreement record for the current user.
|
List<org.eurekaclinical.useragreement.client.comm.UserAgreementStatus> |
getAll()
Get a list of all users in the system.
|
org.eurekaclinical.useragreement.client.comm.UserAgreementStatus |
getById(Long inId,
javax.servlet.http.HttpServletRequest req)
Get a user by the user's identification number.
|
org.eurekaclinical.useragreement.client.comm.UserAgreementStatus |
getMine(org.eurekaclinical.useragreement.client.comm.Status status,
javax.servlet.http.HttpServletRequest req)
Get the current user's identification number.
|
@Inject public UserAgreementStatusResource(UserAgreementStatusDao inUserAgreementStatusDao, UserAgreementDao inUserAgreementDao)
inUserAgreementStatusDao - DAO used to access UserAgreementStatusEntity
related functionality.inUserAgreementDao - DAO used to access user agreements.@RolesAllowed(value="admin") public List<org.eurekaclinical.useragreement.client.comm.UserAgreementStatus> getAll()
UserAgreement objects.public org.eurekaclinical.useragreement.client.comm.UserAgreementStatus getById(Long inId, @Context javax.servlet.http.HttpServletRequest req)
inId - the identification number for the user agreement record to
fetch. Cannot be null.req - the request object. Cannot be null.org.eurekaclinical.standardapis.exception.HttpStatusException - with a 404 status code if there is no user
agreement record with that identification number.public org.eurekaclinical.useragreement.client.comm.UserAgreementStatus getMine(org.eurekaclinical.useragreement.client.comm.Status status,
@Context
javax.servlet.http.HttpServletRequest req)
status - optional status filter query parameter, which if specified,
will cause only a user agreement status with the specified status value
to be returned.req - the request object. Cannot be null.null.org.eurekaclinical.standardapis.exception.HttpStatusException - with a 404 status code if the current user
has no user agreement record.public javax.ws.rs.core.Response create(org.eurekaclinical.useragreement.client.comm.UserAgreementStatus inUserAgreement,
@Context
javax.servlet.http.HttpServletRequest req)
inUserAgreement - the new user agreement record, must have the
username of the current user. Cannot be null.req - the request object. Cannot be null.org.eurekaclinical.standardapis.exception.HttpStatusException - if an error occurred. If the fields of the
user agreement record are invalid, the exception will have a 400 status
code (bad request). If the current user already has a user agreement
record, the exception will have a 409 status code (conflict).Copyright © 2016–2018 Emory University. All rights reserved.