Package org.apache.xmlrpc

Examples of org.apache.xmlrpc.XmlRpcClient.execute()


        paramsVector.add(pageName.trim());

        Hashtable pageHt = null;

        XmlRpcClient client = getXMLRPCClient(confSettings);
        pageHt = (Hashtable) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getPage", paramsVector);

        PageForXmlRpc pageForXmlRpc = new PageForXmlRpc();
        pageForXmlRpc.setId((String) pageHt.get("id"));
        pageForXmlRpc.setSpace((String) pageHt.get("space"));
        pageForXmlRpc.setParentId((String) pageHt.get("parentId"));
View Full Code Here


        paramsVector.add(loginToken);
        paramsVector.add(pageId);

        Vector labelsOfPage = null;
        XmlRpcClient client = getXMLRPCClient(confSettings);
        labelsOfPage = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getLabelsById", paramsVector);
        List<String> retLabels = new ArrayList<String>();
        for (int i = 0; i < labelsOfPage.size(); i++) {
             Hashtable ht = (Hashtable) labelsOfPage.elementAt(i);
            String label = (Stringht.get("name");
            retLabels.add(label);
View Full Code Here

        paramsVector.add(loginToken);
        paramsVector.add(labels);
        paramsVector.add(pageId);

        XmlRpcClient client = getXMLRPCClient(confSettings);
        client.execute(CONFLUENCE_REMOTE_API_VERSION + ".addLabelByName", paramsVector);
    }

    /**
     * adds labels to a Confluence ContentEntityObject
     *
 
View Full Code Here

        String method = "addLabelByName";
        String api = CONFLUENCE_REMOTE_API_VERSION + "";
        String completeMethod = api + "." + method;

        boolean result = (Boolean) client.execute(completeMethod, paramsVector);
        return result;
    }

    public CommentForXmlRpc addComment(ConfluenceServerSettings confSettings, CommentForXmlRpc comment) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
View Full Code Here

        paramsVector.add(comment.getCommentParams());

        XmlRpcClient client = getXMLRPCClient(confSettings);

        CommentForXmlRpc retcomment = new CommentForXmlRpc();
        retcomment.setCommentParams((Hashtable<String, String>) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".addComment", paramsVector));
        log.debug("comment written " + retcomment.getTitle());
        return retcomment;
    }

    /**
 
View Full Code Here

        paramsVector.add(spaceKey);
        paramsVector.add(pageId);
        paramsVector.add(content);
        XmlRpcClient client = getXMLRPCClient(confServer);
        Hashtable page = null;
        String renderedContent = (String) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".renderContent", paramsVector);
        return renderedContent;
    }


    // start WebDAV related methods
View Full Code Here

        String method = "movePage";
        String api = CONFLUENCE_REMOTE_API_VERSION + "";
        String completeMethod = api + "." + method;

        return (Boolean) client.execute(completeMethod, paramsVector);
    }


    public String convertWikiToStorageFormat(ConfluenceServerSettings confSettings, String markup) throws XmlRpcException, IOException {
      Vector paramsVector = new Vector();
View Full Code Here

        String method = "convertWikiToStorageFormat";
        String api = CONFLUENCE_REMOTE_API_VERSION + "";
        String completeMethod = api + "." + method;

        return (String) client.execute(completeMethod, paramsVector);
    }
   
    /* UDMF methods */

    String udmfpluginkey = "com.steepdevelopment.confluence.udmf";
View Full Code Here

        paramsVector.add(username);
        paramsVector.add(pageid);

        String api = "udmf";
        String method = "setCreator";
        return (String) client.execute(api + "." + method, paramsVector);
    }

    public String setLastModifier(ConfluenceServerSettings confSettings, String username, String pageid) throws XmlRpcException, IOException {
        if (!isPluginEnabled(confSettings, udmfpluginkey)) {
            throw new IllegalStateException("UDMF plugin not installed or enabled.");
View Full Code Here

        paramsVector.add(username);
        paramsVector.add(pageid);

        String api = "udmf";
        String method = "setLastModifier";
        return (String) client.execute(api + "." + method, paramsVector);

    }

    public String setCreator(ConfluenceServerSettings confSettings, String username, String pageid, boolean usersMustExist) throws XmlRpcException, IOException {
        if (!isPluginEnabled(confSettings, udmfpluginkey)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.