Examples of addGadminForGroup()


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

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

            } 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

Examples of cu.ftpd.user.userbases.local.LocalUser.addGadminForGroup()

                } else if (line.startsWith("GROUP")) {
                    String[] groupdata = line.substring(5).trim().split(" ", 2);
                    final String group = groupdata[0].trim();
                    user.addGroup(group);
                    if ("1".equals(groupdata[1].trim())) {
                        user.addGadminForGroup(group, false);
                    }
                    if (!hasPrimaryGroupSet) {
                        hasPrimaryGroupSet = true;
                        user.setPrimaryGroup(group, false);
                    }
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.