@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 |
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 |
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
CSA Admin (aka God)
|
protected org.springframework.web.servlet.LocaleResolver |
localeResolver |
static String |
RAW_ARP_ATTRIBUTES_VISIBLE
Key in which we store whether a user should see the technical attribute names of an ARP.
|
protected static String |
SELECTED_IDP
Key in which we store the currently selected IdP
|
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() |
protected IdentityProvider |
getSelectedIdp(javax.servlet.http.HttpServletRequest request) |
Object |
handleAjaxResponseException(AjaxResponseException e)
Handler for
AjaxResponseException. |
protected IdentityProvider |
switchIdp(javax.servlet.http.HttpServletRequest request,
String switchIdpId) |
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 FACET_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 IS_GOD
public static final String TOKEN_CHECK
public static final String GROUPS_WITH_MEMBERS
public static final String RAW_ARP_ATTRIBUTES_VISIBLE
protected static final String SELECTED_IDP
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)
protected IdentityProvider getSelectedIdp(javax.servlet.http.HttpServletRequest request)
protected IdentityProvider switchIdp(javax.servlet.http.HttpServletRequest request, String switchIdpId)
@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 © 2013 SURFnet bv, The Netherlands. All rights reserved.