You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2019/05/16 15:33:48 UTC

[GitHub] [sling-org-apache-sling-jcr-contentloader] ncautotest commented on issue #2: SLING-8375 - Allow import if data contains protected properties

ncautotest commented on issue #2: SLING-8375 - Allow import if data contains protected properties
URL: https://github.com/apache/sling-org-apache-sling-jcr-contentloader/pull/2#issuecomment-493118033
 
 
   @rombert: Using `javax.jcr.nodetype.ItemDefinition.isProtected()` would definitely be a better way, but the data feeding into `org.apache.sling.jcr.contentloader.internal.DefaultContentCreator` is just strings/string arrays coming from an external source. In order to have a `javax.jcr.Node` instance the property would have to be set on a node and that throws a `ConstraintViolationException`. Or is there by chance a  way to create a detached Node or something like that just in order to figure out if the property is protected? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services