Package org.b3log.solo.sync

Examples of org.b3log.solo.sync.MetaWeblogPost


     * @throws Exception exception
     */
    //@org.testng.annotations.Test
    public void newPost() throws Exception {
        final JSONObject article = getArticle();
        final MetaWeblogPost cnBlogsBlogArticle =
                new MetaWeblogPost(article);

        final String articleId = cnBlogsBlog.newPost(cnBlogsBlogArticle);

        cnBlogsBlog.deletePost(articleId);
    }
View Full Code Here


     * @throws Exception exception
     */
    //@org.testng.annotations.Test
    public void newPost() throws Exception {
        final JSONObject article = getArticle();
        final MetaWeblogPost csdnBlogArticle = new MetaWeblogPost(article);

        final String articleId = csdnBlog.newPost(csdnBlogArticle);

        csdnBlog.deletePost(articleId);
    }
View Full Code Here

            } else {
                final String userName = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_NAME);
                final String userPwd = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_PASSWORD);
                final Post externalArticle = new MetaWeblogPost(article);
                final String articleId = article.getString(Keys.OBJECT_ID);
                LOGGER.log(Level.FINEST,
                           "Getting External article-Solo article relation....");
                final JSONObject externalArticleSoloArticleRelation =
                        externalArticleSoloArticleRepository.getBySoloArticleId(
View Full Code Here

                final String userName = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_NAME);
                final String userPwd = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_PASSWORD);

                final Post post = new MetaWeblogPost(article);
                final MetaWeblog metaWeblog =
                        BlogFactory.getMetaWeblog(externalBloggingSys);
                metaWeblog.setUserName(userName);
                metaWeblog.setUserPassword(userPwd);
                postId = metaWeblog.newPost(post);
                post.setId(postId);

                final JSONObject externalArticleSoloArticleRelation =
                        new JSONObject();
                externalArticleSoloArticleRelation.put(
                        BLOG_SYNC_EXTERNAL_ARTICLE_IMPORTED, true);
View Full Code Here

TOP

Related Classes of org.b3log.solo.sync.MetaWeblogPost

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.