Updated to new PortalContext
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@141675 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
761907280f
commit
10f8849a19
|
@ -102,5 +102,19 @@ public class SessionOp<T> {
|
|||
httpSession.setAttribute(attribute, map);
|
||||
}
|
||||
}
|
||||
|
||||
public void remove(HttpServletRequest httpRequest,
|
||||
ServiceCredentials serviceCredentials, String attribute) {
|
||||
HttpSession httpSession = httpRequest.getSession();
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, T> map = (HashMap<String, T>) httpSession
|
||||
.getAttribute(attribute);
|
||||
|
||||
if (map != null) {
|
||||
map.remove(serviceCredentials.getScope());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue