Package cu.ftpd.user.groups

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


    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

    }

    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

TOP

Related Classes of cu.ftpd.user.groups.RemoteGroup

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.