Package jease.cms.domain

Examples of jease.cms.domain.News


   */
  public static News[] getSiteNews(Content container) {
    Set<News> news = new HashSet();
    for (Content content : container.getDescendants(Content.class)) {
      if (content.isVisible()) {
        News candidate = null;
        if (content instanceof News) {
          candidate = (News) content;
        }
        if (content instanceof Reference
            && ((Reference) content).getContent() instanceof News) {
          candidate = (News) ((Reference) content).getContent();
        }
        if (content instanceof Folder
            && ((Folder) content).getContent() instanceof News) {
          candidate = (News) ((Folder) content).getContent();
        }
        if (candidate != null && candidate.getDate() != null) {
          news.add(candidate);
        }
      }
    }
    List<News> result = new ArrayList(news);
View Full Code Here

TOP

Related Classes of jease.cms.domain.News

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.