/** * <p> * getNodeFolder - get folder implementation associated with specifed path * </p> * * @param nodePath * @return folder impl instance * @throws NodeException * @throws InvalidFolderException * @throws FolderNotFoundException */ private FolderImpl getNodeFolder(String nodePath) throws NodeException, InvalidFolderException, FolderNotFoundException { int folderIndex = nodePath.lastIndexOf(Folder.PATH_SEPARATOR); if (folderIndex > 0) { return (FolderImpl) folderHandler.getFolder(nodePath.substring(0, folderIndex)); } return (FolderImpl) folderHandler.getFolder(Folder.PATH_SEPARATOR); }
public void shutdown() { // propagate to super super.shutdown(); // disconnect cache listener fileCache.removeListener(this); // propagate to handlers handlerFactory.shutdown(); folderHandler.shutdown(); }
String[] nodeNames = folderHandler.listAll(getPath()); for (int i = 0; i < nodeNames.length; i++) if (!folderHandler.isFolder(full)) node = folderHandler.getFolder(getPath() + nodeNames[i]); if (!folderHandler.isFolder(full)) node = folderHandler.getFolder(getPath() + PATH_SEPARATOR + nodeNames[i]);
folderHandler.removeFolder(folder);
folderHandler.updateFolder(folder);
/** * <p> * getFolder * </p> * * @see org.apache.jetspeed.page.PageManager#getFolder(java.lang.String) * @param folderPath * @return folder instance * @throws FolderNotFoundException * @throws NodeException * @throws InvalidFolderException */ public Folder getFolder(String folderPath) throws FolderNotFoundException, InvalidFolderException, NodeException { // get folder and check access before returning Folder folder = folderHandler.getFolder(folderPath); folder.checkAccess(JetspeedActions.VIEW); return folder; }