Package org.apache.xmlrpc

Examples of org.apache.xmlrpc.XmlRpcClient$Worker


    public UserInformation getUserInformation(ConfluenceServerSettings confSettings, String pUsername) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Hashtable info = null;
        info = (Hashtable) (client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getUserInformation", paramsVector));
        return UserInformation.create(info);
    }
View Full Code Here


    public List<String> getActiveUsers(ConfluenceServerSettings confSettings, boolean viewAll) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(viewAll);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Vector<String> usersList = null;
        return (Vector<String>)(client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getActiveUsers", paramsVector));
    }
View Full Code Here

        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUser.getUserParams());
        paramsVector.add(pPassword);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        client.execute(CONFLUENCE_REMOTE_API_VERSION + ".addUser", paramsVector);
    }
View Full Code Here

    public boolean hasUser(ConfluenceServerSettings confSettings, String pUsername) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Boolean userExists = false;
        userExists = (Boolean) (client.execute(CONFLUENCE_REMOTE_API_VERSION + ".hasUser", paramsVector));
        return userExists.booleanValue();
    }
View Full Code Here

    public boolean hasGroup(ConfluenceServerSettings confSettings, String pGroupname) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pGroupname);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Boolean groupExists = false;
        groupExists = (Boolean) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".hasGroup", paramsVector);
        return groupExists.booleanValue();
    }
View Full Code Here

    public void addGroup(ConfluenceServerSettings confSettings, String pGroupname) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pGroupname);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        client.execute(CONFLUENCE_REMOTE_API_VERSION + ".addGroup", paramsVector);
    }
View Full Code Here

        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        paramsVector.add(pGroupname);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        client.execute(CONFLUENCE_REMOTE_API_VERSION + ".addUserToGroup", paramsVector);
    }
View Full Code Here

        Vector paramsVector = new Vector();
        needNewLogin();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        Vector usergroups = null;
        usergroups = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getUserGroups", paramsVector);
        return usergroups;
    }
View Full Code Here

    public boolean deactivateUser(ConfluenceServerSettings confSettings, String pUsername) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        return (Boolean) (client.execute(CONFLUENCE_REMOTE_API_VERSION + ".deactivateUser", paramsVector));
    }
View Full Code Here

    public boolean reactivateUser(ConfluenceServerSettings confSettings, String pUsername) throws IOException, XmlRpcException {
        Vector paramsVector = new Vector();
        String loginToken = getLoginToken(confSettings);
        paramsVector.add(loginToken);
        paramsVector.add(pUsername);
        XmlRpcClient client = getXMLRPCClient(confSettings);
        return (Boolean) (client.execute(CONFLUENCE_REMOTE_API_VERSION + ".reactivateUser", paramsVector));
    }
View Full Code Here

TOP

Related Classes of org.apache.xmlrpc.XmlRpcClient$Worker

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.