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

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: