Package org.apache.xmlrpc

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


        paramsVector.add(pageid);
        paramsVector.add((Boolean) usersMustExist);

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

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


        paramsVector.add(pageid);
        paramsVector.add((Boolean) usersMustExist);

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

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

        paramsVector.add(date);
        paramsVector.add(pageid);

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

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

        paramsVector.add(date);
        paramsVector.add(pageid);

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

    public boolean isPluginEnabled(ConfluenceServerSettings confSettings, String pluginkey) throws XmlRpcException, IOException {
        XmlRpcClient client = getXMLRPCClient(confSettings);
        String loginToken = getLoginToken(confSettings);
View Full Code Here

        paramsVector.add(loginToken);
        paramsVector.add(pluginkey);

        String api = CONFLUENCE_REMOTE_API_VERSION + "";
        String method = "isPluginEnabled";
        return (Boolean) client.execute(api + "." + method, paramsVector);
    }
   
   
    public boolean addPermissionsToSpace(ConfluenceServerSettings confSettings, Vector<String> permissions, String userOrGroup) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
View Full Code Here

        paramsVector.add(userOrGroup);
        paramsVector.add(confSettings.getSpaceKey());

        XmlRpcClient client = getXMLRPCClient(confSettings);

        Boolean ret = (Boolean) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".addPermissionsToSpace", paramsVector);
        log.debug("assigned permissions to space '" + confSettings.getSpaceKey() + "' for '" + userOrGroup + "'");
        return ret;
    }
}
View Full Code Here

            logger.debug("Executing ping to '" + pingTargetUrl + "' for website '" + websiteUrl + "' (" + website.getName() + ")" + (variantOptions.isEmpty() ? "" : " with variant options " + variantOptions));
        }

        // Send the ping.
        XmlRpcClient client = new XmlRpcClient(pingTargetUrl);
        PingResult pingResult = parseResult(client.execute("weblogUpdates.ping", params));

        if (logger.isDebugEnabled()) logger.debug("Ping result is: " + pingResult);
        return pingResult;
    }
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.