Package org.infoglue.deliver.applications.databeans

Examples of org.infoglue.deliver.applications.databeans.WebPage


        while(i.hasNext())
        {
            SiteNodeVO siteNodeVO = (SiteNodeVO)i.next();
            try
          {
            WebPage webPage = new WebPage();           
            webPage.setSiteNodeId(siteNodeVO.getSiteNodeId());
            webPage.setLanguageId(this.languageId);
            webPage.setContentId(null);
            webPage.setNavigationTitle(this.nodeDeliveryController.getPageNavigationTitle(getDatabase(), this.getPrincipal(), siteNodeVO.getSiteNodeId(), this.languageId, null, META_INFO_BINDING_NAME, NAV_TITLE_ATTRIBUTE_NAME, USE_LANGUAGE_FALLBACK, this.deliveryContext, escapeHTML));
            webPage.setMetaInfoContentId(this.nodeDeliveryController.getMetaInfoContentId(getDatabase(), this.getPrincipal(), siteNodeVO.getSiteNodeId(), META_INFO_BINDING_NAME, USE_INHERITANCE, this.deliveryContext));
            webPage.setUrl(this.nodeDeliveryController.getPageUrl(getDatabase(), this.getPrincipal(), siteNodeVO.getSiteNodeId(), this.languageId, null, this.deliveryContext));
            pages.add(webPage);
          }
          catch(Exception e)
          {
              logger.info("An error occurred when looking up one of the related pages:" + e.getMessage(), e);
View Full Code Here


  {
    List boundPages = super.getBoundPages(structureBindningName);
    Iterator i = boundPages.iterator();
    while(i.hasNext())
    {
      WebPage webPage = (WebPage)i.next();
      Integer contentId = super.getContentId(webPage.getSiteNodeId(), META_INFO_BINDING_NAME);
      String navigationTitle = decorateTag(contentId, this.getLanguageId(), NAV_TITLE_ATTRIBUTE_NAME, webPage.getNavigationTitle());
      webPage.setNavigationTitle(navigationTitle);
    }
   
    return boundPages;
  }
View Full Code Here

  {
    List boundPages = super.getBoundPages(siteNodeId, structureBindningName);
    Iterator i = boundPages.iterator();
    while(i.hasNext())
    {
      WebPage webPage = (WebPage)i.next();
      Integer contentId = super.getContentId(webPage.getSiteNodeId(), META_INFO_BINDING_NAME);
      String navigationTitle = decorateTag(contentId, this.getLanguageId(), NAV_TITLE_ATTRIBUTE_NAME, webPage.getNavigationTitle());
      webPage.setNavigationTitle(navigationTitle);
    }
   
    return boundPages;
  }
View Full Code Here

    return getBoundPage(propertyName, useInheritance, useRepositoryInheritance, this.useStructureInheritance);
  }

  public WebPage getBoundPage(String propertyName, boolean useInheritance, boolean useRepositoryInheritance, boolean useStructureInheritance)
  {
    WebPage webPage = null;
   
    Map property = getInheritedComponentProperty(this.infoGlueComponent, propertyName, useInheritance, useRepositoryInheritance, useStructureInheritance);
    webPage = getBoundPage(property);

    return webPage;
View Full Code Here

        ComponentBinding componentBinding = bindingsIterator.next();
        Integer siteNodeId = componentBinding.getEntityId();
        SiteNodeVO siteNode = templateController.getSiteNode(siteNodeId);
        if(siteNode != null && !siteNode.getIsDeleted())
        {
          WebPage webPage = new WebPage();         
          webPage.setSiteNodeId(siteNodeId);
          webPage.setLanguageId(templateController.getLanguageId());
          webPage.setContentId(null);
          webPage.setNavigationTitle(getPageNavTitle(siteNodeId));
          webPage.setMetaInfoContentId(siteNode.getMetaInfoContentId());
          webPage.setUrl(getPageUrl(siteNodeId));
          pages.add(webPage);
        }
      }
    }
View Full Code Here

    return pages;
  }

  public WebPage getBoundPage(Map property)
  {
    WebPage webPage = null;

    if(property != null)
    { 
        List<ComponentBinding> bindings = (List<ComponentBinding>)property.get("bindings");
      Iterator<ComponentBinding> bindingsIterator = bindings.iterator();
      if(bindingsIterator.hasNext())
      {
        webPage = new WebPage();
        ComponentBinding componentBinding = bindingsIterator.next();
        Integer siteNodeId = componentBinding.getEntityId();
        SiteNodeVO siteNode = templateController.getSiteNode(siteNodeId);
        if(siteNode != null && !siteNode.getIsDeleted())
        {
          webPage.setSiteNodeId(siteNodeId);
          webPage.setLanguageId(templateController.getLanguageId());
          webPage.setContentId(null);
          webPage.setNavigationTitle(getPageNavTitle(siteNodeId));
          webPage.setMetaInfoContentId(siteNode.getMetaInfoContentId());
          webPage.setUrl(getPageUrl(siteNodeId));
        }
      }
    }

    return webPage;
View Full Code Here

TOP

Related Classes of org.infoglue.deliver.applications.databeans.WebPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.