1 18 package net.sf.drftpd.master.usermanager; 19 20 import java.util.List ; 21 22 import net.sf.drftpd.DuplicateElementException; 23 24 28 public interface User { 29 30 public void addGroup(String group) throws DuplicateElementException; 31 32 public void addIPMask(String mask) throws DuplicateElementException; 33 public void addRacesLost(); 34 public void addRacesParticipated(); 35 36 public void addRacesWon(); 37 public void addRequests(); 38 public void addRequestsFilled(); 39 public boolean checkIP(String masks[], boolean useIdent); 40 public boolean checkPassword(String password); 41 42 46 public void commit() throws UserFileException; 47 48 public String getComment(); 49 53 public long getCreated(); 54 55 59 public long getCredits(); 60 public long getDownloadedBytes(); 61 public long getDownloadedBytesDay(); 62 public long getDownloadedBytesForPeriod(int period); 63 public long getDownloadedBytesMonth(); 64 public long getDownloadedBytesWeek(); 65 66 public int getDownloadedFiles(); 67 public int getDownloadedFilesDay(); 68 public int getDownloadedFilesForPeriod(int i); 69 public int getDownloadedFilesMonth(); 70 public int getDownloadedFilesWeek(); 71 72 public long getDownloadedMilliseconds(); 73 74 public long getDownloadedMillisecondsForPeriod(int i); 75 public short getGroupLeechSlots(); 76 public String getGroupName(); 77 public List getGroups(); 78 79 public short getGroupSlots(); 80 84 public int getIdleTime(); 85 public List getIpMasks(); 86 public List getIpMasks2(); 87 90 public long getLastAccessTime(); 91 95 public long getLastNuked(); 96 public long getLastReset(); 97 101 public int getLogins(); 102 103 107 public int getMaxLogins(); 108 112 public int getMaxLoginsPerIP(); 113 public int getMaxSimDownloads(); 114 118 public int getMaxSimUploads(); 119 120 124 public long getNukedBytes(); 125 public int getRacesLost(); 126 public int getRacesParticipated(); 127 131 132 public int getRacesWon(); 133 137 public float getRatio(); 138 public int getRequests(); 139 public int getRequestsFilled(); 140 144 public String getTagline(); 145 146 150 public int getTimesNuked(); 151 152 156 public long getUploadedBytes(); 157 161 public long getUploadedBytesDay(); 162 public long getUploadedBytesForPeriod(int period); 163 167 public long getUploadedBytesMonth(); 168 172 public long getUploadedBytesWeek(); 173 177 public int getUploadedFiles(); 178 182 public int getUploadedFilesDay(); 183 184 public int getUploadedFilesForPeriod(int period); 185 189 public int getUploadedFilesMonth(); 190 194 public int getUploadedFilesWeek(); 195 public long getUploadedMilliseconds(); 196 197 public long getUploadedMillisecondsForPeriod(int i); 198 199 public String getUsername(); 200 public long getWeeklyAllotment(); 201 public boolean isAdmin(); 202 203 210 public boolean isAnonymous(); 211 215 public boolean isDeleted(); 216 public boolean isExempt(); 217 public boolean isGroupAdmin(); 218 public boolean isMemberOf(String group); 219 223 public boolean isNuker(); 224 227 public void login(); 228 231 public void logout(); 232 233 public void purge(); 234 public void removeGroup(String group) throws NoSuchFieldException ; 235 public void removeIpMask(String mask) throws NoSuchFieldException ; 236 public void rename(String username) 237 throws UserExistsException, UserFileException; 238 239 public void setComment(String comment); 240 public void setCreated(long created); 241 245 public void setCredits(long credits); 246 250 public void setDeleted(boolean deleted); 251 public void setDownloadedBytes(long bytes); 252 public void setDownloadedBytesDay(long bytes); 253 254 public void setDownloadedBytesForPeriod(int period, long bytes); 255 public void setDownloadedBytesMonth(long bytes); 256 public void setDownloadedBytesWeek(long bytes); 257 258 public void setDownloadedFiles(int files); 259 260 public void setDownloadedFilesDay(int files); 261 262 public void setDownloadedFilesForPeriod(int period, int files); 263 264 public void setDownloadedFilesMonth(int files); 265 266 public void setDownloadedFilesWeek(int files); 267 268 public void setDownloadedMilliseconds(long millis); 269 public void setDownloadedMillisecondsDay(long millis); 270 271 public void setDownloadedMillisecondsForPeriod(int i, long millis); 272 public void setDownloadedMillisecondsMonth(long millis); 273 public void setDownloadedMillisecondsWeek(long millis); 274 public void setDownloadedSeconds(int millis); 275 public void setDownloadedSecondsDay(int millis); 276 public void setDownloadedSecondsMonth(int millis); 277 public void setDownloadedSecondsWeek(int millis); 278 public void setGroup(String group); 279 public void setGroupLeechSlots(short s); 280 281 public void setGroupSlots(short s); 282 283 287 public void setIdleTime(int idleTime); 288 289 293 public void setLastAccessTime(long lastAccessTime); 294 298 public void setLastNuked(long lastNuked); 299 303 public void setLogins(int logins); 304 305 309 public void setMaxLogins(int maxLogins); 310 314 public void setMaxLoginsPerIP(int maxLoginsPerIP); 315 public void setMaxSimDownloads(int maxSimDownloads); 316 320 public void setMaxSimUploads(int maxSimUploads); 321 322 326 public void setNukedBytes(long nukedBytes); 327 public void setPassword(String password); 328 332 public void setRatio(float ratio); 333 334 338 339 public void setTagline(String tagline); 340 public void setTimesNuked(int nuked); 341 public void setUploadedBytes(long bytes); 342 public void setUploadedBytesDay(long bytes); 343 public void setUploadedBytesForPeriod(int i, long l); 344 public void setUploadedBytesMonth(long bytes); 345 public void setUploadedBytesWeek(long bytes); 346 347 public void setUploadedFiles(int files); 348 349 public void setUploadedFilesDay(int files); 350 351 public void setUploadedFilesForPeriod(int period, int files); 352 353 public void setUploadedFilesMonth(int files); 354 355 public void setUploadedFilesWeek(int files); 356 357 public void setUploadedMilliseconds(long millis); 358 public void setUploadedMillisecondsDay(long millis); 359 360 public void setUploadedMillisecondsForPeriod(int i, long millis); 361 public void setUploadedMillisecondsMonth(long millis); 362 public void setUploadedMillisecondsWeek(long millis); 363 public void setUploadedSeconds(int millis); 364 public void setUploadedSecondsDay(int millis); 365 public void setUploadedSecondsMonth(int millis); 366 public void setUploadedSecondsWeek(int millis); 367 368 public void setWeeklyAllotment(long weeklyAllotment); 369 370 public void toggleGroup(String string); 371 public void updateCredits(long credits); 372 public void updateDownloadedBytes(long bytes); 373 public void updateDownloadedFiles(int i); 374 public void updateDownloadedMilliseconds(long millis); 375 378 public void updateLastAccessTime(); 379 public void updateNukedBytes(long bytes); 380 public void updateTimesNuked(int timesNuked); 381 public void updateUploadedBytes(long bytes); 382 public void updateUploadedFiles(int i); 383 public void updateUploadedMilliseconds(long millis); 384 } 385 | Popular Tags |