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

Alexander Klimetschek edited comment on JCR-2116 at 7/28/09 1:39 PM:
---------------------------------------------------------------------

I just happened to deal with the new semantics of the protected jcr:created/By 
and jcr:lastModified/By properties introduced with the mix:created and 
mix:lastModified mixins in JSR-283, so I was looking at the new code for that.

It looks like only jcr:created will be set by the implementation. 
jcr:lastModified must also be considered in case of mix:lastModified as 
declaring nodetype (currently it's only done for nt:resource). And both 
jcr:createdBy and jcr:lastModifiedBy must also be set if their declaring 
nodetype is mix:created or mix:lastModified, respectively (using 
session.getUserID() I reckon). Thus reopening.

      was (Author: alexander.klimetschek):
    I just happened to deal with the new semantics of the protected 
jcr:created/By and jcr:lastModified/By properties introduced with the 
mix:created and mix:lastModified mixins in JSR-283, so I was looking at the new 
code for that.

It looks like only jcr:created and jcr:lastModified will be set by the 
implementation. But jcr:createdBy and jcr:lastModifiedBy must also be set if 
their declaring nodetype is mix:created or mix:lastModified, respectively 
(using session.getUserID() I reckon). Thus reopening.
  
> JSR 283: Built-In Node Types
> ----------------------------
>
>                 Key: JCR-2116
>                 URL: https://issues.apache.org/jira/browse/JCR-2116
>             Project: Jackrabbit Content Repository
>          Issue Type: Sub-task
>          Components: jackrabbit-core, nodetype
>            Reporter: Stefan Guggisberg
>            Assignee: Tobias Bocanegra
>             Fix For: 2.0.0
>
>
> sync definitions of built-in node types with spec

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to