1 package org.apache.fulcrum.security.entity; 2 3 56 57 import java.util.Hashtable ; 58 import java.io.Serializable ; 59 60 import org.apache.fulcrum.security.session.SessionBindingListener; 61 62 72 public interface User 73 extends SessionBindingListener, Serializable , SecurityEntity 74 { 75 76 public static final String FIRST_NAME = "FIRST_NAME"; 77 78 79 public static final String LAST_NAME = "LAST_NAME"; 80 81 82 public static final String LAST_LOGIN = "LAST_LOGIN"; 83 84 85 public static final String PASSWORD = "PASSWORD_VALUE"; 86 87 88 public static final String USERNAME = "LOGIN_NAME"; 89 90 91 public static final String CONFIRM_VALUE = "CONFIRM_VALUE"; 92 93 94 public static final String EMAIL = "EMAIL"; 95 96 97 public static final String CONFIRM_DATA = "CONFIRMED"; 98 99 100 public static final String ACCESS_COUNTER = "_access_counter"; 101 102 103 public static final String SESSION_ACCESS_COUNTER = "_session_access_counter"; 104 105 106 public static final String HAS_LOGGED_IN = "_has_logged_in"; 107 108 109 public static final String SESSION_KEY = "turbine.user"; 110 111 116 int getAccessCounter(); 117 118 123 int getAccessCounterForSession(); 124 125 131 java.util.Date getLastAccessDate(); 132 133 139 java.util.Date getCreateDate(); 140 141 146 java.util.Date getLastLogin(); 147 148 160 String getPassword(); 161 162 168 Object getPerm(String name); 169 170 178 Object getPerm(String name, Object def); 179 180 186 Hashtable getPermStorage(); 187 188 194 Hashtable getTempStorage(); 195 196 202 Object getTemp(String name); 203 204 212 Object getTemp(String name, Object def); 213 214 219 String getUserName(); 220 221 226 227 String getFirstName(); 228 229 234 String getLastName(); 235 236 241 String getEmail(); 242 243 249 void setHasLoggedIn(Boolean value); 250 251 256 boolean hasLoggedIn(); 257 258 261 void incrementAccessCounter(); 262 263 266 void incrementAccessCounterForSession(); 267 268 274 Object removeTemp(String name); 275 276 281 void setAccessCounter(int cnt); 282 283 289 void setAccessCounterForSession(int cnt); 290 291 295 void setLastAccessDate(); 296 297 302 void setLastLogin(java.util.Date lastLogin); 303 304 311 312 void setPassword(String password); 313 314 320 void setPerm(String name, 321 Object value); 322 323 329 void setPermStorage(Hashtable storage); 330 331 337 void setTempStorage(Hashtable storage); 338 339 345 void setTemp(String name, Object value); 346 347 352 void setUserName(String username); 353 354 359 void setFirstName(String firstName); 360 361 366 void setLastName(String lastName); 367 368 373 void setCreateDate(java.util.Date date); 374 375 380 void setEmail(String address); 381 382 389 boolean isConfirmed(); 390 391 396 void setConfirmed(String value); 397 398 403 String getConfirmed(); 404 405 410 void updateLastLogin() 411 throws Exception ; 412 } 413 | Popular Tags |