protected boolean existsNodeName(final HippoNode folderNode, final String nodeName) throws RepositoryException { return folderNode.hasNode(nodeName); }
/** * Get or create folder for classificationType.LIST. * * @param parent parent folder in which the list-based folder is to be found/created. * @param list list-based name of the folder * @param create flag indicating whether the folder should be created if it doesn't exist * @return node representing the list-based folder * @throws java.rmi.RemoteException for unexpected errors * @throws javax.jcr.RepositoryException for unexpected errors * @throws org.hippoecm.repository.api.WorkflowException for unexpected errors * * @deprecated use the getFolderPath and getFolder methods instead. */ @Deprecated protected HippoNode getListFolder(HippoNode parent, String list, boolean create) throws RemoteException, RepositoryException, WorkflowException { String listEncoded = getNodeNameCodec().encode(list); HippoNode resultParent = parent; if (resultParent.hasNode(listEncoded)) { resultParent = (HippoNode) resultParent.getNode(listEncoded); } else { if (create) { resultParent = createFolder(resultParent, listEncoded); } else { return null; } } return resultParent; }