[ 
https://issues.apache.org/jira/browse/SLING-12319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Adamcin updated SLING-12319:
---------------------------------
    Description: 
The JcrResourceChange 
([https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/daa4777ba63264b940e6b9b64df24189828ccd17/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceChange.java#L31]
 ) should expose the value of the JCR Event's getIdentifier() method, which is 
otherwise read in case it contains a path, but ultimately discarded: 
[https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/daa4777ba63264b940e6b9b64df24189828ccd17/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java#L116]

 

The use case for this is primarily to expose the jcr:uuid of deleted 
mix:referenceable nodes to listeners, because once the node is deleted, the 
jcr:uuid property can no longer be accessed by the event path.

  was:The JcrResourceChange 
([https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/daa4777ba63264b940e6b9b64df24189828ccd17/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceChange.java#L31]
 ) should expose the value of the JCR Event's getIdentifier() method. In the 
case of the JCR Resource Provider this should be populated by the JCR Event's 
User Data 
([https://developer.adobe.com/experience-manager/reference-materials/spec/jcr/2.0/12_Observation.html#12.3.5%20User%20Data]).


> JcrResourceListener should expose the JCR Event's getIdentifier()
> -----------------------------------------------------------------
>
>                 Key: SLING-12319
>                 URL: https://issues.apache.org/jira/browse/SLING-12319
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>            Reporter: Mark Adamcin
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: JCR Resource 3.3.0
>
>
> The JcrResourceChange 
> ([https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/daa4777ba63264b940e6b9b64df24189828ccd17/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceChange.java#L31]
>  ) should expose the value of the JCR Event's getIdentifier() method, which 
> is otherwise read in case it contains a path, but ultimately discarded: 
> [https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/daa4777ba63264b940e6b9b64df24189828ccd17/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java#L116]
>  
> The use case for this is primarily to expose the jcr:uuid of deleted 
> mix:referenceable nodes to listeners, because once the node is deleted, the 
> jcr:uuid property can no longer be accessed by the event path.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to