1 package org.apache.fulcrum.security.impl.passive; 2 3 56 57 import org.apache.fulcrum.security.entity.User; 58 59 import org.apache.torque.util.Criteria; 60 import org.apache.fulcrum.security.util.DataBackendException; 61 import org.apache.fulcrum.security.util.UnknownEntityException; 62 import org.apache.fulcrum.security.util.EntityExistsException; 63 import org.apache.fulcrum.security.util.PasswordMismatchException; 64 65 import org.apache.fulcrum.security.UserManager; 66 67 77 public class PassiveUserManager implements UserManager 78 { 79 88 public boolean accountExists(User user) 89 throws DataBackendException 90 { 91 throw new DataBackendException("PassiveUserManager knows no users"); 92 } 93 94 103 public boolean accountExists(String userName) 104 throws DataBackendException 105 { 106 throw new DataBackendException("PassiveUserManager knows no users"); 107 } 108 109 120 public User retrieve(String username) 121 throws UnknownEntityException, DataBackendException 122 { 123 throw new DataBackendException("PassiveUserManager knows no users"); 124 } 125 126 140 public User[] retrieve(Criteria criteria) 141 throws DataBackendException 142 { 143 throw new DataBackendException("PassiveUserManager knows no users"); 144 } 145 146 162 public User retrieve(String username, String password) 163 throws PasswordMismatchException, UnknownEntityException, 164 DataBackendException 165 { 166 throw new DataBackendException("PassiveUserManager knows no users"); 167 } 168 169 179 public void store(User user) 180 throws UnknownEntityException, DataBackendException 181 { 182 throw new DataBackendException("PassiveUserManager does not support saving user data"); 183 } 184 185 199 public void authenticate(User user, String password) 200 throws PasswordMismatchException, UnknownEntityException, 201 DataBackendException 202 { 203 throw new DataBackendException("PassiveUserManager knows no users"); 204 } 205 206 215 public void createAccount(User user, String password) 216 throws EntityExistsException, DataBackendException 217 { 218 throw new DataBackendException("PassiveUserManager does not support creating accounts"); 219 } 220 221 228 public void removeAccount(User user) 229 throws UnknownEntityException, DataBackendException 230 { 231 throw new DataBackendException("PassiveUserManager does not support removing accounts"); 232 } 233 234 247 public void changePassword(User user, String oldPassword, String newPassword) 248 throws PasswordMismatchException, UnknownEntityException, 249 DataBackendException 250 { 251 throw new DataBackendException("PassiveUserManager does not support setting passwords"); 252 } 253 254 269 public void forcePassword(User user, String password) 270 throws UnknownEntityException, DataBackendException 271 { 272 throw new DataBackendException("PassiveUserManager does not support setting passwords"); 273 } 274 } 275 | Popular Tags |