X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Finternal%2Fhttp%2FWebCmsSessionImpl.java;h=eb6c89d37b52a49aa01963a826c09a67dacfcea8;hb=eb4cc3db3bf141c229f0f7ff929daff108bee6d2;hp=03fb82faac46d1c204855e01ea43730ad8bb05af;hpb=7064547ae5d85225546f1b8f15d6b5c82f30fe22;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 03fb82faa..eb6c89d37 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 @@ -4,18 +4,18 @@ import java.util.Locale; import javax.security.auth.Subject; -import org.argeo.cms.auth.HttpRequest; -import org.argeo.cms.auth.HttpSession; +import org.argeo.cms.auth.RemoteAuthRequest; +import org.argeo.cms.auth.RemoteAuthSession; import org.argeo.cms.internal.auth.CmsSessionImpl; import org.osgi.service.useradmin.Authorization; /** CMS session implementation in a web context. */ public class WebCmsSessionImpl extends CmsSessionImpl { private static final long serialVersionUID = -5178883380637048025L; - private HttpSession httpSession; + private RemoteAuthSession httpSession; public WebCmsSessionImpl(Subject initialSubject, Authorization authorization, Locale locale, - HttpRequest request) { + RemoteAuthRequest request) { super(initialSubject, authorization, locale, request.getSession().getId()); httpSession = request.getSession(); } @@ -27,7 +27,7 @@ public class WebCmsSessionImpl extends CmsSessionImpl { return httpSession.isValid(); } - public static CmsSessionImpl getCmsSession(HttpRequest request) { - return CmsSessionImpl.getByLocalId(request.getSession().getId()); - } +// public static CmsSessionImpl getCmsSession(RemoteAuthRequest request) { +// return CmsSessionImpl.getByLocalId(request.getSession().getId()); +// } }