org.bejug.javacareers.jobs.service
Interface ServiceOfferService


public interface ServiceOfferService

Defines the "Business Facade" of the controller.

Version:
$Revision: 1.1 $ $Date: 2005/08/26 07:58:27 $
Author:
Bart Meyers (Last modified by $Author: ge0ffrey $)

Method Summary
 void deleteServiceOffer(ServiceOffer offer)
          delete a serviceoffer.
 ConsultingServiceOffer getConsultingServiceOffer(java.lang.Integer id)
          gets a consultingserviceoffer by id.
 java.util.List getConsultingServiceOffers()
          get a list of consultingserviceoffers.
 java.util.List getConsultingServiceOffers(SearchCriteria searchCriteria)
          gets a EducationOffer by searchCriteria.
 int getConsultingServiceOffersCount()
           
 EducationServiceOffer getEducationServiceOffer(java.lang.Integer id)
          gets an educationserviceoffer by id.
 java.util.List getEducationServiceOffers()
          get a list of educationserviceoffers.
 java.util.List getEducationServiceOffers(SearchCriteria searchCriteria)
          gets a EducationServiceOffer by searchCriteria.
 int getEducationServiceOffersCount()
           
 void storeServiceOffer(ServiceOffer offer)
          Adds a serviceoffer.
 

Method Detail

storeServiceOffer

public void storeServiceOffer(ServiceOffer offer)
Adds a serviceoffer.

Parameters:
offer - A serviceoffer.

deleteServiceOffer

public void deleteServiceOffer(ServiceOffer offer)
delete a serviceoffer.

Parameters:
offer - the serviceoffer to delete

getEducationServiceOffers

public java.util.List getEducationServiceOffers()
get a list of educationserviceoffers.

Returns:
a list containing all the educationserviceoffers.

getConsultingServiceOffers

public java.util.List getConsultingServiceOffers()
get a list of consultingserviceoffers.

Returns:
a list containing all the consultingserviceoffers.

getEducationServiceOffer

public EducationServiceOffer getEducationServiceOffer(java.lang.Integer id)
gets an educationserviceoffer by id.

Parameters:
id - the id of the educationserviceoffer.
Returns:
the wanted educationserviceoffer.

getConsultingServiceOffer

public ConsultingServiceOffer getConsultingServiceOffer(java.lang.Integer id)
gets a consultingserviceoffer by id.

Parameters:
id - the id of the consultingserviceoffer.
Returns:
the wanted consultingserviceoffer.

getEducationServiceOffers

public java.util.List getEducationServiceOffers(SearchCriteria searchCriteria)
                                         throws java.lang.IllegalArgumentException
gets a EducationServiceOffer by searchCriteria.

Parameters:
searchCriteria - the searchCriteria
Returns:
the wanted EducationServiceOffer
Throws:
java.lang.IllegalArgumentException - if an error

getConsultingServiceOffers

public java.util.List getConsultingServiceOffers(SearchCriteria searchCriteria)
                                          throws java.lang.IllegalArgumentException
gets a EducationOffer by searchCriteria.

Parameters:
searchCriteria - the searchCriteria
Returns:
the wanted EducationOffer
Throws:
java.lang.IllegalArgumentException - if an error

getEducationServiceOffersCount

public int getEducationServiceOffersCount()
Returns:
an int indicating the number of EducationServiceOffer in the system.

getConsultingServiceOffersCount

public int getConsultingServiceOffersCount()
Returns:
an int indicating the number of ConsultingServiceOffers in the system.


Copyright © 2005-2006 BeJUG. All Rights Reserved.