03-17-2016 02:14 PM
Hi,
I have a presumably simple question.
I'd like to set the Action Order value (under_ Listing and_Views / Content Views / MySearchContentView / Enablement_) using an EL which will be based on a conditional.
Specifically, #{currentUser.isMemberOf('someGroup') ?_ this.setActionOrder(-1000) : this.setActionOrder(1000)_}.
This would be done in the "Custom EL expressions" text area.
I'm new to EL but very familiar with Java, what would be the proper way to do this? The closest thing I've come upon can be found here: http://community.nuxeo.com/api/nuxeo/release-7.2/javadoc/org/nuxeo/search/ui/seam/SearchUIActions.ht...
Thank you,
Yousuf
03-23-2016 12:25 PM
Hi Yousuf,
in the Action Extension Point descriptor you can find order attribute as integer, no EL managing. I think, your changes of any Action order value in WebActions will be only in Event Context of Seam. An idea, if you need change the action with a stateful order, you should change the action into ActionService descriptor (that it is the Registry after deploy action contribution), because the action is always cloned from descriptor definition from service. I think getActions() and getActionRegstry() may be an available methods to get and update.
Hope helps!
Regards, VS!
03-17-2016 03:38 PM
I belive I may have found it
03-23-2016 12:25 PM
Hi Yousuf,
in the Action Extension Point descriptor you can find order attribute as integer, no EL managing. I think, your changes of any Action order value in WebActions will be only in Event Context of Seam. An idea, if you need change the action with a stateful order, you should change the action into ActionService descriptor (that it is the Registry after deploy action contribution), because the action is always cloned from descriptor definition from service. I think getActions() and getActionRegstry() may be an available methods to get and update.
Hope helps!
Regards, VS!
03-29-2016 06:03 PM
Thank you, Victor.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.