// ----- VERSIONABLE properties -----
// jcr:versionHistory
TransientPropertyData vh =
TransientPropertyData.createPropertyData(versionable, Constants.JCR_VERSIONHISTORY, PropertyType.REFERENCE,
false);
vh.setValue(new TransientValueData(new Identifier(versionHistory)));
// jcr:baseVersion
TransientPropertyData bv =
TransientPropertyData
.createPropertyData(versionable, Constants.JCR_BASEVERSION, PropertyType.REFERENCE, false);
bv.setValue(new TransientValueData(new Identifier(baseVersionUuid)));
// jcr:predecessors
TransientPropertyData pd =
TransientPropertyData
.createPropertyData(versionable, Constants.JCR_PREDECESSORS, PropertyType.REFERENCE, true);
for (int i = 0; i < predecessors.length; i++)
{
pd.setValue(new TransientValueData(new Identifier(predecessors[i])));
}
PlainChangesLog changesLog = new PlainChangesLogImpl();
RemoveVisitor rv = new RemoveVisitor();
rv.visit((NodeData)((NodeImpl)versionableNode.getVersionHistory()).getData());