From dev-return-96880-archive-asf-public=cust-asf.ponee.io@sling.apache.org Thu May 16 15:33:55 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C13E918066B for ; Thu, 16 May 2019 17:33:54 +0200 (CEST) Received: (qmail 43524 invoked by uid 500); 16 May 2019 15:33:54 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 43510 invoked by uid 99); 16 May 2019 15:33:54 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2019 15:33:54 +0000 From: GitBox To: dev@sling.apache.org Subject: [GitHub] [sling-org-apache-sling-jcr-contentloader] ncautotest commented on issue #2: SLING-8375 - Allow import if data contains protected properties Message-ID: <155802082895.810.14140094241737479987.gitbox@gitbox.apache.org> Date: Thu, 16 May 2019 15:33:48 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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