Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3015 content API: cleanup
  3. MAGNOLIA-3023

content API cleanup: add Content.setNodeData(name, obj) method(s)

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3
    • None
    • core
    • None

      Today the Content interface only defines setNodeData(Value value) and to set some other value one has for instance to use createNodeData(name).setValue(string). This is confusing and leads developers to create value objects manually while they shouldn't.

      A) add all setNodeData() variations (as in JCR Node interface)

      B) add a single setNodeData(name, obj)
      the correct method is then called by using instanceof statements. Similar code already exists in the NodeDataUtil.

            pbaerfuss Philipp Bärfuss
            pbaerfuss Philipp Bärfuss
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: