Examples of RemoteGroup


Examples of cu.ftpd.user.groups.RemoteGroup

        // NOTE: for this return the REAL set of users.
        // since this is (so far) only called by Userbase.getUsers(), it's more efficient to transfer the whole structure in one go, than to subrequest userinfo for each user.
        List<String> groupnames = (List<String>)getCollection(null, "allgroups");
        Map<String, Group> groups = new HashMap<>();
        for (String groupname : groupnames) {
            groups.put(groupname, new RemoteGroup(groupname, this));
        }
        return groups;
    }
View Full Code Here

Examples of cu.ftpd.user.groups.RemoteGroup

    public Group createGroup(String name, String description) throws GroupExistsException {
        try {
            Group g = rmi.createGroup(name, description);
            // otherwise we get a group of the wrong type
            return new RemoteGroup(g.getName(), this);
        } catch (RemoteException e) {
            System.err.println(e.getMessage()); reinitialize();
            return createGroup(name, description);
        }
    }
View Full Code Here

Examples of cu.ftpd.user.groups.RemoteGroup

    }

    public Group getGroup(String name) throws NoSuchGroupException {
        try {
            if (rmi.getGroup(name) != null) {
                return new RemoteGroup(name, this);
            } else {
                // this will never be thrown, since the if-statement causes it to be thrown first
                throw new NoSuchGroupException(name);
            }
        } catch (RemoteException e) {
View Full Code Here

Examples of org.swift.common.soap.jira.RemoteGroup

            ExampleClient ex = new ExampleClient(args[0], args[1], args[2]);

            System.out.println("Connected ok.");
            JiraSoapService soapy = ex.getJiraSOAPService();
            String token = ex.getToken();
            RemoteGroup remoteGroup = soapy.getGroup(token, "jira-users");

            System.out.println("Invoked ok, found " + remoteGroup.getUsers().length + " users");
            RemoteUser[] users = remoteGroup.getUsers();
            for (RemoteUser user : users) {
                System.out.println(user.getName() + " - " + user.getEmail());
            }
            System.out.println("Completed.");
        } else {
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.