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:
Giancarlo Panichi 2017-01-20 17:08:37 +00:00
parent 761907280f
commit 10f8849a19
2 changed files with 701 additions and 1063 deletions

View File

@ -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());
}
}
}