Package org.vosao.entity

Examples of org.vosao.entity.CommentEntity


              + element.attributeValue("publishDate"));
        }
        boolean disabled = Boolean.valueOf(element
            .attributeValue("disabled"));
        String content = element.getText();
        CommentEntity comment = new CommentEntity(name, content,
            publishDate, url, disabled);
        getDaoTaskAdapter().commentSave(comment);
      }
    }
  }
View Full Code Here


    dao = aDao;
  }
 
  public CommentEntity addComment(final String name, final String content,
      final PageEntity page) {
    CommentEntity comment = new CommentEntity(name, content, new Date(),
        page.getFriendlyURL());
    dao.getCommentDao().save(comment);
    return comment;
  }
View Full Code Here

    return comment;
  }
 
  public CommentEntity addComment(final String name, final String content,
      final PageEntity page, final boolean disabled) {
    CommentEntity comment = new CommentEntity(name, content, new Date(),
        page.getFriendlyURL());
    comment.setDisabled(disabled);
    dao.getCommentDao().save(comment);
    return comment;
  }
View Full Code Here

TOP

Related Classes of org.vosao.entity.CommentEntity

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.