Package org.jabusuite.article

Examples of org.jabusuite.article.ArticleText


    public void updateDataset(Article article, JbsUser changeUser) throws EJbsObject {
        logger.debug("Updating article " + article.getId());

        Iterator<ArticleText> it = article.getArticleTexts().iterator();
        while (it.hasNext()) {
            ArticleText text = it.next();
            if (((text.getShortText() == null) || (text.getShortText().equals(""))) && ((text.getLongText() == null) || (text.getLongText().equals("")))) {
                logger.debug("Removing article-text " + text.getId());
                article.getArticleTexts().remove(text);
                manager.remove(text);
            }
        }
View Full Code Here


        logger.debug("Setting texts from article "+article.getId());
      Iterator<ArticleText>it = article.getArticleTexts().iterator();
      if (this.getPositionTexts()==null)
        this.setPositionTexts(new LinkedHashSet<PositionText>());
      while (it.hasNext()) {
        ArticleText articleText = it.next();
        this.setShortText(articleText.getLanguage(), articleText.getShortText());
        this.setLongText(articleText.getLanguage(), articleText.getLongText());
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.jabusuite.article.ArticleText

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.