[MGNLGROOVY-21] If a property is of type binary, return the NodeData instance, not the inputStream Created: 26/Mar/10 Updated: 25/Nov/13 Resolved: 26/Mar/10 |
|
| Status: | Closed |
| Project: | Magnolia Groovy Module |
| Component/s: | integration |
| Affects Version/s: | 1.0 |
| Fix Version/s: | 1.1 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Federico Grilli | Assignee: | Federico Grilli |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Description |
|
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. |