use of org.apache.jackrabbit.core.state.ItemState in project jackrabbit by apache.
the class ChangeLogRecord method doWrite.
/**
* {@inheritDoc}
*/
@Override
protected void doWrite() throws JournalException {
writeTimestampRecord();
writeUserDataRecord();
for (ItemState state : changes.deletedStates()) {
if (state.isNode()) {
writeNodeRecord(DELETED, (NodeState) state);
} else {
writePropertyRecord(DELETED, (PropertyState) state);
}
}
for (ItemState state : changes.modifiedStates()) {
if (state.isNode()) {
writeNodeRecord(MODIFIED, (NodeState) state);
} else {
writePropertyRecord(MODIFIED, (PropertyState) state);
}
}
for (ItemState state : changes.addedStates()) {
if (state.isNode()) {
writeNodeRecord(ADDED, (NodeState) state);
} else {
writePropertyRecord(ADDED, (PropertyState) state);
}
}
for (EventState event : events) {
writeEventRecord(event);
}
}
Aggregations