[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grégory Joseph resolved MAGNOLIA-3276.
--------------------------------------
Resolution: Fixed
> Add noop to nodebuilder
> -----------------------
>
> Key: MAGNOLIA-3276
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3276
> Project: Magnolia
> Issue Type: New Feature
> Components: core
> Reporter: Grégory Joseph
> Assignee: Grégory Joseph
> Fix For: 5.0
>
>
> When using the node builder api, we sometimes want to use ternary operations,
> where a noop() would be useful.
> Example:
> {code}
> new ModuleNodeBuilderTask("test paragraph", "", ErrorHandling.strict,
> getNode("paragraphs").then(
> addNode(name, "mgnl:contentNode").then(
> addProperty("templatePath", templatePath),
> addProperty("type", type),
> modelClass != null ?
> addProperty("modelClass", modelClass.getName()) : noop()
> )
> )
> )
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------