Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 23/Sep/13 5:31 PM
Description:

Node2Bean supports setting the content/node where the bean was read from using a setter called setContent. However it only works with the Content object, not a plain JCR Node object.

In Node2BeanTransformerImpl#setProperty we should check the type of the setter and be able to set it using both types.

The way the feature is implemented we support these variations:

  • setContent(Content)
  • setContent(SystemContentWrapper)
  • setContent(LazyContentWrapper)
  • setContent(ContentWrapper)
  • setContent(AbstractContent)
  • setContent(ContentHandler)

We should not break any of these, so something like:

if (propertyName.equals("content") && value == null && descriptor.getType().getType().isAssignableFrom(SystemContentWrapper.class)) { ... }
Fix Versions: 5.1.x
Project: Magnolia
Priority: Neutral Neutral
Reporter: Tobias Mattsson
Security Level: Public
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to