Adapt to changes in Argeo Commons
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 12 Aug 2022 05:07:31 +0000 (07:07 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 12 Aug 2022 05:07:31 +0000 (07:07 +0200)
swt/rcp/org.argeo.cms.e4.rcp/src/org/argeo/cms/e4/rcp/CmsE4Application.java
swt/rcp/org.argeo.cms.swt.rcp/src/org/argeo/cms/ui/rcp/CmsRcpApp.java

index b37a76587c1a82f0e5292ec6e650b0c33b5fd432..16d3ca8d2ff57300e2a1d5e1459cac8b02321f4a 100644 (file)
@@ -2,6 +2,7 @@ package org.argeo.cms.e4.rcp;
 
 import java.security.PrivilegedExceptionAction;
 import java.util.UUID;
+import java.util.concurrent.Callable;
 
 import javax.security.auth.Subject;
 import javax.security.auth.login.LoginContext;
@@ -204,4 +205,9 @@ public class CmsE4Application implements IApplication, CmsView {
                return uid;
        }
 
+       @Override
+       public <T> T doAs(Callable<T> action) {
+               throw new UnsupportedOperationException();
+       }
+
 }
index 3cf243851cb2bd66483d381242b4ebc01ec7e924..a88ff3824fa07c2ee2d02d093104ce0ad93060fd 100644 (file)
@@ -148,6 +148,11 @@ public class CmsRcpApp extends AbstractSwtCmsView implements CmsView {
                return cmsApp.getCmsContext().getCmsEventBus();
        }
 
+       @Override
+       public CmsApp getCmsApp() {
+               return cmsApp;
+       }
+
        /*
         * DEPENDENCY INJECTION
         */