org.bejug.javacareers.jobs.service
Interface JobService


public interface JobService

Defines the "Business Facade" of the controller.

Version:
$Revision: 1.1 $ - $Date: 2005/08/26 07:58:27 $
Author:
Stephan Janssen (last modified by $Author: ge0ffrey $ )

Method Summary
 void deleteJobOffer(JobOffer offer)
          delete a joboffer.
 int deleteJobOffersByUrl(java.lang.String url)
          deletes joboffers by url.
 int getCurrentUserJobOfferCount(User currentUser)
           
 JobOffer getJobOffer(java.lang.Integer id)
          gets a joboffer by id.
 int getJobOfferCount()
           
 java.util.List getJobOffers()
          get a list of joboffers.
 java.util.List getJobOffers(SearchCriteria searchCriteria)
          gets a joboffer by searchCriteria.
 void storeJobOffer(JobOffer offer)
          Adds a job offer.
 

Method Detail

storeJobOffer

public void storeJobOffer(JobOffer offer)
Adds a job offer.

Parameters:
offer - A job offer.

deleteJobOffer

public void deleteJobOffer(JobOffer offer)
delete a joboffer.

Parameters:
offer - the joboffer to delete

deleteJobOffersByUrl

public int deleteJobOffersByUrl(java.lang.String url)
deletes joboffers by url.

Parameters:
url - the url of joboffers to delete
Returns:
int number of jobs deleted

getJobOffers

public java.util.List getJobOffers()
get a list of joboffers.

Returns:
a list containing all the joboffers

getJobOffer

public JobOffer getJobOffer(java.lang.Integer id)
gets a joboffer by id.

Parameters:
id - the id of the joboffer
Returns:
the wanted joboffer

getJobOffers

public java.util.List getJobOffers(SearchCriteria searchCriteria)
                            throws java.lang.IllegalArgumentException
gets a joboffer by searchCriteria.

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

getJobOfferCount

public int getJobOfferCount()
Returns:
an int indicating the number of jobs stored in the database

getCurrentUserJobOfferCount

public int getCurrentUserJobOfferCount(User currentUser)
Parameters:
currentUser - the user working with the application.
Returns:
an int indicating the number of jobs posted by the current user


Copyright © 2005-2006 BeJUG. All Rights Reserved.