1 12 13 package com.openedit.users; 14 15 import java.util.Collection ; 16 import java.util.List ; 17 import java.util.Map ; 18 19 import com.openedit.hittracker.HitTracker; 20 import com.openedit.users.filesystem.PermissionsManager; 21 22 23 28 public interface UserManager 29 { 30 36 List getPermissions() throws UserManagerException; 37 38 List getSystemPermissionGroups(); 39 40 49 Group getGroup(String inGroupName) throws UserManagerException; 50 51 58 Collection getGroups(); 59 60 69 User getUser(String inUserName) throws UserManagerException; 70 71 78 HitTracker getUsers(); 79 80 90 boolean authenticate(User inUser, String inPassword) 91 throws UserManagerException; 92 93 103 Group createGroup(String inGroupName) throws UserManagerException; 104 105 116 User createUser(String inUserName, String inPassword) 117 throws UserManagerException; 118 119 126 void deleteGroup(Group inGroup) throws UserManagerException; 127 128 135 void deleteUser(User inUser) throws UserManagerException; 136 137 144 public void deleteGroups(List inGroups) throws UserManagerException; 145 146 153 public void deleteUsers(List inUsers) throws UserManagerException; 154 155 156 160 public User getUserByEmail(String emailaddress) throws UserManagerException; 161 162 163 169 public HitTracker findUser( String inQuery ) throws UserManagerException; 170 171 176 void saveUser( User inUser ); 177 178 183 void saveGroup( Group inGroup ); 184 185 HitTracker getUsersInGroup(Group inGroup); 186 187 HitTracker getUsersInGroup(String inString); 188 189 void setAuthenticator(Authenticator inAuthen); 190 191 Authenticator getAuthenticator(); 192 193 public Map getUserListeners(); 194 195 public void addUserListener( UserListener inListener ); 196 197 public void logout(User inUser); 198 199 public PermissionsManager getPermissionsManager(); 200 201 User createGuestUser(String inAccount, String inPassword, String inGroupname); 202 203 204 } 205 | Popular Tags |