@Controller public abstract class BaseController extends Object
| Constructor and Description |
|---|
BaseController() |
| Modifier and Type | Method and Description |
|---|---|
protected static CoinUser |
getCurrentUser()
Get the IDP Entity Id from the security context.
|
List<IdentityProvider> |
getMyInstitutionIdps() |
IdentityProvider |
getRequestedIdp(String idpId,
javax.servlet.http.HttpServletRequest request)
Exposes the requested IdP for use in RequestMapping methods.
|
@ModelAttribute(value="idps") public List<IdentityProvider> getMyInstitutionIdps()
@ModelAttribute(value="selectedidp") public IdentityProvider getRequestedIdp(@RequestParam(required=false) String idpId, javax.servlet.http.HttpServletRequest request)
idpId - the idp selected in the viewrequest - HttpServletRequest, for storing/retrieving the selected idp in the http session.protected static CoinUser getCurrentUser()
SecurityException - in case no principal is found.Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.