]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.api.cms/src/org/argeo/api/cms/CmsSession.java
Adapt to changes in third parties distribution
[lgpl/argeo-commons.git] / org.argeo.api.cms / src / org / argeo / api / cms / CmsSession.java
1 package org.argeo.api.cms;
2
3 import java.time.ZonedDateTime;
4 import java.util.Locale;
5 import java.util.UUID;
6 import java.util.function.Consumer;
7
8 import javax.naming.ldap.LdapName;
9 import javax.security.auth.Subject;
10
11 /** An authenticated user session. */
12 public interface CmsSession {
13 final static String USER_DN = "DN";
14 final static String SESSION_UUID = "entryUUID";
15 final static String SESSION_LOCAL_ID = "uniqueIdentifier";
16
17 UUID getUuid();
18
19 String getUserRole();
20
21 LdapName getUserDn();
22
23 String getLocalId();
24
25 String getDisplayName();
26 // Authorization getAuthorization();
27
28 Subject getSubject();
29
30 boolean isAnonymous();
31
32 ZonedDateTime getCreationTime();
33
34 ZonedDateTime getEnd();
35
36 Locale getLocale();
37
38 boolean isValid();
39
40 void registerView(String uid, Object view);
41
42 void addOnCloseCallback(Consumer<CmsSession> onClose);
43 }