Package net.bican.wordpress

Examples of net.bican.wordpress.Page


      WP.deletePage(page.getPage_id(), "true");
    }
    pages = WP.getPages();
    assertNotNull(pages);
    assertEquals(0, pages.size());
    Page page = new Page();
    page.setDescription("deneme");
    String newPageIds = WP.newPage(page, "publish");
    int newPageId = Integer.valueOf(newPageIds).intValue();
    Page pageNow = WP.getPage(newPageId);
    assertNotNull(pageNow);
    assertEquals("deneme", pageNow.getDescription());
  }
View Full Code Here


      WP.deletePost(post.getPostid().intValue(), "true");
    }
    posts = WP.getRecentPosts(100000);
    assertNotNull(posts);
    assertEquals(0, posts.size());
    Page post = new Page();
    post.setDescription("denemepost");
    String newPostIds = WP.newPost(post, true);
    int newPostId = Integer.valueOf(newPostIds).intValue();
    Page postNow = WP.getPost(newPostId);
    assertNotNull(postNow);
    assertEquals("denemepost", postNow.getDescription());
  }
View Full Code Here

        WP.deleteComment(comment.getComment_id());
      }
    }
    comments = WP.getComments(null, null, null, null);
    assertEquals(0, comments.size());
    Page page = new Page();
    page.setDescription("deneme");
    String pg = WP.newPost(page, true);
    Integer commentid = WP.newComment(Integer.valueOf(pg), null,
        "deneme comment", "Can Bican", "http://a.b.c.com", "a@b.c.d");
    assertNotNull(commentid);
    Comment newComment = WP.getComment(commentid);
View Full Code Here

    System.out.println("Here are the pages:");
    for (PageDefinition pageDefinition : pages) {
      System.out.println(pageDefinition.getPage_title());
    }
    System.out.println("Posting a test (draft) page from a previous page...");
    Page recentPost = wp.getRecentPosts(1).get(0);
    recentPost.setTitle("Test Page");
    recentPost.setDescription("Test description");
    String result = wp.newPost(recentPost, false);
    System.out.println("new post page id: " + result);
    System.out.println("\nThat's all for now.");
  }
View Full Code Here

TOP

Related Classes of net.bican.wordpress.Page

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.