Improve CMS session.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / CmsView.java
index 8011dce59a9af024ef40ecb025c30cde7e80be31..dcc1f1fd16b8b747723382dc071927e1246cb0ae 100644 (file)
@@ -6,6 +6,7 @@ import java.util.Map;
 
 import javax.security.auth.login.LoginContext;
 
+import org.argeo.cms.auth.CmsSession;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Shell;
 
@@ -60,6 +61,13 @@ public interface CmsView {
        default <T> T doAs(PrivilegedAction<T> action) {
                throw new UnsupportedOperationException();
        }
+       
+       default void stateChanged(String state, String title) {
+       }
+       
+       default CmsSession getCmsSession() {
+               throw new UnsupportedOperationException();
+       }
 
        static CmsView getCmsView(Control parent) {
                // find parent shell