Method Summary |
|
public Collection | findByMainPage() Returns a collection of all items that have been marked
for the main page. |
public Collection | findByMainPageAndFriendsOf(String username) Return a collection of all items that have been marked for the main page and
whose friends of username have purchased.
Parameters: username - the user whose friends are considered into the collection. |
public Collection | findByMainPageAndSpecialOffer() Returns a collection of items that have been marked for the main page and
have been marked as a special offer. |
public Collection | getAllItems() Returns a collection of all items in the database. |
public ItemValue | getItemById(String itemId) Returns an ItemValue from the helper bean that matches the ID.
Parameters: itemId - the id of the item to return. |
public Collection | getItemsByType(String type) Returns a collection of all items whose type matches the supplied type.
Parameters: type - the type of items that will be returned. |
public PictureValue | getPictureById(String itemId) Returns a PictureValue for the picture that belongs to the item
given by the itemId.
Parameters: itemId - the item whose picture we want to return. |
public Collection | getPropertiesForType(String type) A collection of all properties for the given type.
Parameters: type - the type for which properties will be returned. |
public void | markItemAsInteresting(Integer itemId, String user) Record this item as interesting to the user. |
public void | saveItem(ItemValue item) Saves the given item into the backend storage. |