Prepare refactoring
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / CmsView.java
index 75cefd1c03687aad342dbc26159c465703427484..ad4796e22b0fbdbdea3c17e09f6b647c5119b145 100644 (file)
@@ -1,26 +1,23 @@
 package org.argeo.cms;
 
-import javax.security.auth.Subject;
 import javax.security.auth.login.LoginContext;
 
-/** Provides interaction with the CMS system. UNSTABLE API at this stage. */
-public interface CmsView {
-       public final static String KEY = "org.argeo.cms.view";
+import org.argeo.node.NodeAuthenticated;
 
+/** Provides interaction with the CMS system. UNSTABLE API at this stage. */
+public interface CmsView extends NodeAuthenticated {
        UxContext getUxContext();
 
        // NAVIGATION
-       public void navigateTo(String state);
+       void navigateTo(String state);
 
        // SECURITY
-       public void authChange(LoginContext loginContext);
-
-       public Subject getSubject();
+       void authChange(LoginContext loginContext);
 
-       public void logout();
+       void logout();
 
        // SERVICES
-       public void exception(Throwable e);
+       void exception(Throwable e);
 
-       public CmsImageManager getImageManager();
+       CmsImageManager getImageManager();
 }