E - a user entity type.D - a user data access object type.U - a user type.public final class AuthorizedUserSupport<E extends org.eurekaclinical.standardapis.entity.UserEntity<?>,D extends org.eurekaclinical.standardapis.dao.UserDao<?,E>,U extends User> extends AbstractUserSupport<E,U>
| Constructor and Description |
|---|
AuthorizedUserSupport(D inUserDao) |
| Modifier and Type | Method and Description |
|---|---|
E |
getUser(javax.servlet.http.HttpServletRequest servletRequest)
Returns the user object, or if there isn't one, throws an exception.
|
boolean |
isSameUser(javax.servlet.http.HttpServletRequest servletRequest,
E user) |
getUserPrincipal, getUserPrincipalAttributes, isSameUser, isSameUserpublic AuthorizedUserSupport(D inUserDao)
public boolean isSameUser(javax.servlet.http.HttpServletRequest servletRequest,
E user)
isSameUser in interface UserSupport<E extends org.eurekaclinical.standardapis.entity.UserEntity<?>,U extends User>isSameUser in class AbstractUserSupport<E extends org.eurekaclinical.standardapis.entity.UserEntity<?>,U extends User>public E getUser(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest - the HTTP servlet request.org.eurekaclinical.standardapis.exception.HttpStatusException - if the logged-in user isn't in the user
table, which means the user is not authorized to use eureka-protempa-etl.Copyright © 2016–2018 Emory University. All rights reserved.