content API: cleanup (MAGNOLIA-3015)

[MAGNOLIA-3023] content API cleanup: add Content.setNodeData(name, obj) method(s) Created: 19/Jan/10  Updated: 23/Jan/13  Resolved: 22/Jan/10

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.3

Type: Sub-task Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:

 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.


Generated at Mon Feb 12 03:42:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.