|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserInterfaceEvent
This interface provides methods for GUI so that it can get information from other components.
Method Summary | |
---|---|
boolean |
authenticateUser(java.lang.String username,
java.lang.String password)
Authenticates an user's CS department username and password |
CancelProduct |
cancelProductExport(UserInfo user)
Cancels the last export transaction from the given user. |
void |
deleteFingerprint(int id)
Deletes a certain fingerprint (data) from database and memory. |
void |
exportProduct(UserInfo user,
ExportProduct product)
Marks an export transaction to the given user and product. |
ImportProduct[] |
getAlerts()
Returns a list of all products that have an alert set. |
ProductGroup[] |
getProductGroups()
Returns a list of all product groups. |
ExportProduct[] |
getProductList()
Returns a list of all exportable products. |
void |
importProduct(UserInfo user,
ImportProduct product,
double amount)
Marks an import transaction to the given user and product. |
void |
insertAlert(ImportProduct product)
Inserts an alert to the given product to the database. |
UserInfo |
loadUser(java.lang.String username)
Loads an user's information from the database based on the CS dep. username. |
void |
removeAlert(ImportProduct product)
Removes the alert from the given product. |
void |
saveUser(UserInfo user)
Saves an UserInfo instance describing a certain user to the database. |
Method Detail |
---|
boolean authenticateUser(java.lang.String username, java.lang.String password)
username
- user's usernamepassword
- user's password
true
if username and password match, false
if the do not.void saveUser(UserInfo user)
user
- UserInfo to be storedvoid exportProduct(UserInfo user, ExportProduct product)
user
- the current user exporting a productproduct
- the product to be exportedvoid importProduct(UserInfo user, ImportProduct product, double amount)
user
- the current user importing a productproduct
- the product to be importedamount
- the amount (size) of the imported productExportProduct[] getProductList()
void insertAlert(ImportProduct product)
product
- the product that will receive the alertvoid removeAlert(ImportProduct product)
product
- the product whose alert will be dismissedImportProduct[] getAlerts()
ProductGroup[] getProductGroups()
void deleteFingerprint(int id)
id
- the id of the fingerprint that will be deletedUserInfo loadUser(java.lang.String username)
username
- the username of the user to be loaded
CancelProduct cancelProductExport(UserInfo user)
user
- the user whose transaction will be cancelled
null
if such
transaction could not be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |