Package cu.ftpd.user

Examples of cu.ftpd.user.User.addGadminForGroup()


            try {
                Group g = ServiceManager.getServices().getUserbase().getGroup(parameterList[2]);
                User u = ServiceManager.getServices().getUserbase().getUser(parameterList[1]);
                if (add) {
                    u.addGroup(g.getName()); // must be a member of the group you are adminning
                    u.addGadminForGroup(g.getName());
                } else {
                    u.removeGadminForGroup(g.getName());
                }
                connection.respond("200 Operation completed successfully.");
            } catch (NoSuchGroupException e) {
View Full Code Here


            } else if ("addip".equals(property)) {
                user.addIp(value);
            } else if ("delip".equals(property)) {
                user.delIp(value);
            } else if ("addgadminforgroup".equals(property)) {
                user.addGadminForGroup(value);
            } else if ("removegadminforgroup".equals(property)) {
                user.removeGadminForGroup(value);
            } else if ("hidden".equals(property)) {
                user.setHidden(Boolean.parseBoolean(value));
            } else if ("password".equals(property)) {
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.