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

java.lang.Object
  extended byorg.bejug.javacareers.jobs.view.jsf.action.BaseAction
Direct Known Subclasses:
ChangeLocaleAction, CommentActionImpl, ItemAction, JobAction, ResumeAction, ShowJobOfferAction

public class BaseAction
extends java.lang.Object

Version:
$Revision: 1.16 $ - $Date: 2005/12/20 15:36:47 $
Author:
Peter Symoens (last modified by $Author: shally $)

Field Summary
protected  java.lang.String outcome
          The navigation rule
protected  org.bejug.javacareers.common.search.SearchCriteriaFactory searchCriteriaFactory
          the factory for the searchCriteria.
protected  org.bejug.javacareers.common.search.SearchCriteriaService searchCriteriaService
          search service to use.
protected  java.lang.String token
          The transaction token
static java.lang.String TOKEN_KEY
          Variable that holds the transaction token to be set on the HttpServletRequest
static java.lang.String TRANSACTION_TOKEN_KEY
          Variable that holds the transaction token to be set on the HttpSession
 
Constructor Summary
BaseAction()
           
 
Method Summary
 java.lang.String doOutcome()
           
 java.lang.String generateToken()
           
 org.bejug.javacareers.common.search.SearchCriteriaFactory getSearchCriteriaFactory()
           
 org.bejug.javacareers.common.search.SearchCriteriaService getSearchCriteriaService()
           
 java.lang.String getToken()
           
 boolean isTokenValid()
           
protected  void saveToken()
          Save the transaction token on the HttpSession
 void setSearchCriteriaFactory(org.bejug.javacareers.common.search.SearchCriteriaFactory searchCriteriaFactory)
           
 void setSearchCriteriaService(org.bejug.javacareers.common.search.SearchCriteriaService searchCriteriaService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_TOKEN_KEY

public static final java.lang.String TRANSACTION_TOKEN_KEY
Variable that holds the transaction token to be set on the HttpSession

See Also:
Constant Field Values

TOKEN_KEY

public static final java.lang.String TOKEN_KEY
Variable that holds the transaction token to be set on the HttpServletRequest

See Also:
Constant Field Values

outcome

protected java.lang.String outcome
The navigation rule


token

protected java.lang.String token
The transaction token


searchCriteriaFactory

protected org.bejug.javacareers.common.search.SearchCriteriaFactory searchCriteriaFactory
the factory for the searchCriteria.


searchCriteriaService

protected org.bejug.javacareers.common.search.SearchCriteriaService searchCriteriaService
search service to use.

Constructor Detail

BaseAction

public BaseAction()
Method Detail

saveToken

protected void saveToken()
Save the transaction token on the HttpSession


generateToken

public java.lang.String generateToken()
Returns:
the generated token based on the HttpSession id and current time.

isTokenValid

public boolean isTokenValid()
Returns:
true if the transaction token key equals the token key.

doOutcome

public java.lang.String doOutcome()
Returns:
outcome String

getSearchCriteriaFactory

public org.bejug.javacareers.common.search.SearchCriteriaFactory getSearchCriteriaFactory()
Returns:
searchCriteriaFactory

setSearchCriteriaFactory

public void setSearchCriteriaFactory(org.bejug.javacareers.common.search.SearchCriteriaFactory searchCriteriaFactory)
Parameters:
searchCriteriaFactory - .

getSearchCriteriaService

public org.bejug.javacareers.common.search.SearchCriteriaService getSearchCriteriaService()
Returns:
searchCriteriaService

setSearchCriteriaService

public void setSearchCriteriaService(org.bejug.javacareers.common.search.SearchCriteriaService searchCriteriaService)
Parameters:
searchCriteriaService - .

getToken

public java.lang.String getToken()
Returns:
token


Copyright © 2005-2006 BeJUG. All Rights Reserved.