@Controller public abstract class BaseController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_IDPS
The name of the key under which all identityproviders are stored
|
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 |
GROUPS_WITH_MEMBERS
The name of the key under which we store the information from Api regarding
group memberships and actual members for auto-completion in the
recommendation modal popup.
|
static String |
IS_ADMIN_USER
The name of the key under which we store the info if a logged user is a
kind of admin
|
static String |
IS_GOD
The name of the key under which we store the info if the logged in user is
Distribution Channel Admin (aka God)
|
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 |
NOTIFICATION_POPUP_CLOSED
The name of the key under which we store the info if the notifications for
licenses/linked services were generated already
|
static String |
NOTIFICATIONS
The name of the key under which we store the notifications
|
static String |
RAW_ARP_ATTRIBUTES_VISIBLE
Key in which we store whether a user should see the technical attribute names of an ARP.
|
static String |
SERVICE_APPLY_ALLOWED
The name of the key under which we store the info if a logged user is
allowed to request connections / disconnects
|
static String |
SERVICE_CONNECTION_VISIBLE
The name of the key under which we store the info if the status of a
technical connection is visible to the current user.
|
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() |
NotificationMessage |
getNotifications(String idpId,
javax.servlet.http.HttpServletRequest request)
Get notifications from the session (if available) and place as model
attribute.
|
IdentityProvider |
getRequestedIdp(String idpId,
javax.servlet.http.HttpServletRequest request)
Exposes the requested IdP for use in RequestMapping methods.
|
Object |
handleAjaxResponseException(AjaxResponseException e)
Handler for
AjaxResponseException. |
protected void |
notificationPopupClosed(javax.servlet.http.HttpServletRequest request) |
public static final String COMPOUND_SPS
public static final String ALL_IDPS
public static final String COMPOUND_SP
public static final String SERVICE_APPLY_ALLOWED
public static final String SERVICE_QUESTION_ALLOWED
public static final String SERVICE_CONNECTION_VISIBLE
public static final String FILTER_APP_GRID_ALLOWED
public static final String IS_ADMIN_USER
public static final String DEEPLINK_TO_SURFMARKET_ALLOWED
public static final String LMNG_ACTIVE_MODUS
public static final String IS_GOD
public static final String TOKEN_CHECK
public static final String NOTIFICATIONS
public static final String NOTIFICATION_POPUP_CLOSED
public static final String GROUPS_WITH_MEMBERS
public static final String RAW_ARP_ATTRIBUTES_VISIBLE
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.@ModelAttribute(value="notifications") public NotificationMessage getNotifications(@RequestParam(required=false) String idpId, javax.servlet.http.HttpServletRequest request)
protected void notificationPopupClosed(javax.servlet.http.HttpServletRequest request)
@ResponseStatus(value=BAD_REQUEST) @ResponseBody @ExceptionHandler(value=AjaxResponseException.class) public Object handleAjaxResponseException(AjaxResponseException e)
AjaxResponseException. We don't want a 500, but a 400
and we want to stream the error message direct to the javaScripte - the exceptionCopyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.