Make username and user role more consistent.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CmsSession.java
index b9798006b4ca040fa3ecb3d543cf27f639dcc967..a0ea6a63fd552b452f2e5e45f7765c24f72fa2a8 100644 (file)
@@ -22,6 +22,8 @@ public interface CmsSession {
 
        UUID getUuid();
 
+       String getUserRole();
+       
        LdapName getUserDn();
 
        String getLocalId();
@@ -38,6 +40,8 @@ public interface CmsSession {
 
        boolean isValid();
 
+       void registerView(String uid, Object view);
+
        /** @return The {@link CmsSession} for this {@link Subject} or null. */
        static CmsSession getCmsSession(BundleContext bc, Subject subject) {
                if (subject.getPrivateCredentials(CmsSessionId.class).isEmpty())