Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NXP-8879: Expand variables in link when instantiating an Action

  • Loading branch information...
commit cf7c6f9714a2f5585ce14dee8802bc0542bc6f8f 1 parent cba43ca
Thierry Martins tmartins authored
9 nuxeo-platform-actions-core/src/main/java/org/nuxeo/ecm/platform/actions/Action.java
View
@@ -26,6 +26,7 @@
import org.nuxeo.common.xmap.annotation.XNode;
import org.nuxeo.common.xmap.annotation.XNodeList;
import org.nuxeo.common.xmap.annotation.XObject;
+import org.nuxeo.runtime.api.Framework;
/**
* Descriptor for action.
@@ -42,8 +43,7 @@
@XNode("@id")
private String id = "";
- @XNode("@link")
- private String link;
+ private String link = null;
// XXX AT: param types still buggy, to fix eventually for optim
@XNodeList(value = "link-params/param", type = Class[].class, componentType = Class.class)
@@ -126,8 +126,11 @@ public String getLink() {
return link;
}
+ @XNode("@link")
public void setLink(String link) {
- this.link = link;
+ if (link != null) {
+ this.link = Framework.expandVars(link);
+ }
}
public String[] getCategories() {
Please sign in to comment.
Something went wrong with that request. Please try again.