Package models.japidsample

Examples of models.japidsample.Post


    Author a = new Author();
    a.name = "作者";
    a.birthDate = new Date();
    a.gender = 'm';

    final Post p = new Post();
    p.setAuthor(a);
    p.setContent("这是一个很好的内容开始和结束都很好. ");
    p.setPostedAt(new Date());
    p.setTitle("测试");

    List<Post> posts = new ArrayList<Post>();

    for (int i = 0; i < 500; i++) {
      posts.add(p);
View Full Code Here


    Author a = new Author();
    a.name = "作者";
    a.birthDate = new Date();
    a.gender = 'm';

    final Post p = new Post();
    p.setAuthor(a);
    p.setContent("这是一个很好的内容开始和结束都很好. ");
    p.setPostedAt(new Date());
    p.setTitle("测试");

    List<Post> posts = new ArrayList<Post>();

    for (int i = 0; i < 5; i++) {
      posts.add(p);
View Full Code Here

 
  /**
   * demo how to composite a page with independent segments with the #{invoke } tag
   */
  public static void composite() {
    Post post = new Post();
    post.title = "test post";
    post.postedAt = new Date();
    post.content = "this is perfect piece of content~!";
   
    Author a = new Author();
    a.name = "me";
    a.birthDate = new Date();
    a.gender = 'm';
   
    post.setAuthor(a);
   
    renderJapid(post);
  }
View Full Code Here

  /**
   * test the japid emailer
   */
 
  public static void email() {
    Post p = new Post();
    p.title = "我自己";
    TestEmailer.emailme(p);
    renderText("mail sent");
  }
View Full Code Here

    List<Post> posts = new ArrayList<Post>();
    Author a = new Author();
    a.name = "冉兵";
    a.birthDate = new Date();
    a.gender = 'M';
    Post p = new Post();
    p.author = a;
    p.content = "long time ago......";
    p.postedAt = new Date();
    p.title = "post 1";
    posts.add(p);
    p = new Post();
    p.author = a;
    p.content = "way too long time ago...";
    p.postedAt = new Date();
    p.title = "post 2";
    posts.add(p);
View Full Code Here

 
  /**
   * demo how to composite a page with independent segments with the #{invoke } tag
   */
  public static void composite() {
    Post post = new Post();
    post.title = "test post";
    post.postedAt = new Date();
    post.content = "this is perfect piece of content~!";
   
    Author a = new Author();
    a.name = "me";
    a.birthDate = new Date();
    a.gender = 'm';
   
    post.setAuthor(a);
   
    renderJapid(post);
  }
View Full Code Here

  /**
   * test the japid emailer
   */
 
  public static void email() {
    Post p = new Post();
    p.title = "我自己";
    TestEmailer.emailme(p);
    renderText("mail sent");
  }
View Full Code Here

    List<Post> posts = new ArrayList<Post>();
    Author a = new Author();
    a.name = "冉兵";
    a.birthDate = new Date();
    a.gender = 'M';
    Post p = new Post();
    p.author = a;
    p.content = "long time ago...";
    p.postedAt = new Date();
    p.title = "post 1";
    posts.add(p);
    p = new Post();
    p.author = a;
    p.content = "way too long time ago...";
    p.postedAt = new Date();
    p.title = "post 2";
    posts.add(p);
View Full Code Here

 
  /**
   * demo how to composite a page with independent segments with the #{invoke } tag
   */
  public static void composite() {
    Post post = new Post();
    post.title = "test post";
    post.postedAt = new Date();
    post.content = "this is perfect piece of content~!";
   
    Author a = new Author();
    a.name = "me";
    a.birthDate = new Date();
    a.gender = 'm';
   
    post.setAuthor(a);
   
    renderJapid(post);
  }
View Full Code Here

  /**
   * test the japid emailer
   */
 
  public static void email() {
    Post p = new Post();
    p.title = "我自己";
    TestEmailer.emailme(p);
    renderText("mail sent");
  }
View Full Code Here

TOP

Related Classes of models.japidsample.Post

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.