|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.selfservice.control.BaseController
@Controller public abstract class BaseController
Abstract controller used to set model attributes to the request
| Field Summary | |
|---|---|
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. |
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 |
protected 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 |
TOKEN_CHECK
The name of the key under which we store the token used to prevent session hijacking |
| Constructor Summary | |
|---|---|
BaseController()
|
|
| Method Summary | |
|---|---|
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)
|
protected nl.surfnet.coin.csa.model.InstitutionIdentityProvider |
switchIdp(javax.servlet.http.HttpServletRequest request,
String switchIdpId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVICES
public static final String SERVICE
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
protected static final String SELECTED_IDP
protected org.springframework.web.servlet.LocaleResolver localeResolver
| Constructor Detail |
|---|
public BaseController()
| Method Detail |
|---|
@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 javaScript
e - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||