@Controller public abstract class BaseController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPOUND_SP
The name of the key under which a compoundSps (e.g.
|
static String |
COMPOUND_SPS
The name of the key under which all compoundSps (e.g.
|
static String |
DEEPLINK_TO_SURFMARKET_ALLOWED
The name of the key that defines whether a deeplink to SURFMarket should be shown.
|
static String |
FILTER_APP_GRID_ALLOWED
The name of the key under which we store the info if a logged user is allowed to filter in the app grid
|
static String |
LMNG_ACTIVE_MODUS
The name of the key under which we store the info if LMNG is active (e.g.
|
protected org.springframework.web.servlet.LocaleResolver |
localeResolver |
static String |
SERVICE_APPLY_ALLOWED
The name of the key under which we store the info if a logged user is allowed to ask questions
|
static String |
SERVICE_QUESTION_ALLOWED
The name of the key under which we store the info if a logged user is allowed to ask questions
|
static String |
TOKEN_CHECK
The name of the key under which we store the token used to prevent session hijacking
|
| Constructor and Description |
|---|
BaseController() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale(javax.servlet.http.HttpServletRequest request) |
List<IdentityProvider> |
getMyInstitutionIdps() |
IdentityProvider |
getRequestedIdp(String idpId,
javax.servlet.http.HttpServletRequest request)
Exposes the requested IdP for use in RequestMapping methods.
|
public static final String COMPOUND_SPS
public static final String COMPOUND_SP
public static final String SERVICE_APPLY_ALLOWED
public static final String SERVICE_QUESTION_ALLOWED
public static final String FILTER_APP_GRID_ALLOWED
public static final String DEEPLINK_TO_SURFMARKET_ALLOWED
public static final String LMNG_ACTIVE_MODUS
public static final String TOKEN_CHECK
protected org.springframework.web.servlet.LocaleResolver localeResolver
@ModelAttribute(value="idps") public List<IdentityProvider> getMyInstitutionIdps()
@ModelAttribute(value="locale") public Locale getLocale(javax.servlet.http.HttpServletRequest request)
@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.Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.