Package cu.ftpd.user.userbases.changetracking

Examples of cu.ftpd.user.userbases.changetracking.UserbaseChange


                        user.removeGroup(groupname);
                    }
                }
            }
            if (propagate) {
                changeTracker.addChange(new UserbaseChange(UserbaseChange.Property.Group, Modification.Remove, groupname));
            }
        }
    }
View Full Code Here


            boolean deleted = userfile.delete();
            // no need to terminate here, the site-command handles that
            leechers.removeAllLeechForUser(username);
            allotments.removeAllAllotmentsForUser(username);
            if (propagate) {
                changeTracker.addChange(new UserbaseChange(UserbaseChange.Property.User, Modification.Remove, username));
            }
        }
    }
View Full Code Here

            if (!users.containsKey(username)) {
                LocalUser user = new LocalUser(username, createHashedPassword(password), this, changeTracker);
                users.put(username, user);
                store(user);
                if (propagate) {
                    changeTracker.addChange(new UserbaseChange(UserbaseChange.Property.User, Modification.Add, username, password));
                }
                return user;
            } else {
                throw new UserExistsException(username);
            }
View Full Code Here

    }

    public Group createGroup(String name, String description, boolean propagate) throws GroupExistsException {
        final Group group = groupManager.createGroup(0, 0, 0, 0, name, description);
        if (propagate) {
            changeTracker.addChange(new UserbaseChange(UserbaseChange.Property.Group, Modification.Add, name, description));
        }
        return group;
    }
View Full Code Here

TOP

Related Classes of cu.ftpd.user.userbases.changetracking.UserbaseChange

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.