[ 
https://issues.apache.org/jira/browse/JCR-3998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15385339#comment-15385339
 ] 

Chetan Mehrotra commented on JCR-3998:
--------------------------------------

bq. Wouldn't it make more sense to create an oak specific class; let's say 
JcrOakUtils in oak-commons and add such method in there?

Can be done however for this case we can avoid that as most people would miss 
that out and would not get aware of this new method

The new method can check if {{oak:Resource}} nodetype is present then use that 
otherwise fallsback to {{nt:resource}}. So as such it would not have dependency 
on any Oak API but just an Oak specific nodetype

> New putFile method which uses non referenceable oak:Resource nodetype
> ---------------------------------------------------------------------
>
>                 Key: JCR-3998
>                 URL: https://issues.apache.org/jira/browse/JCR-3998
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 2.13.2
>
>
> With OAK-4567 a new oak:Resource type is being introduced which is a 
> replacement for nt:resource for cases where referenceable nodes are not 
> required. 
> To make use of that we should add new variants of putFile in JcrUtil which 
> make use of that
> See also http://jackrabbit-oak.markmail.org/thread/qicpzm5ltnzfsd42



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to