1 53 54 106 107 package com.Yasna.forum; 108 109 import java.util.*; 110 111 128 public interface User { 129 130 135 public int getID(); 136 137 142 public boolean isAnonymous(); 143 144 149 public String getUsername(); 150 151 159 public String getName(); 160 161 168 public void setName(String name) throws UnauthorizedException; 169 170 177 public boolean isNameVisible(); 178 179 187 public void setNameVisible(boolean visible) throws UnauthorizedException; 188 189 198 public void setPassword(String password) throws UnauthorizedException; 199 200 207 public String getPasswordHash() throws UnauthorizedException; 208 209 216 public void setPasswordHash(String passwordHash) throws UnauthorizedException; 217 218 237 240 248 public String getEmail(); 249 255 public Calendar getLastLogin(); 256 261 public Calendar getLastPost(); 262 267 public Locale getUserLocale(); 268 273 public void setUserLocale(Locale locale) throws UnauthorizedException; 274 275 281 282 public TimeZone getUserTimeZone(); 283 284 289 public void setUserTimeZone(String timezoneid) throws UnauthorizedException; 290 298 public void setEmail(String email) throws UnauthorizedException; 299 300 301 306 public boolean getThreadSubscribe(); 307 308 316 public void setThreadSubscribe(boolean emailReply) throws UnauthorizedException; 317 318 325 public boolean isEmailVisible(); 326 327 335 public void setEmailVisible(boolean visible) throws UnauthorizedException; 336 337 346 public String getProperty(String name); 347 348 353 public Enumeration propertyNames(); 354 355 364 public void setProperty(String name, String value); 365 366 372 public abstract ForumPermissions getPermissions(Authorization authorization); 373 374 382 public boolean hasPermission(int type); 383 } 384 | Popular Tags |