1 package org.apache.fulcrum.security; 2 3 56 57 import org.apache.fulcrum.security.entity.User; 58 import org.apache.fulcrum.security.util.DataBackendException; 59 import org.apache.fulcrum.security.util.UnknownEntityException; 60 import org.apache.fulcrum.security.util.EntityExistsException; 61 import org.apache.fulcrum.security.util.PasswordMismatchException; 62 63 import org.apache.torque.util.Criteria; 64 65 76 public interface UserManager 77 { 78 87 boolean accountExists(User user) 88 throws DataBackendException; 89 90 99 boolean accountExists(String userName) 100 throws DataBackendException; 101 102 113 User retrieve(String username) 114 throws UnknownEntityException, DataBackendException; 115 116 130 User[] retrieve(Criteria criteria) 131 throws DataBackendException; 132 133 149 User retrieve(String username, String password) 150 throws PasswordMismatchException, UnknownEntityException, 151 DataBackendException; 152 153 163 void store(User user) 164 throws UnknownEntityException, DataBackendException; 165 166 180 void authenticate(User user, String password) 181 throws PasswordMismatchException, UnknownEntityException, 182 DataBackendException; 183 184 193 void createAccount(User user, String password) 194 throws EntityExistsException, DataBackendException; 195 196 203 void removeAccount(User user) 204 throws UnknownEntityException, DataBackendException; 205 218 void changePassword(User user, String oldPassword, String newPassword) 219 throws PasswordMismatchException, UnknownEntityException, 220 DataBackendException; 221 222 237 void forcePassword(User user, String password) 238 throws UnknownEntityException, DataBackendException; 239 } 240 | Popular Tags |