Package cu.ftpd.user.userbases.remote

Examples of cu.ftpd.user.userbases.remote.RemoteUser



    public User getUser(String username) throws NoSuchUserException {
        try {
            if (rmi.getBoolean("userExists", username, null)) {
                return new RemoteUser(username, this);
            } else {
                // this will be thrown anyway, but what the heck...
                throw new NoSuchUserException(username);
            }
        } catch (RemoteException e) {
View Full Code Here


    public User addUser(String username, String password) throws UserExistsException {
        String user;
        try {
            user = rmi.addUser(username, password);
            // otherwise we return a local user, and that's bad
            return new RemoteUser(user, this);
        } catch (RemoteException e) {
            System.err.println(e.getMessage()); reinitialize();
            return addUser(username, password);
        }
    }
View Full Code Here

    public User gAddUser(String groupname, String username, String password, boolean checkSpace) throws UserExistsException, NoSuchGroupException, GroupLimitReachedException {
        String user;
        try {
            user = rmi.gAddUser(groupname, username, password, checkSpace);
            // otherwise we return a local user, and that's bad
            return new RemoteUser(user, this);
        } catch (RemoteException e) {
            System.err.println(e.getMessage()); reinitialize();
            return gAddUser(groupname, username, password, checkSpace);
        }
    }
View Full Code Here

        // 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.
        LinkedList<String> usernames = (LinkedList<String>)getCollection(null, "users");
        HashMap<String, User> users = new HashMap<String, User>();
        for (String username : usernames) {
            users.put(username, new RemoteUser(username, this));
        }
        return users;
/*
        try {
            return rmi.getUsers();
View Full Code Here

TOP

Related Classes of cu.ftpd.user.userbases.remote.RemoteUser

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.