com.ltu.smd116.beans
Class AccountAdminBean


public class AccountAdminBean

Administrate accounts.


Method Summary
 booleancreateAccount(AccountContainer account)
          Tries to create a new account in DB with properties from
an account container.
 booleandeleteAccount(AccountContainer account)
          Tries to delete an account from DB.
 SortedVectorsearchByOwner(UserContainer owner)
          Search for accounts whose owner we know.
 booleanupdateAccount(AccountContainer account)
          Tries to update an account in DB with properties from
an account container.

Method Detail

createAccount

public boolean createAccount(AccountContainer account)
Tries to create a new account in DB with properties from
an account container.
Returns: True on success, false on failure.

deleteAccount

public boolean deleteAccount(AccountContainer account)
Tries to delete an account from DB.
Returns: True on success, false on failure.

searchByOwner

public SortedVector searchByOwner(UserContainer owner)
Search for accounts whose owner we know.
Parameters:
owner - The owner of one or more accounts.
Returns: A vector of sortable items.

updateAccount

public boolean updateAccount(AccountContainer account)
Tries to update an account in DB with properties from
an account container.
Returns: True on success, false on failure.