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

java.lang.Object
  extended byorg.bejug.javacareers.jobs.view.jsf.action.BaseAction
      extended byorg.bejug.javacareers.jobs.view.jsf.action.ItemAction

public class ItemAction
extends BaseAction

The Job Action class.

Version:
$Revision: 1.18 $ - $Date: 2005/12/21 11:38:42 $
Author:
Peter Symoens (last modified by $Author: shally $)

Field Summary
static java.lang.String LINES_PER_PAGE
           
static java.lang.String SHOW_ALL_ITEMS
           
 
Fields inherited from class org.bejug.javacareers.jobs.view.jsf.action.BaseAction
outcome, searchCriteriaFactory, searchCriteriaService, token, TOKEN_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
ItemAction()
           
 
Method Summary
 void approveCurrentItem(javax.faces.event.ActionEvent actionEvent)
           
 void approveItem(javax.faces.event.ActionEvent actionEvent)
           
 java.lang.String cancelDelete()
          cancel the Delete
 void confirmDelete(javax.faces.event.ActionEvent actionEvent)
           
 void confirmDeleteCurrentItem(javax.faces.event.ActionEvent actionEvent)
           
 void deleteItem(javax.faces.event.ActionEvent actionEvent)
          Delete the current Item
 org.bejug.javacareers.project.properties.JavaCareersConfig getConfig()
           
 java.lang.String getCurrentFilter()
           
 java.lang.String getImage()
           
 java.lang.String getItemCount()
          Gets the number of items
 ItemFileRemover getItemFileRemover()
           
 java.util.List getItemSpinnerList()
           
 javax.faces.component.UIData getItemTable()
           
 org.bejug.javacareers.jobs.model.Item getItemToDelete()
           
 int getLinesPerPage()
           
 java.lang.String getTokenKey()
          A getter method to be able to acces this variable from within jsf
 java.lang.String getUnApprovedItemCount()
           
 boolean isDeletePressed()
           
 boolean isFirst()
           
 boolean isJobOffer()
           
 boolean isLast()
           
 boolean isOffer()
           
 boolean isUnApprovedItems()
           
 void listItems(javax.faces.event.ActionEvent actionEvent)
          List all open Items
 void listUnApprovedItems(javax.faces.event.ActionEvent actionEvent)
          List all open Items
 void setBindingList(ItemValueBindingList bindingList)
           
 void setConfig(org.bejug.javacareers.project.properties.JavaCareersConfig config)
           
 void setDeletePressed(boolean deletePressed)
           
 void setDisplayFilter(javax.faces.event.ValueChangeEvent event)
           
 void setItemFileRemover(ItemFileRemover itemFileRemover)
           
 void setItemService(org.bejug.javacareers.common.service.ItemService itemService)
          Set Job Service via Springs IoC injection.
 void setItemTable(javax.faces.component.UIData itemTable)
           
 void setItemToDelete(org.bejug.javacareers.jobs.model.Item itemToDelete)
           
 void setLinesPerPage(javax.faces.event.ValueChangeEvent event)
           
 void setUnApprovedItems(boolean approvedItems)
           
 java.lang.String showItem()
          Store the item requested to be displayed on session scope so it can be picked up by the next page.
 void showNextItem(javax.faces.event.ActionEvent actionEvent)
           
 void showPreviousItem(javax.faces.event.ActionEvent actionEvent)
           
 
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
 

Field Detail

LINES_PER_PAGE

public static final java.lang.String LINES_PER_PAGE
See Also:
Constant Field Values

SHOW_ALL_ITEMS

public static final java.lang.String SHOW_ALL_ITEMS
See Also:
Constant Field Values
Constructor Detail

ItemAction

public ItemAction()
Method Detail

setItemService

public void setItemService(org.bejug.javacareers.common.service.ItemService itemService)
Set Job Service via Springs IoC injection.

Parameters:
itemService - ItemService

