@Controller public abstract class BaseController extends Object implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
context |
static String |
DEEPLINK_TO_SURFMARKET_ALLOWED
The name of the key that defines whether a deeplink to SURFMarket should be
shown.
|
static String |
FACET_CONNECTION_VISIBLE
The name of the key under which we store the info if the connection facet is visible to the current user.
|
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 |
INSTITUTION_IDENTITY_PROVIDERS
The name of the key under which all the identity providers are stored
for the identity switch view
|
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 |
SELECTED_IDP
Key for the selectedIdp in the session
|
static String |
SERVICE
The name of the key under which a service is stored
for the detail view
|
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 |
SERVICES
The name of the key under which all services are
stored
|
static String |
SHOW_ARP_MATCHES_PROVIDED_ATTRS |
static String |
SWITCHED_IDENTITY_SWITCH
The name of the key under which the switched identity is stored
|
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<nl.surfnet.coin.csa.model.InstitutionIdentityProvider> |
getMyInstitutionIdps() |
NotificationMessage |
getNotifications(javax.servlet.http.HttpServletRequest request)
Get notifications from the session (if available) and place as model
attribute.
|
protected nl.surfnet.coin.csa.model.InstitutionIdentityProvider |
getSelectedIdp(javax.servlet.http.HttpServletRequest request) |
Object |
handleAjaxResponseException(AjaxResponseException e)
Handler for
AjaxResponseException. |
protected void |
notificationPopupClosed(javax.servlet.http.HttpServletRequest request) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected nl.surfnet.coin.csa.model.InstitutionIdentityProvider |
switchIdp(javax.servlet.http.HttpServletRequest request,
String switchIdpId) |
public static final String SERVICES
public static final String SERVICE
public static final String INSTITUTION_IDENTITY_PROVIDERS
public static final String SWITCHED_IDENTITY_SWITCH
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 FACET_CONNECTION_VISIBLE
public static final String DEEPLINK_TO_SURFMARKET_ALLOWED
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 SHOW_ARP_MATCHES_PROVIDED_ATTRS
public static final String SELECTED_IDP
protected org.springframework.web.servlet.LocaleResolver localeResolver
protected org.springframework.context.ApplicationContext context
@ModelAttribute(value="idps") public List<nl.surfnet.coin.csa.model.InstitutionIdentityProvider> getMyInstitutionIdps()
@ModelAttribute(value="locale") public Locale getLocale(javax.servlet.http.HttpServletRequest request)
protected nl.surfnet.coin.csa.model.InstitutionIdentityProvider getSelectedIdp(javax.servlet.http.HttpServletRequest request)
protected nl.surfnet.coin.csa.model.InstitutionIdentityProvider switchIdp(javax.servlet.http.HttpServletRequest request,
String switchIdpId)
@ModelAttribute(value="notifications") public NotificationMessage getNotifications(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 exceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.