Admin session to the proper content provider workspace
[lgpl/argeo-commons.git] / org.argeo.api.cms / src / org / argeo / api / cms / CmsAuth.java
index 6ecfeba11c6689283b04507e9243c9ea6eaa7df8..31ec8be5071f63dce2eaa4b0e89bb13dfd0c10e6 100644 (file)
@@ -30,6 +30,10 @@ public enum CmsAuth {
                return new LoginContext(getLoginContextName(), subject);
        }
 
+       public LoginContext newLoginContext() throws LoginException {
+               return new LoginContext(getLoginContextName());
+       }
+
        /*
         * LOGIN CONTEXTS
         */