1 package org.apache.turbine.om.security; 2 3 18 19 import java.io.Serializable ; 20 21 import java.util.Hashtable ; 22 23 import javax.servlet.http.HttpSessionBindingListener ; 24 25 36 public interface User 37 extends HttpSessionBindingListener , Serializable , SecurityEntity 38 { 39 40 String FIRST_NAME = "FIRST_NAME"; 41 42 43 String LAST_NAME = "LAST_NAME"; 44 45 46 String LAST_LOGIN = "LAST_LOGIN"; 47 48 49 String PASSWORD = "PASSWORD_VALUE"; 50 51 52 String USERNAME = "LOGIN_NAME"; 53 54 55 String CONFIRM_VALUE = "CONFIRM_VALUE"; 56 57 58 String EMAIL = "EMAIL"; 59 60 61 String CONFIRM_DATA = "CONFIRMED"; 62 63 64 String ACCESS_COUNTER = "_access_counter"; 65 66 67 String SESSION_ACCESS_COUNTER = "_session_access_counter"; 68 69 70 String HAS_LOGGED_IN = "_has_logged_in"; 71 72 73 String SESSION_KEY = "turbine.user"; 74 75 80 int getAccessCounter(); 81 82 87 int getAccessCounterForSession(); 88 89 95 java.util.Date getLastAccessDate(); 96 97 103 java.util.Date getCreateDate(); 104 105 110 java.util.Date getLastLogin(); 111 112 124 String getPassword(); 125 126 132 Object getPerm(String name); 133 134 142 Object getPerm(String name, Object def); 143 144 150 Hashtable getPermStorage(); 151 152 158 Hashtable getTempStorage(); 159 160 166 Object getTemp(String name); 167 168 176 Object getTemp(String name, Object def); 177 178 185 String getUserName(); 186 187 192 193 String getFirstName(); 194 195 200 String getLastName(); 201 202 207 String getEmail(); 208 209 215 void setHasLoggedIn(Boolean value); 216 217 222 boolean hasLoggedIn(); 223 224 227 void incrementAccessCounter(); 228 229 232 void incrementAccessCounterForSession(); 233 234 240 Object removeTemp(String name); 241 242 247 void setAccessCounter(int cnt); 248 249 255 void setAccessCounterForSession(int cnt); 256 257 261 void setLastAccessDate(); 262 263 268 void setLastLogin(java.util.Date lastLogin); 269 270 277 278 void setPassword(String password); 279 280 286 void setPerm(String name, 287 Object value); 288 289 295 void setPermStorage(Hashtable storage); 296 297 303 void setTempStorage(Hashtable storage); 304 305 311 void setTemp(String name, Object value); 312 313 320 void setUserName(String username); 321 322 327 void setFirstName(String firstName); 328 329 334 void setLastName(String lastName); 335 336 341 void setCreateDate(java.util.Date date); 342 343 348 void setEmail(String address); 349 350 357 boolean isConfirmed(); 358 359 364 void setConfirmed(String value); 365 366 371 String getConfirmed(); 372 373 378 void updateLastLogin() 379 throws Exception ; 380 } 381 | Popular Tags |