TransientPropertyData uuidData =
TransientPropertyData.createPropertyData(nodeData, Constants.JCR_UUID, PropertyType.STRING, false,
new TransientValueData(nodeData.getIdentifier()));
// add
CompositeChangesLog clog = new TransactionChangesLog();
PlainChangesLogImpl changes = new PlainChangesLogImpl();
try
{
changes.add(ItemState.createAddedState(nodeData));
changes.add(ItemState.createAddedState(ptData));
changes.add(ItemState.createAddedState(mtData));
changes.add(ItemState.createAddedState(uuidData));
clog.addLog(changes);
wdm.save(clog);
}
finally
{
cleanUpList.add(nodeData);