Hi Carlo,

Jackrabbit stores files with the hash value of the binary. That is something 
like 000edb659bf4ada0c0f5a8c9b30ed3183de8d061. This value is internally stored 
within the specific property. 

The uuid you have a unique identifier of the node - it has nothing to do with 
the hash of the binary.

To get the hash of a binary property from the uuid of the node:

 1. Get the node: If you have the uuid of a node, you can create a query and 
search for the node.
 2. Get the value: Now you can call something like 
node.getProperty("<NameOfTheProperty>").getValue to receive the value of your 
binary property.
 3. Get the hash: This value can be casted to JackrabbitValue and there you 
have the method getContentIdentiy that gives you the hash of the binary...

Kindly Regards, Robert

-----Ursprüngliche Nachricht-----
Von: Carlo Camerino [mailto:[email protected]] 
Gesendet: Mittwoch, 9. Februar 2011 14:57
An: [email protected]
Betreff: How TO Determine A File Name in repository Coming From The UUID

Hi,

As per my understanding of Jackrabbit it store the files in the file system
with its uuid.

000edb659bf4ada0c0f5a8c9b30ed3183de8d061

for example

this would be stored as

00/0e/db/000edb659bf4ada0c0f5a8c9b30ed3183de8d061

but in the jackrabbit db

it's stored with UUID_ with this kind of format

45dd51a1-2704-47bc-9e9a-b865b247a305

question is, how do iget the file name given that i have a uuid?

Reply via email to