setBindingList

public void setBindingList(ItemValueBindingList bindingList)
Parameters:
bindingList - ItemValueBindingList

confirmDelete

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

confirmDeleteCurrentItem

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

showItem

public java.lang.String showItem()
Store the item requested to be displayed on session scope so it can be picked up by the next page.

Returns:
next page to display.

setItemTable

public void setItemTable(javax.faces.component.UIData itemTable)
Parameters:
itemTable - The itemTable to set.

getItemTable

public javax.faces.component.UIData getItemTable()
Returns:
Returns the itemTable.

isOffer

public boolean isOffer()
Returns:
Returns true if the item is a offer.

isJobOffer

public boolean isJobOffer()
Returns:
Returns true if the item is a offer.

getImage

public java.lang.String getImage()
Returns:
Returns the link to the gif.

listItems

public void listItems(javax.faces.event.ActionEvent actionEvent)
List all open Items

Parameters:
actionEvent - ActionEvent

showPreviousItem

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

showNextItem

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

isFirst

public boolean isFirst()
Returns:
first Returns true if currentItem is the first offer in the list

isLast

public boolean isLast()
Returns:
Returns true if currentItem is the last offer in the list

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

getItemCount

public java.lang.String getItemCount()
Gets the number of items

Returns:
number of items

getTokenKey

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

Returns:
The static final token key

getItemSpinnerList

public java.util.List getItemSpinnerList()
Returns:
the list of Javacareers items do display.

setDisplayFilter

public void setDisplayFilter(javax.faces.event.ValueChangeEvent event)
Parameters:
event - ValueChangeEvent

getLinesPerPage

public int getLinesPerPage()
Returns:
the lines per page

setLinesPerPage

public void setLinesPerPage(javax.faces.event.ValueChangeEvent event)
Parameters:
event - The ValueChangeEvent.

getCurrentFilter

public java.lang.String getCurrentFilter()
Returns:
message

getUnApprovedItemCount

public java.lang.String getUnApprovedItemCount()
Returns:
unapproved itemcount

listUnApprovedItems

public void listUnApprovedItems(javax.faces.event.ActionEvent actionEvent)
List all open Items

Parameters:
actionEvent - ActionEvent

isUnApprovedItems

public boolean isUnApprovedItems()
Returns:
Returns the unApprovedItems.

setUnApprovedItems

public void setUnApprovedItems(boolean approvedItems)
Parameters:
approvedItems - The unApprovedItems to set.

approveItem

public void approveItem(javax.faces.event.ActionEvent actionEvent)
Parameters:
actionEvent - is the generated event

approveCurrentItem

public void approveCurrentItem(javax.faces.event.ActionEvent actionEvent)
Parameters:
actionEvent - is the generated event

deleteItem

public void deleteItem(javax.faces.event.ActionEvent actionEvent)
Delete the current Item

Parameters:
actionEvent - is the generated event

cancelDelete

public java.lang.String cancelDelete()
cancel the Delete

Returns:
outcome, null to stay on the same page

isDeletePressed

public boolean isDeletePressed()
Returns:
Returns the deletePressed.

setDeletePressed

public void setDeletePressed(boolean deletePressed)
Parameters:
deletePressed - The deletePressed to set.

getItemToDelete

public org.bejug.javacareers.jobs.model.Item getItemToDelete()
Returns:
Returns the itemToDelete.

setItemToDelete

public void setItemToDelete(org.bejug.javacareers.jobs.model.Item itemToDelete)
Parameters:
itemToDelete - The itemToDelete to set.

getItemFileRemover

public ItemFileRemover getItemFileRemover()
Returns:
Returns the itemFileRemover.

setItemFileRemover

public void setItemFileRemover(ItemFileRemover itemFileRemover)
Parameters:
itemFileRemover - The itemFileRemover to set.


Copyright © 2005-2006 BeJUG. All Rights Reserved.