jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sidhama <sidhartha.mal...@wipro.com>
Subject How to delete from fileDataStore in jackrabbit.
Date Wed, 08 Jul 2009 08:13:33 GMT


Our folder repository structure is 
MediaGroupNode/mediaAssetNode/FileNode(*.mp3 etc) -- Clicking on this one it
will open the file.

for uploading the file logic is 
mediaAssetNode = mediaAssetNode.addNode(fileNode, "nt:file");
mediaAssetNode = mediaAssetNode.addNode("jcr:content", "nt:resource");
InputStream is = mediaAsset.getUploadItem().getInputStream();
mediaAssetNode.setProperty("jcr:data", is);
For Deleting the flow is 
Get the MediaAssetNode --> Get the <jcr:content> node and <fileNode> from
assetNode and try to remove these two and save the session, then remove the
But file is not being deleted as per the expectation from the local disk,
Which have been uploaded by the Datastore logic implemented in the
repository.xml,but the jackrabbit rmi UI is displaying the node is being
<DataStore class="org.apache.jackrabbit.core.data.FileDataStore">

Please let me know the resolution.

View this message in context: http://www.nabble.com/How-to-delete-from-fileDataStore-in-jackrabbit.-tp24387295p24387295.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

View raw message