Rename GCR to ACR.
[lgpl/argeo-commons.git] / org.argeo.api.cms / src / org / argeo / api / cms / CmsContext.java
diff --git a/org.argeo.api.cms/src/org/argeo/api/cms/CmsContext.java b/org.argeo.api.cms/src/org/argeo/api/cms/CmsContext.java
new file mode 100644 (file)
index 0000000..fa26b25
--- /dev/null
@@ -0,0 +1,26 @@
+package org.argeo.api.cms;
+
+import java.util.List;
+import java.util.Locale;
+
+/**
+ * A logical view on this CMS instance, independently of a particular launch or
+ * deployment.
+ */
+public interface CmsContext {
+       /**
+        * To be used as an identifier of a workgroup, typically as a value for the
+        * 'businessCategory' attribute in LDAP.
+        */
+       public final static String WORKGROUP = "workgroup";
+
+       Locale getDefaultLocale();
+
+       List<Locale> getLocales();
+
+       Long getAvailableSince();
+
+       
+       /** Mark this group as a workgroup */
+       void createWorkgroup(String groupDn);
+}