134135136137138139140141142143144
return getVersionHistory(history.getNodeId()); } else { throw new ItemNotFoundException("Version history of node " + id + " not found."); } } finally { lock.release(); } } /** * {@inheritDoc}
286287288289290291292293294295296
info = new VersionHistoryInfo( history.getNodeId(), history.getState().getChildNodeEntry(root, 1).getId()); } } finally { lock.release(); } if (info == null) { info = createVersionHistory(session, node, copiedFrom); }
307308309310311312313314315316317
public boolean hasItem(NodeId id) { ReadLock lock = acquireReadLock(); try { return stateMgr.hasItemState(id); } finally { lock.release(); } } /** * {@inheritDoc}
338339340341342343344345346347348
} } return item; } } finally { lock.release(); } } /** * {@inheritDoc} *
496497498499500501502503504505506
} } } } } finally { lock.release(); } } /** * Set an event channel to inform about updates.
519520521522523524525526527528529
// evict removed item from cache ReadLock lock = acquireReadLock(); try { versionItems.remove(item.getId()); } finally { lock.release(); } } /** * {@inheritDoc}
617618619620621622623624625626627
// evict removed item from cache ReadLock lock = acquireReadLock(); try { versionItems.remove(destroyed.getId()); } finally { lock.release(); } } /** * {@inheritDoc}
237238239240241242243244245246247
265266267268269270271272273274275
} } return item; } } finally { lock.release(); } } /** * {@inheritDoc}
380381382383384385386387388389390