/** * @see EntryCollector#getEntries(org.apache.jackrabbit.core.id.NodeId) */ @Override protected Entries getEntries( NodeId nodeId ) throws RepositoryException { Entries entries = getCache().get( nodeId ); if ( entries == null ) { // fetch entries and update the cache NodeImpl n = getNodeById( nodeId ); entries = updateCache( n ); } return entries; }
/** * @see EntryCollector#getEntries(org.apache.jackrabbit.core.NodeImpl) */ @Override protected PentahoEntries getEntries( NodeImpl node ) throws RepositoryException { NodeId nodeId = node.getNodeId(); Entries entries = getCache().get( nodeId ); if ( entries == null ) { // fetch entries and update the cache entries = updateCache( node ); } return entries instanceof PentahoEntries ? (PentahoEntries) entries : new PentahoEntries( entries ); }