]> git.argeo.org Git - lgpl/argeo-commons.git/blob - CmsContext.java
05108beac3e2ad0bc5a18842d8419255ced8b308
[lgpl/argeo-commons.git] / CmsContext.java
1 package org.argeo.api.cms;
2
3 import java.util.List;
4 import java.util.Locale;
5
6 import javax.security.auth.Subject;
7
8 /**
9 * A logical view on this CMS instance, independently of a particular launch or
10 * deployment.
11 */
12 public interface CmsContext {
13 /**
14 * To be used as an identifier of a workgroup, typically as a value for the
15 * 'businessCategory' attribute in LDAP.
16 */
17 public final static String WORKGROUP = "workgroup";
18
19 Locale getDefaultLocale();
20
21 List<Locale> getLocales();
22
23 Long getAvailableSince();
24
25 /** Mark this group as a workgroup */
26 void createWorkgroup(String groupDn);
27
28 /** Get the CMS session of this subject. */
29 CmsSession getCmsSession(Subject subject);
30
31 CmsState getCmsState();
32 }