Hi,
I'm trying to retrieve Binary Value Identifier by following [1].
The example shows retrieving it when creating a binary value.
Is it possible to retrieve the identifier when reading binary value afterward?
I tried it like this:
if (value instanceof JackrabbitValue) {
contentId = ((JackrabbitValue) value).getContentIdentity();
}
But, it always returns null. In debugging, it hits
org.apache.jackrabbit.core.value.BLOBFileValue#getDataIdentifier() in
my example and the method always returns null.
Is #getContentIdentity() supposed to be used only when creating a
binary value once initially, or is it kind of shortcoming at the
moment?
Regards,
Woonsan
[1] https://wiki.apache.org/jackrabbit/DataStore#Retrieve_the_Identifier