Package com.jada.content.data

Examples of com.jada.content.data.ContentInfo


 
  public PageHeaderInfo getPageContentInfo() throws Exception {
    PageHeaderInfo pageHeaderInfo = new PageHeaderInfo();
    String contentNaturalKey = getContentKey();
    boolean updateStatistics = false;
    ContentInfo contentInfo = api.getContent(contentNaturalKey, updateStatistics);
    if (contentInfo == null) {
      pageHeaderInfo.setPageTitle(siteName + " - " + getLanguageByValue("Page not found"));
          pageHeaderInfo.setMetaKeywords("");
          pageHeaderInfo.setMetaDescription("");
          return pageHeaderInfo;
    }
   
    pageHeaderInfo.setPageTitle(contentInfo.getPageTitle());
    pageHeaderInfo.setMetaKeywords(contentInfo.getMetaKeywords());
    pageHeaderInfo.setMetaDescription(contentInfo.getMetaDescription());

    return pageHeaderInfo;
  }
View Full Code Here


     */
    @Deprecated
  public String getPageContentTitle() throws Exception {
    String contentNaturalKey = getContentKey();
    boolean updateStatistics = false;
    ContentInfo contentInfo = api.getContent(contentNaturalKey, updateStatistics);
    return siteName + " - " + contentInfo.getPageTitle();
  }
View Full Code Here

  }
 
  public ContentInfo getContent() throws Exception {
    String contentNaturalKey = getContentKey();
    boolean updateStatistics = true;
    ContentInfo contentInfo = api.getContent(contentNaturalKey, updateStatistics);
    return contentInfo;
  }
View Full Code Here

TOP

Related Classes of com.jada.content.data.ContentInfo

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.