1 18 package net.sf.drftpd.master.usermanager; 19 import java.util.Collection ; 20 import java.util.List ; 21 22 import net.sf.drftpd.master.ConnectionManager; 23 24 32 public interface UserManager { 33 34 38 public abstract void init(ConnectionManager mgr); 39 public abstract User create(String username) throws UserFileException; 40 45 public abstract boolean exists(String name); 46 public abstract Collection getAllGroups() throws UserFileException; 47 48 51 public abstract List getAllUsers() throws UserFileException; 52 public abstract Collection getAllUsersByGroup(String group) 53 throws UserFileException; 54 55 56 59 public abstract User getUserByName(String name) 61 throws NoSuchUserException, UserFileException; 62 public User getUserByNameUnchecked(String username) throws NoSuchUserException, UserFileException; 63 public abstract void saveAll() throws UserFileException; 64 65 } 66 | Popular Tags |