com.ltu.smd116.beans
Class CardAdminBean


public class CardAdminBean

Administrate cards.


Method Summary
 booleancreateCard(CardContainer card)
          Tries to create a new card in DB with properties from
a card container.
 booleandeleteCard(CardContainer card)
          Tries to delete a card from DB.
 SortedVectorsearchByOwner(UserContainer owner)
          Search for cards whose owner we know.
 booleanupdateCard(CardContainer card)
          Tries to update a card in DB with properties from
a card container.

Method Detail

createCard

public boolean createCard(CardContainer card)
Tries to create a new card in DB with properties from
a card container.
Returns: True on success, false on failure.

deleteCard

public boolean deleteCard(CardContainer card)
Tries to delete a card from DB.
Returns: True on success, false on failure.

searchByOwner

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

updateCard

public boolean updateCard(CardContainer card)
Tries to update a card in DB with properties from
a card container.
Returns: True on success, false on failure.