Improve CMS session.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / CmsView.java
index d57f20bed897a626da6e4d584180b7a7f6471f9e..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;
 
@@ -63,6 +64,10 @@ public interface CmsView {
        
        default void stateChanged(String state, String title) {
        }
+       
+       default CmsSession getCmsSession() {
+               throw new UnsupportedOperationException();
+       }
 
        static CmsView getCmsView(Control parent) {
                // find parent shell