cz.cuni.mff.mirovsky.account
Class UserAccount

java.lang.Object
  extended by cz.cuni.mff.mirovsky.account.UserAccount

public class UserAccount
extends java.lang.Object

Class UserAccount keeps information about the user account - the authentication and authorization information.


Field Summary
static int account_type_anonymous
           
static int account_type_user
           
 
Constructor Summary
UserAccount(ShowMessagesAble p_mess, java.util.ResourceBundle p_i18n)
          Creates new UserAccount
 
Method Summary
 int getAccountType()
           
 boolean getClientSaveTreesPermission()
           
 boolean getChangePasswordPermission()
           
 java.lang.String getLoginName()
           
 long getMaxNumberOfTrees()
           
 java.lang.String getRootDirectory()
           
 java.lang.String getUserName()
           
 int readFromBytes(byte[] src, int start)
           
 void setDefaultValues()
           
 void setLoginName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

account_type_anonymous

public static final int account_type_anonymous
See Also:
Constant Field Values

account_type_user

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

UserAccount

public UserAccount(ShowMessagesAble p_mess,
                   java.util.ResourceBundle p_i18n)
Creates new UserAccount

Method Detail

setDefaultValues

public void setDefaultValues()

getLoginName

public java.lang.String getLoginName()

setLoginName

public void setLoginName(java.lang.String name)

getAccountType

public int getAccountType()

getRootDirectory

public java.lang.String getRootDirectory()

getMaxNumberOfTrees

public long getMaxNumberOfTrees()

getClientSaveTreesPermission

public boolean getClientSaveTreesPermission()

getChangePasswordPermission

public boolean getChangePasswordPermission()

getUserName

public java.lang.String getUserName()

readFromBytes

public int readFromBytes(byte[] src,
                         int start)
                  throws ServerCommunicationFormatErrorException
Throws:
ServerCommunicationFormatErrorException