X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.ui%2Fsrc%2Forg%2Fargeo%2Fapp%2Fui%2FSuiteEvent.java;h=b4082322339c05db06a064e7849ee7173a196843;hb=f1b87af2e0de38f1f49ab8fe68f9988018914811;hp=c80be8e877d4dd7a33390a43702e93f676e7be7d;hpb=beb5e6f076b22822c9a94839dccca1c28922f19b;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.ui/src/org/argeo/app/ui/SuiteEvent.java b/org.argeo.app.ui/src/org/argeo/app/ui/SuiteEvent.java index c80be8e..b408232 100644 --- a/org.argeo.app.ui/src/org/argeo/app/ui/SuiteEvent.java +++ b/org.argeo.app.ui/src/org/argeo/app/ui/SuiteEvent.java @@ -21,11 +21,13 @@ public enum SuiteEvent implements CmsEvent { public final static String CONTENT_PATH = "contentPath"; // JCR + @Deprecated public final static String NODE_PATH = "path"; + @Deprecated public final static String WORKSPACE = "workspace"; public String getTopicBase() { - return "argeo/suite/ui"; + return "argeo.suite.ui"; } public static Map eventProperties(Content content) { @@ -34,10 +36,13 @@ public enum SuiteEvent implements CmsEvent { return properties; } + @Deprecated public static Map eventProperties(Node node) { Map properties = new HashMap<>(); - properties.put(NODE_PATH, Jcr.getPath(node)); - properties.put(WORKSPACE, Jcr.getWorkspaceName(node)); + String contentPath = '/' + Jcr.getWorkspaceName(node) + Jcr.getPath(node); + properties.put(CONTENT_PATH, contentPath); +// properties.put(NODE_PATH, Jcr.getPath(node)); +// properties.put(WORKSPACE, Jcr.getWorkspaceName(node)); return properties; }