jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seidel. Robert" <Robert.Sei...@aeb.de>
Subject AW: How TO Determine A File Name in repository Coming From The UUID
Date Wed, 09 Feb 2011 14:31:53 GMT
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
 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:carlo.camerino@gmail.com] 
Gesendet: Mittwoch, 9. Februar 2011 14:57
An: users@jackrabbit.apache.org
Betreff: How TO Determine A File Name in repository Coming From The UUID


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


for example

this would be stored as


but in the jackrabbit db

it's stored with UUID_ with this kind of format


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

View raw message