org.bejug.javacareers.common.service
Interface ItemService


public interface ItemService

The ItemService is responsable for all manipulations on items(offers and resumes).

Version:
$Revision: 1.10 $ - $Date: 2005/12/20 15:36:45 $
Author:
Bart Meyers (Last modified by $Author: shally $)

Method Summary
 void delete(Item item)
          deletes an item
 Item findById(java.lang.Integer id)
          finds an item by id
 Item getItem(java.lang.Integer id)
          gets the item.
 int getItemCount()
           
 int getItemCount(int itemType)
           
 java.util.List getItems()
          gets the items.
 java.util.List getItems(java.lang.Class clazz)
          List the items by type
 java.util.List getItems(int itemType)
          gets the items.
 int getUnApprovedItemCount()
           
 int getUnApprovedItemCount(int itemType)
           
 java.util.List getUnApprovedItems()
           
 java.util.List getUnApprovedItems(java.lang.Class clazz)
          List the items by type
 java.util.List getUnApprovedItems(int itemType)
          List the items by type
 void store(CommercialEducationOffer item)
           
 void store(Item item)
          Store an item;
 

Method Detail

getItems

public java.util.List getItems()
gets the items.

Returns:
all items.

getItem

public Item getItem(java.lang.Integer id)
gets the item.

Parameters:
id - is the identity
Returns:
fount item.

getItems

public java.util.List getItems(int itemType)
gets the items.

Parameters:
itemType - an integer indicating the type of item we want.
Returns:
a list containing the type of items we want.

getItemCount

public int getItemCount()
Returns:
the total Itemcount.

getItemCount

public int getItemCount(int itemType)
Parameters:
itemType - the type of items to count.
Returns:
an int containing the number of items.

getUnApprovedItemCount

public int getUnApprovedItemCount()
Returns:
the total UnapprovedItemcount.

getUnApprovedItemCount

public int getUnApprovedItemCount(int itemType)
Parameters:
itemType - is itemType
Returns:
the total UnapprovedItemcount.

getUnApprovedItems

public java.util.List getUnApprovedItems()
Returns:
a list of unapproved items

getUnApprovedItems

public java.util.List getUnApprovedItems(int itemType)
List the items by type

Parameters:
itemType - of The javacareers Item class
Returns:
a list of unapproved javacareers items

getUnApprovedItems

public java.util.List getUnApprovedItems(java.lang.Class clazz)
List the items by type

Parameters:
clazz - The javacareers Item class
Returns:
a list of unapproved javacareers items

delete

public void delete(Item item)
deletes an item

Parameters:
item - the item to delete

findById

public Item findById(java.lang.Integer id)
finds an item by id

Parameters:
id - an Integer indicating the id of the Item.
Returns:
the wanted Item.

getItems

public java.util.List getItems(java.lang.Class clazz)
List the items by type

Parameters:
clazz - The javacareers Item class
Returns:
The list of javacareers items

store

public void store(Item item)
Store an item;

Parameters:
item - Item.

store

public void store(CommercialEducationOffer item)
Parameters:
item - is the item


Copyright © 2005-2006 BeJUG. All Rights Reserved.