]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.api.cms/src/org/argeo/api/cms/CmsContext.java
Introduce CMS event bus and use it in UI.
[lgpl/argeo-commons.git] / org.argeo.api.cms / src / org / argeo / api / cms / CmsContext.java
index fa26b253a2121f6f67f103966657460729fcb898..6ad0f512cab9180d4dbd1947e584022c672c0edc 100644 (file)
@@ -2,6 +2,9 @@ package org.argeo.api.cms;
 
 import java.util.List;
 import java.util.Locale;
+import java.util.UUID;
+
+import javax.security.auth.Subject;
 
 /**
  * A logical view on this CMS instance, independently of a particular launch or
@@ -20,7 +23,15 @@ 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);
+
+       CmsEventBus getCmsEventBus();
+
+       /** A new time based {@link UUID} (v1) using the current time */
+       UUID timeUUID();
+
 }