[
https://issues.apache.org/jira/browse/SLING-12319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18023913#comment-18023913
]
Mark Adamcin commented on SLING-12319:
--------------------------------------
[~joerghoh] yes, it is still valid. A UUID (non-path) value for getIdentifier()
is still being discarded by the listener [1], and the getIdentifier() value is
otherwise not captured or exposed by JcrResourceChange nor the ResourceChange
superclass, which only accept a path in the constructor [2].
[1]
[https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/9c548e9a01ca8f56dcd2cd19ae96c9f15ede01a0/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java#L150]
[2]
[https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/daa4777ba63264b940e6b9b64df24189828ccd17/src/main/java/org/apache/sling/jcr/resource/api/JcrResourceChange.java#L35]
> 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
> Priority: Major
>
> 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)