Move CMS session management to CMS Context.
[lgpl/argeo-commons.git] / org.argeo.api.cms / src / org / argeo / api / cms / CmsContext.java
index fa26b253a2121f6f67f103966657460729fcb898..8f4161c507e2244b7b3bf52fca1647122bf2d4d6 100644 (file)
@@ -3,6 +3,8 @@ package org.argeo.api.cms;
 import java.util.List;
 import java.util.Locale;
 
+import javax.security.auth.Subject;
+
 /**
  * A logical view on this CMS instance, independently of a particular launch or
  * deployment.
@@ -20,7 +22,9 @@ public interface CmsContext {
 
        Long getAvailableSince();
 
-       
        /** Mark this group as a workgroup */
        void createWorkgroup(String groupDn);
+
+       /** Get the CMS session of this subject. */
+       CmsSession getCmsSession(Subject subject);
 }