/** * <p> * refresh * </p> * * @see org.apache.jetspeed.cache.file.FileCacheEventListener#refresh(org.apache.jetspeed.cache.file.FileCacheEntry) * @param entry * @throws Exception */ public void refresh( FileCacheEntry entry ) throws Exception { log.debug("Entry is refreshing: " + entry.getFile().getName()); if (entry.getDocument() instanceof Document && ((Document) entry.getDocument()).getPath().endsWith(documentType)) { Document document = (Document) entry.getDocument(); Node parent = ((AbstractNode)document).getParent(false); if (parent instanceof FolderImpl) { Document freshDoc = getDocument(document.getPath(), false); freshDoc.setParent(parent); ((FolderImpl)parent).getAllNodes().add(freshDoc); freshDoc.setPath(document.getPath()); entry.setDocument(freshDoc); } } }