cq5 - How to get the modified node lists before calling session.save()? -
is possible modified nodes list before calling session's save method? want know nodes modified or added, , right use inefficient way this:
looping through 'content' path , calling these methods each node: node.ismodified() node.isnew()
it looks bad solution, didn't find better 1 problem.
thanks in advance!
you can try using sql2 query nodes updated or modified since given timestamp
for example nodes modified or created since 2014-10-27t14:00:00.801-08:00:
select * [nt:base] s [jcr:lastmodified] > '2014-10-27t14:00:00.801-08:00' or [jcr:created] > '2014-10-27t14:00:00.801-08:00'
note: performance vary based on returned dataset
Comments
Post a Comment