Returns the navigation builder for this resource.<p>

This will be initialized with this resource as default URI.<p>

@return the navigation builder for this resource
320760
public CmsJspNavBuilder getNavBuilder() {

        if (m_navBuilder == null) {
            m_navBuilder = new CmsJspNavBuilder();
            m_navBuilder.init(m_cms, null, getSitePath());
        }
        return m_navBuilder;
    }
543428
public NlsResourceBundleLocator getResourceBundleLocator() {

    if (this.resourceBundleLocator == null) {
      NlsResourceBundleLocatorImpl impl = new NlsResourceBundleLocatorImpl();
      impl.initialize();
      this.resourceBundleLocator = impl;
    }
    return this.resourceBundleLocator;
  }
1012384
public function getNavigation()
    {
        if ( empty( $this->menuId ) )
        {
            return null;
        }

        return $this->getMenuModel()
                    ->findNavigation( $this->menuId );
    }
877654
public String getFullPath() {

        String path = m_resource.getRootPath();
        if ((m_siteMode != SITE_MODE_ROOT) && (m_cms != null)) {
            String site = getSite();
            if (path.startsWith(site)) {
                path = path.substring(site.length());
            }
        }
        return path;
    }
402879
public String getUrl() {
        if (url == null) {
            RequestHandle request = getRequest();
            url = LinkUtil.getUrl(request, getPath(), request.getSelectors(), null);
        }
        return url;
    }
328382
public Map<String, String> getSitePath() {

        if (m_sitePaths == null) {
            m_sitePaths = CmsCollectionsGenericWrapper.createLazyMap(new Transformer() {

                public Object transform(Object rootPath) {

                    if (rootPath instanceof String) {
                        return getRequestContext().removeSiteRoot((String)rootPath);
                    }
                    return null;
                }
            });
        }
        return m_sitePaths;
    }
883209
public BType getBuilder() {
    if (builder == null) {
      // builder.mergeFrom() on a fresh builder
      // does not create any sub-objects with independent clean/dirty states,
      // therefore setting the builder itself to clean without actually calling
      // build() cannot break any invariants.
      builder = newBuilderForType(message.getDescriptorForType(), this);
      builder.mergeFrom(message); // no-op if message is the default message
      markClean(builder);
    }
    return builder;
  }
954538
public static Gateway createGateway() {
        Gateway gateway = null;
        for (GatewayCreator factory : loader) {
            gateway = factory.createGateway(gateway);
            factory.configureGateway(gateway);
        }

        if (gateway == null) {
            throw new RuntimeException("Failed to load GatewayCreator implementation class.");
        }

        return gateway;
    }
134176
public static function getMenu()
    {
        return (new \Mmi\Navigation\NavigationConfigElement)
            ->setLabel('menu.text.container')
            ->setIcon('fa-align-left')
            ->setUri('#')
            ->addChild((new \Mmi\Navigation\NavigationConfigElement)
                ->setLabel('menu.text.index')
                ->setIcon('fa-table')
                ->setModule('cmsAdmin')
                ->setController('text'))
            ->addChild((new \Mmi\Navigation\NavigationConfigElement)
                ->setLabel('menu.text.edit')
                ->setIcon('fa-plus')
                ->setModule('cmsAdmin')
                ->setController('text')
                ->setAction('edit'));
    }
474943
public CmsResource getResource() {

        return new CmsResource(
            m_base.getStructureId(),
            m_base.getResourceId(),
            m_rootPath,
            m_typeId,
            m_isFolder,
            m_base.getFlags(),
            m_base.getProjectLastModified(),
            m_base.getState(),
            m_base.getDateCreated(),
            m_base.getUserCreated(),
            m_base.getDateLastModified(),
            m_base.getUserLastModified(),
            m_base.getDateReleased(),
            m_base.getDateExpired(),
            m_base.getSiblingCount(),
            m_length,
            m_base.getDateContent(),
            m_base.getVersion());
    }
721220
public List<CmsJspNavElement> getNavigationForFolder(String folder) {

        return getNavigationForFolder(folder, Visibility.navigation, CmsResourceFilter.DEFAULT);
    }
89904
public static function getMenu()
    {
        return (new \Mmi\Navigation\NavigationConfigElement)
            ->setId('admin-menu')
            ->setLabel('menu.index.index')
            ->setModule('cmsAdmin')
            ->addChild((new \Mmi\Navigation\NavigationConfigElement)
                ->setModule('cmsAdmin')
                ->setDisabled()
                ->setAction('password')
                ->setLabel('menu.index.password'))
            ->addChild((new \Mmi\Navigation\NavigationConfigElement)
                ->setModule('cmsAdmin')
                ->setAction('login')
                ->setIcon('fa-unlock-alt')
                ->setLabel('menu.index.login')
                ->setDisabled())
            ->addChild(
                (new \Mmi\Navigation\NavigationConfigElement)
                    ->setLabel('menu.container')
                    ->setIcon('fa-cog')
                    ->setUri('#')
                    ->addChild(NavPart\NavPartCategory::getMenu())
                    ->addChild(NavPart\NavPartText::getMenu())
                    ->addChild(NavPart\NavPartMail::getMenu())
                    ->addChild(NavPart\NavPartStat::getMenu())
                    ->addChild(NavPart\NavPartContact::getMenu())
                    ->addChild(NavPart\NavPartAuth::getMenu())
                    ->addChild(NavPart\NavPartSystem::getMenu())
            );
    }
467159
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;
        }
    }
888711
public Resource build() {
        Resource resource = null;
        if (_url != null) {
            resource = _kieResources.newUrlResource(_url);
            if (resource != null) {
                if (_resourceType != null) {
                    resource.setResourceType(_resourceType);
                }
                if (_resourceConfiguration != null) {
                    resource.setConfiguration(_resourceConfiguration);
                }
            }
        }
        return resource;
    }
925247
private void navigateToFragment() {

        String fragment = getPage().getUriFragment();
        if (fragment != null) {
            getNavigator().navigateTo(fragment);
        } else {
            CmsObject cms = getCmsObject();
            String target = CmsLoginHelper.getStartView(cms);
            if (target != null) {
                if (target.startsWith("#")) {
                    getNavigator().navigateTo(target.substring(1));
                } else {
                    Page.getCurrent().setLocation(OpenCms.getLinkManager().substituteLink(cms, target));
                }
            } else {
                showHome();
            }
        }
    }
359296
public <T> T navigation(Class<? extends T> service) {
        return _ARouter.getInstance().navigation(service);
    }
887803
public ResourceInformationProvider getResourceInformationBuilder() {
        if (resourceInformationProvider == null) {
            resourceInformationProvider =
                    new CombinedResourceInformationProvider(
                            Prioritizable.prioritze(aggregatedModule.getResourceInformationProviders()));
            InformationBuilder informationBuilder = new DefaultInformationBuilder(typeParser);
            DefaultResourceInformationProviderContext context =
                    new DefaultResourceInformationProviderContext(resourceInformationProvider, informationBuilder, typeParser,
                            objectMapper);
            resourceInformationProvider.init(context);
        }
        return resourceInformationProvider;
    }