jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francisco Carriedo Scher <fcarrie...@gmail.com>
Subject Varying the node primary type
Date Sun, 06 May 2012 07:41:17 GMT
Hi there,

in a given point after creating a nt:file node i need to change the node
type to nt:linkedFile. Sometimes such node will already have it's proper
sons (a node called jcr:content and property called jcr:data inside this
last one) and sometimes not.

Always before performing the save operation i need to be able to change the
nodetype as described if necessary, but i can not achieve it, since i call
the node.setPrimaryType("nt:linkedFile"); method and after it returns, the
nodetype for that node is still nt:file... If it helps, i perform this
operation inside the NodeImpl class on setProperty (when setting the binary
property of the jcr:content node of the nt:file, and i reach the nt:file
through calls to .getParent() method on jcr:content node).

My guess is that setPrimaryType operation is just enqueued and not
effective inmediately...

Any ideas to make this operation inmediately effective?

Thanks in advance for your attention, regards!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message