public class AuthorityScopeInterceptor extends LmngActiveAwareInterceptor
CompoundServiceProvider
objects for display
See https
://wiki.surfnetlabs.nl/display/services/App-omschrijving| Constructor and Description |
|---|
AuthorityScopeInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsRole(List<CoinAuthority.Authority> authorities,
CoinAuthority.Authority... authority) |
protected boolean |
isRoleIdPLicenseAdmin(List<CoinAuthority.Authority> authorities) |
protected boolean |
isRoleUser(List<CoinAuthority.Authority> authorities) |
void |
postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
protected void |
scopeCompoundServiceProvider(org.springframework.ui.ModelMap map,
CompoundServiceProvider sp,
List<CoinAuthority.Authority> authorities) |
protected void |
scopeGeneralAuthCons(org.springframework.ui.ModelMap map,
List<CoinAuthority.Authority> authorities) |
protected Collection<CompoundServiceProvider> |
scopeListOfCompoundServiceProviders(Collection<CompoundServiceProvider> cps,
List<CoinAuthority.Authority> authorities)
Reduce list based on whether the SP 'is linked' to the current IdP.
|
isLmngActive, setLmngActivepublic boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionpublic void postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView)
throws Exception
postHandle in interface org.springframework.web.servlet.HandlerInterceptorpostHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionprotected void scopeGeneralAuthCons(org.springframework.ui.ModelMap map,
List<CoinAuthority.Authority> authorities)
protected Collection<CompoundServiceProvider> scopeListOfCompoundServiceProviders(Collection<CompoundServiceProvider> cps, List<CoinAuthority.Authority> authorities)
protected void scopeCompoundServiceProvider(org.springframework.ui.ModelMap map,
CompoundServiceProvider sp,
List<CoinAuthority.Authority> authorities)
protected boolean isRoleUser(List<CoinAuthority.Authority> authorities)
protected boolean isRoleIdPLicenseAdmin(List<CoinAuthority.Authority> authorities)
protected boolean containsRole(List<CoinAuthority.Authority> authorities, CoinAuthority.Authority... authority)
Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.