Package org.vosao.business.page.impl

Examples of org.vosao.business.page.impl.StructurePageRenderDecorator


    PageEntity page = getDao().getPageDao().getByUrl(path);
    if (page != null) {
      if (field != null) {
        if (page.isStructured()
          && isStructureFieldExists(page, field)) {
          StructurePageRenderDecorator pageDecorator =
            (StructurePageRenderDecorator) getBusiness()
              .getPageBusiness().createPageRenderDecorator(
                  page, aLanguageCode);
          String content = pageDecorator.getContentMap().get(field);
          return content != null ? content : "";
        }
      }
      return "";
    }
View Full Code Here


    if (page.isSimple()) {
      return new SimplePageRenderDecorator(page, languageCode,
          getDao(), this, getSystemService());
    }
    if (page.isStructured()) {
      return new StructurePageRenderDecorator(page, languageCode, null,
          getDao(), this, getSystemService());
    }
    logger.error("Wrong page type " + page.getTitle());
    return null;
  }
View Full Code Here

  @Override 
  public PageRenderDecorator createStructuredPageRenderDecorator(
      final PageEntity page, final String languageCode,
      StructureTemplateEntity template) {
    if (page.isStructured()) {
      return new StructurePageRenderDecorator(page, languageCode,
          template, getDao(), this, getSystemService());
    }
    else {
      logger.error("Wrong page type " + page.getTitle());
      return null;
View Full Code Here

TOP

Related Classes of org.vosao.business.page.impl.StructurePageRenderDecorator

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.