]>
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
;
7 import javax
.security
.auth
.Subject
;
10 * A logical view on this CMS instance, independently of a particular launch or
13 public interface CmsContext
{
15 * To be used as an identifier of a workgroup, typically as a value for the
16 * 'businessCategory' attribute in LDAP.
18 public final static String WORKGROUP
= "workgroup";
20 Locale
getDefaultLocale();
22 List
<Locale
> getLocales();
24 Long
getAvailableSince();
26 /** Mark this group as a workgroup */
27 void createWorkgroup(String groupDn
);
29 /** Get the CMS session of this subject. */
30 CmsSession
getCmsSession(Subject subject
);
32 CmsEventBus
getCmsEventBus();
34 /** A new time based {@link UUID} (v1) using the current time */