You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2014/03/30 20:51:15 UTC
[jira] [Commented] (OAK-1489) ValueImpl should implement
JackrabbitValue
[ https://issues.apache.org/jira/browse/OAK-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954794#comment-13954794 ]
Thomas Mueller commented on OAK-1489:
-------------------------------------
The contract of JackrabbitValue.getContentIdentity() is defined in the Javadoc of that method. The contract of getReference() is not very clear to me; I didn't find the specification. Therefore, I'm afraid I can't comment on this issue.
> ValueImpl should implement JackrabbitValue
> ------------------------------------------
>
> Key: OAK-1489
> URL: https://issues.apache.org/jira/browse/OAK-1489
> Project: Jackrabbit Oak
> Issue Type: Wish
> Components: core
> Reporter: Vikas Saurabh
> Attachments: OAK-1489.patch
>
>
> For some reason, I need to get to datastore id. With JR2 (in sling env) I could do:
> {code}
> String id = null;
> Value v = resource.adaptTo(Value.class);
> if(v instanceof JackrabbitValue) {
> id = ((JackrabbitValue)v).getContentIdentity();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)