|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcafe.gui.UserInfo
public class UserInfo
User information is relayed in instances of this class.
Constructor Summary | |
---|---|
UserInfo(java.lang.String username,
java.lang.String givenname,
java.lang.String familyname,
UserBalance[] balance,
int[] fingerprints,
ExportProduct favoriteProduct,
ExportProduct[] userproductlist,
java.lang.String language,
boolean cancelAllowed)
Constructs a new UserInfo with the given parameters. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Overrides the equals method. |
UserBalance[] |
getBalances()
Returns user's balances in different product groups. |
java.lang.String |
getDefaultLanguage()
Returns user's default language. |
java.lang.String |
getFamilyname()
Returns user's family name. |
ExportProduct |
getFavoriteProduct()
Returns user's favorite (regular) product. |
int |
getFingerprint(int finger)
Returns the fingerprint id for a chosen finger. |
java.lang.String |
getGivenname()
Returns user's given (first) name. |
java.lang.String |
getUsername()
Returns user's username |
ExportProduct[] |
getUserproductlist()
Returns list of all exportable products, sorted as favoured by this user. |
boolean |
isCancelAllowed()
Tells if the user is allowed to cancel a previous product export transacrion. |
void |
setBalances(UserBalance[] balance)
Sets user's balance in all product groups. |
void |
setCancelAllowed(boolean value)
Sets the variable that tells if the user is allowed to cancel a product export transaction. |
void |
setDefaultLanguage(java.lang.String defaultlang)
Sets user's default language. |
void |
setFamilyname(java.lang.String familyname)
Sets user's family name. |
void |
setFavoriteProduct(ExportProduct favoriteProduct)
Sets user's favorite product to some ExportProduct. |
void |
setFingerprint(int finger,
int id)
Set's a finger's fingerprint to a given id. |
void |
setGivenname(java.lang.String givenname)
Sets user's given (first) name. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserInfo(java.lang.String username, java.lang.String givenname, java.lang.String familyname, UserBalance[] balance, int[] fingerprints, ExportProduct favoriteProduct, ExportProduct[] userproductlist, java.lang.String language, boolean cancelAllowed)
username
- user's usernamegivenname
- user's given (first) namefamilyname
- user's family namebalance
- user's balance in different product groupsfingerprints
- the id numbers of user's stored fingerprintsfavoriteProduct
- user's regular portion (favorite product)userproductlist
- list of all exportable products, sorted per user favorism.language
- user's default languagecancelAllowed
- if user can cancel a previous export transactionMethod Detail |
---|
public java.lang.String getDefaultLanguage()
public void setDefaultLanguage(java.lang.String defaultlang)
defaultlang
- the default language for the userpublic java.lang.String getFamilyname()
public void setFamilyname(java.lang.String familyname)
familyname
- the family name to setpublic int getFingerprint(int finger)
public void setFingerprint(int finger, int id)
finger
- The chosen finger.id
- The new fingerprint id for the finger.public java.lang.String getGivenname()
public void setGivenname(java.lang.String givenname)
givenname
- the given name to setpublic ExportProduct getFavoriteProduct()
public void setFavoriteProduct(ExportProduct favoriteProduct)
favoriteProduct
- the favorite product to setpublic UserBalance[] getBalances()
public void setBalances(UserBalance[] balance)
balance
- user's balances in all product groups.public boolean isCancelAllowed()
public java.lang.String getUsername()
public ExportProduct[] getUserproductlist()
public void setCancelAllowed(boolean value)
value
- if cancelling is allowed or notpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |