kotkabeans
Class Account

java.lang.Object
  |
  +--kotkabeans.Account

public class Account
extends java.lang.Object

Bean for uploading files from client computer to server.


Field Summary
static int MAX_LENGTH
           
static int MAX_SAME_ACCOUNTS
           
static int MIN_LENGTH
           
 
Constructor Summary
Account()
           
 
Method Summary
static java.lang.String generateAccount(User user)
           
static int isAccountUsed(User user, java.lang.StringBuffer acc, DB db)
           
static java.lang.String replaceIllegals(java.lang.String account)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SAME_ACCOUNTS

public static final int MAX_SAME_ACCOUNTS
See Also:
Constant Field Values

MAX_LENGTH

public static final int MAX_LENGTH
See Also:
Constant Field Values

MIN_LENGTH

public static final int MIN_LENGTH
See Also:
Constant Field Values
Constructor Detail

Account

public Account()
Method Detail

generateAccount

public static java.lang.String generateAccount(User user)
                                        throws java.lang.Exception
java.lang.Exception

isAccountUsed

public static int isAccountUsed(User user,
                                java.lang.StringBuffer acc,
                                DB db)
                         throws java.lang.Exception
java.lang.Exception

replaceIllegals

public static java.lang.String replaceIllegals(java.lang.String account)