You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by dpmihai <dp...@yahoo.com> on 2012/03/02 15:13:09 UTC
Is it possible to change the property of a version node from
versionStorage?
I have some xml files kept inside jcr which also have versions.
I want to update my xml data with other xml (obtained with xslt from the
older one) on all my nodes. I can do this for all nodes in my repository,
except the versions nodes.
I get all my version nodes with an xpath like :
/jcr:root/jcr:system/jcr:versionStorage//*[@className='....' and
@type='...']//*[fn:name()='jcr:content' and @jcr:mimeType='text/xml']
I get my xml content property:
node.getProperty("jcr:data")
I convert this xml to the new xml format with an xslt transformation.
Then I want to save the new content:
node.setProperty ("jcr:data", binaryValue);
An exception is raised:
ConstraintViolationException: Unable to perform operation. Node is protected
Is this because version nodes are read only? Is it possible to change the
property of a version node?
--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Is-it-possible-to-change-the-property-of-a-version-node-from-versionStorage-tp4438579p4438579.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Is it possible to change the property of a version node from
versionStorage?
Posted by dpmihai <dp...@yahoo.com>.
Practically, is it possible in jackrabbit 2.2.9 to unprotect a version Node?
--
View this message in context: http://jackrabbit.510166.n4.nabble.com/Is-it-possible-to-change-the-property-of-a-version-node-from-versionStorage-tp4438579p4446043.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.