/** * This method builds a complete site navigation tree with entries of all branches.<p> * * @see #getSiteNavigation(CmsObject, String, int) * * @return ArrayList of CmsJspNavElement, in depth first order. */ public List getSiteNavigation() { return getSiteNavigation(m_cms, "/", -1); }
/** * This method builds a complete site navigation tree with entries of all branches.<p> * * @see #getSiteNavigation(String, int) * * @return list of navigation elements, in depth first order */ public List<CmsJspNavElement> getSiteNavigation() { return getSiteNavigation("/", -1); }
/** * This method builds a complete navigation tree with entries of all branches * from the specified folder.<p> * * @see #getSiteNavigation(CmsObject, String, int) * * @param folder folder the root folder of the navigation tree. * @param endLevel the end level of the navigation. * @return ArrayList of CmsJspNavElement, in depth first order. */ public List getSiteNavigation(String folder, int endLevel) { return getSiteNavigation(m_cms, folder, endLevel); }
/** * This method builds a complete navigation tree with entries of all branches * from the specified folder.<p> * * For an unlimited depth of the navigation (i.e. no <code>endLevel</code>), * set the <code>endLevel</code> to a value < 0.<p> * * * @param cms the current CMS context * @param folder the root folder of the navigation tree * @param endLevel the end level of the navigation * * @return list of navigation elements, in depth first order * * @deprecated use {@link #getNavigationForResource(String)} instead */ @Deprecated public static List<CmsJspNavElement> getSiteNavigation(CmsObject cms, String folder, int endLevel) { return new CmsJspNavBuilder(cms).getSiteNavigation(folder, endLevel); }
/** * Returns a string containing the navigation created by using the internal members.<p> * * The navigation is a nested html list. <p> * * @return a string containing the navigation created by using the internal members */ public String createNavigation() { StringBuffer buffer = new StringBuffer(2048); int endlevel = calculateEndLevel(); String spaces = getSpaces((endlevel - m_depth) * 2); if (m_navRootPath != null) { buffer.append("\n").append(spaces).append("<p>\n"); buffer.append(spaces).append(" <ul>\n"); List navElements = m_jsp.getNavigation().getSiteNavigation(m_navRootPath, endlevel); if (navElements.size() > 0) { createNavigationInternal(buffer, navElements); } buffer.append(spaces).append(" </ul>\n"); buffer.append(spaces).append("</p>"); return buffer.toString(); } else { CmsIllegalArgumentException ex = new CmsIllegalArgumentException(Messages.get().container( Messages.GUI_HELP_ERR_SITEMAP_MISSING_PARAM_1, "navRootPath")); throw ex; } }
/** * Returns a string containing the navigation created by using the internal members.<p> * * The navigation is a nested html list. <p> * * @return a string containing the navigation created by using the internal members */ public String createNavigation() { StringBuffer buffer = new StringBuffer(2048); int endlevel = calculateEndLevel(); String spaces = getSpaces((endlevel - m_depth) * 2); if (m_navRootPath != null) { buffer.append("\n").append(spaces).append("<p>\n"); buffer.append(spaces).append(" <ul>\n"); List<CmsJspNavElement> navElements = m_jsp.getNavigation().getSiteNavigation(m_navRootPath, endlevel); if (navElements.size() > 0) { createNavigationInternal(buffer, navElements); } buffer.append(spaces).append(" </ul>\n"); buffer.append(spaces).append("</p>"); return buffer.toString(); } else { CmsIllegalArgumentException ex = new CmsIllegalArgumentException( Messages.get().container(Messages.GUI_HELP_ERR_SITEMAP_MISSING_PARAM_1, "navRootPath")); throw ex; } }
List subnav = getSiteNavigation(cms, ne.getResourceName(), endLevel);
LOG.info(e.getLocalizedMessage(), e); List<CmsJspNavElement> navElements = navBuilder.getSiteNavigation(m_baseFolderSitePath, -1); for (CmsJspNavElement navElement : navElements) { CmsResource navResource = navElement.getResource();
List<CmsJspNavElement> subnav = getSiteNavigation(m_cms.getSitePath(ne.getResource()), endLevel);
case forSite: if (m_resource == null) { m_items = m_builder.getSiteNavigation(); } else { m_items = m_builder.getSiteNavigation(m_resource, m_endLevel);