org.bejug.javacareers.jobs.view.jsf.action
Class JobAction

java.lang.Object
  extended byorg.bejug.javacareers.jobs.view.jsf.action.BaseAction
      extended byorg.bejug.javacareers.jobs.view.jsf.action.JobAction
All Implemented Interfaces:
JSFConstants

public class JobAction
extends BaseAction
implements JSFConstants

The Job CommentAction class.

Version:
$Revision: 1.42 $ - $Date: 2005/10/11 11:59:21 $
Author:
Peter Symoens (last modified by $Author: stephan_janssen $)

Field Summary
 
Fields inherited from class org.bejug.javacareers.jobs.view.jsf.action.BaseAction
outcome, searchCriteriaFactory, searchCriteriaService, token, TOKEN_KEY, TRANSACTION_TOKEN_KEY
 
Fields inherited from interface org.bejug.javacareers.common.view.jsf.constants.JSFConstants
COLLAPSE_COMMENTS, CURRENT_ITEM, ERROR_CONTROL_FLOW, GO_ERROR, GO_HOME, GO_ITEMS, GO_JOB_DETAILS, GO_JOBS
 
Constructor Summary
JobAction()
           
 
Method Summary
 void confirmDelete(javax.faces.event.ActionEvent actionEvent)
           
 org.bejug.javacareers.project.properties.JavaCareersConfig getConfig()
           
 java.util.List getCurrentJobOfferPosts()
           
 java.lang.String getJobOfferCount()
          Gets the number of JobOffers
 java.lang.String getNrOfCurrentJobOfferPosts()
           
 java.lang.String getTokenKey()
          Use a getter method to be able to acces this variable from within jsf
 boolean isDeletePressed()
           
 void listAllJobs(javax.faces.event.ActionEvent actionEvent)
          List all open JobOffers
 void listCurrentJobOfferPosts()
          Lists the employers currently open JobOffers
 void processAjaxSearch(javax.faces.context.FacesContext context, java.lang.String prefix, CompletionResult result)
          do an ajac-search.
 void processJobInsert(javax.faces.event.ActionEvent actionEvent)
          Process the job insert action.
 void processJobSearch(javax.faces.event.ActionEvent actionEvent)
          Process the job search action.
 java.lang.String sendJobDigest()
          Send job digest mail to interested users.
 void setConfig(org.bejug.javacareers.project.properties.JavaCareersConfig config)
           
 void setJobService(org.bejug.javacareers.jobs.service.JobService jobService)
          Set Job Service via Springs IoC injection.
 void setMailBean(MailBean jobDigest)
           
 void setUserTracker(UserTracker userTracker)
           
 
Methods inherited from class org.bejug.javacareers.jobs.view.jsf.action.BaseAction
doOutcome, generateToken, getSearchCriteriaFactory, getSearchCriteriaService, getToken, isTokenValid, saveToken, setSearchCriteriaFactory, setSearchCriteriaService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobAction

public JobAction()
Method Detail

setJobService

public void setJobService(org.bejug.javacareers.jobs.service.JobService jobService)
Set Job Service via Springs IoC injection.

Parameters:
jobService - JobService

setUserTracker

public void setUserTracker(UserTracker userTracker)
Parameters:
userTracker - The userTracker to set.

listAllJobs

public void listAllJobs(javax.faces.event.ActionEvent actionEvent)
List all open JobOffers

Parameters:
actionEvent - ActionEvent

processJobSearch

public void processJobSearch(javax.faces.event.ActionEvent actionEvent)
Process the job search action.

Parameters:
actionEvent - the JSF action event.

processAjaxSearch

public void processAjaxSearch(javax.faces.context.FacesContext context,
                              java.lang.String prefix,
                              CompletionResult result)
do an ajac-search.

Parameters:
context - the FacesContext to use.
prefix - a String containing the prefix to use.
result - the result of the completion.

processJobInsert

public void processJobInsert(javax.faces.event.ActionEvent actionEvent)
Process the job insert action.

Parameters:
actionEvent - the JSF action event.

listCurrentJobOfferPosts

public void listCurrentJobOfferPosts()
Lists the employers currently open JobOffers


getNrOfCurrentJobOfferPosts

public java.lang.String getNrOfCurrentJobOfferPosts()
Returns:
nrOfCurrentJobOfferPosts

getCurrentJobOfferPosts

public java.util.List getCurrentJobOfferPosts()
Returns:
The current user's open job posts

confirmDelete

public void confirmDelete(javax.faces.event.ActionEvent actionEvent)
Parameters:
actionEvent - actionEvent

isDeletePressed

public boolean isDeletePressed()
Returns:
deletePressed

sendJobDigest

public java.lang.String sendJobDigest()
Send job digest mail to interested users.

Returns:
null to redisplay current page.

setMailBean

public void setMailBean(MailBean jobDigest)
Parameters:
jobDigest - The mailBean to set.

getConfig

public org.bejug.javacareers.project.properties.JavaCareersConfig getConfig()
Returns:
config

setConfig

public void setConfig(org.bejug.javacareers.project.properties.JavaCareersConfig config)
Parameters:
config - String

getJobOfferCount

public java.lang.String getJobOfferCount()
Gets the number of JobOffers

Returns:
number of joboffers

getTokenKey

public java.lang.String getTokenKey()
Use a getter method to be able to acces this variable from within jsf

Returns:
The static final token key


Copyright © 2005-2006 BeJUG. All Rights Reserved.