]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.api.cms/src/org/argeo/api/cms/CmsContext.java
1 package org
.argeo
.api
.cms
;
4 import java
.util
.Locale
;
6 import javax
.security
.auth
.Subject
;
9 * A logical view on this CMS instance, independently of a particular launch or
12 public interface CmsContext
{
14 * To be used as an identifier of a workgroup, typically as a value for the
15 * 'businessCategory' attribute in LDAP.
17 public final static String WORKGROUP
= "workgroup";
19 Locale
getDefaultLocale();
21 List
<Locale
> getLocales();
23 Long
getAvailableSince();
25 /** Mark this group as a workgroup */
26 void createWorkgroup(String groupDn
);
28 /** Get the CMS session of this subject. */
29 CmsSession
getCmsSession(Subject subject
);