X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Finternal%2Fhttp%2FWebCmsSessionImpl.java;h=1df7b1760cfb4471ca013ca3b564ec3b87929379;hb=5e34b63ecd7534daedeabb1804d043fc3ac3d947;hp=3d5e3fe4c612d65781e5fe8196078dc4c05cafcb;hpb=b45e59192a4bb34a6b38a9bfa416b3dc3f6b7892;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/internal/http/WebCmsSessionImpl.java b/org.argeo.cms/src/org/argeo/cms/internal/http/WebCmsSessionImpl.java index 3d5e3fe4c..1df7b1760 100644 --- a/org.argeo.cms/src/org/argeo/cms/internal/http/WebCmsSessionImpl.java +++ b/org.argeo.cms/src/org/argeo/cms/internal/http/WebCmsSessionImpl.java @@ -1,10 +1,11 @@ package org.argeo.cms.internal.http; +import java.util.Locale; + import javax.security.auth.Subject; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; -import org.argeo.cms.auth.CmsSession; import org.argeo.cms.internal.auth.CmsSessionImpl; import org.osgi.service.useradmin.Authorization; @@ -14,8 +15,8 @@ public class WebCmsSessionImpl extends CmsSessionImpl { private HttpSession httpSession; - public WebCmsSessionImpl(Subject initialSubject, Authorization authorization, HttpServletRequest request) { - super(initialSubject, authorization, request.getSession(false).getId()); + public WebCmsSessionImpl(Subject initialSubject, Authorization authorization, Locale locale, HttpServletRequest request) { + super(initialSubject, authorization, locale,request.getSession(false).getId()); httpSession = request.getSession(false); } @@ -31,7 +32,7 @@ public class WebCmsSessionImpl extends CmsSessionImpl { } } - public static CmsSession getCmsSession(HttpServletRequest request) { + public static CmsSessionImpl getCmsSession(HttpServletRequest request) { return CmsSessionImpl.getByLocalId(request.getSession(false).getId()); } }