Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-21

If a property is of type binary, return the NodeData instance, not the inputStream

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1
    • 1.0
    • integration
    • None

      When writing a groovy script to do a bulk images update in the data repository I realized that having the MgnlGroovyNode return an instance of the inputStream is not very much useful. You can't access, for example, file name, height, width and other attributes of that image. it is much more handy in this case to have the BinaryNodeData itself. It is also important that the javadoc for MgnlGroovyNode.getNodeDataValue(..) states clearly what kind of object is returned according to the underlying jcr type.

        Acceptance criteria

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD