public String getPath() { return backingFolder.getPath(); }
/** * Construct folder reference capturing page manager. * * @param pageManager * @param folder */ public FolderWeakReference(PageManager pageManager, Folder folder) { this.pageManager = pageManager; this.path = folder.getPath(); this.referentFolder = new WeakReference<Folder>(folder); }
public FragmentDefinition getFragmentDefinition(Folder folder, String name) throws PageNotFoundException, NodeException { // perform lookup by path so that cache can be used String fragmentDefinitionPath = folder.getPath() + Folder.PATH_SEPARATOR + name; try { return getFragmentDefinition(fragmentDefinitionPath); } catch (PageNotFoundException pnfe) { throw pnfe; } catch (Exception e) { throw new PageNotFoundException("Fragment definition " + fragmentDefinitionPath + " not found.", e); } }
public Folder getFolder(Folder folder, String name) throws FolderNotFoundException, DocumentException { // perform lookup by path so that cache can be used String folderPath = folder.getPath() + Folder.PATH_SEPARATOR + name; try { return getFolder(folderPath); } catch (FolderNotFoundException fnfe) { throw fnfe; } catch (Exception e) { throw new FolderNotFoundException("Folder " + folderPath + " not found.", e); } }
public DynamicPage getDynamicPage(Folder folder, String name) throws PageNotFoundException, NodeException { // perform lookup by path so that cache can be used String dynamicPagePath = folder.getPath() + Folder.PATH_SEPARATOR + name; try { return getDynamicPage(dynamicPagePath); } catch (PageNotFoundException pnfe) { throw pnfe; } catch (Exception e) { throw new PageNotFoundException("Dynamic page " + dynamicPagePath + " not found.", e); } }
public PageTemplate getPageTemplate(Folder folder, String name) throws PageNotFoundException, NodeException { // perform lookup by path so that cache can be used String pageTemplatePath = folder.getPath() + Folder.PATH_SEPARATOR + name; try { return getPageTemplate(pageTemplatePath); } catch (PageNotFoundException pnfe) { throw pnfe; } catch (Exception e) { throw new PageNotFoundException("Page template " + pageTemplatePath + " not found.", e); } }
public Page getPage(Folder folder, String name) throws PageNotFoundException, NodeException { // perform lookup by path so that cache can be used String pagePath = folder.getPath() + Folder.PATH_SEPARATOR + name; try { return getPage(pagePath); } catch (PageNotFoundException pnfe) { throw pnfe; } catch (Exception e) { throw new PageNotFoundException("Page " + pagePath + " not found.", e); } }
public Link getLink(Folder folder, String name) throws DocumentNotFoundException, NodeException { // perform lookup by path so that cache can be used String linkPath = folder.getPath() + Folder.PATH_SEPARATOR + name; try { return getLink(linkPath); } catch (DocumentNotFoundException dnfe) { throw dnfe; } catch (Exception e) { throw new DocumentNotFoundException("Link " + linkPath + " not found.", e); } }
return; String path = folder.getPath(); if (path == null)
throw new NodeException("Unable to access page templates for folder " + folder.getPath() + ".");
throw new NodeException("Unable to access links for folder " + folder.getPath() + ".");
throw new NodeException("Unable to access pages for folder " + folder.getPath() + ".");
throw new DocumentException("Unable to access folders for folder " + folder.getPath() + ".");
throw new NodeException("Unable to access dynamic pages for folder " + folder.getPath() + ".");
throw new NodeException("Unable to access fragment definition for folder " + folder.getPath() + ".");
entry.setDocument(getFolder(folder.getPath(), false)); Node parentNode = ((AbstractNode)folder).getParent(false); if (parentNode != null)
throw new FolderNotRemovedException("Folder " + folder.getPath() + " not removed.", e);