1 /***
2 Copyright (C) 2005 The Java Community
3
4 This program is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free Software
6 Foundation; either version 2 of the License, or (at your option) any later
7 version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 Place, Suite 330, Boston, MA 02111-1307 USA.
16
17 */
18
19 package org.bejug.javacareers.jobs.view.jsf.action;
20
21
22 import org.bejug.javacareers.jobs.service.JobService;
23 import org.bejug.javacareers.jobs.view.jsf.model.JobOfferData;
24 import org.bejug.javacareers.jobs.view.jsf.preferences.UserPreferences;
25
26
27 /***
28 * The employers actionListener class.
29 *
30 * @author Peter Symoens (Last modified by $Author: bejug_cc $)
31 * @version $Revision: 1.2 $ - $Date: 2005/06/09 08:18:53 $
32 */
33 public class EmployerAction {
34
35 /***
36 * The Job Service reference, injected by Springs container.
37 */
38 private JobService jobService;
39
40 /***
41 * Set Job Service via Springs IoC injection.
42 * @param jobService JobService.
43 */
44 public void setJobService(JobService jobService) {
45 this.jobService = jobService;
46 }
47
48 /***
49 *
50 * @return Returns the employers currently open JobOffers
51 */
52 public String showCurrentJobOfferPosts() {
53 JobOfferData.setJobOffers(jobService.getJobOffers());
54 UserPreferences.setRenderOpenJobs(true);
55 return null;
56 }
57
58 }
59
60 /***
61 * $Log: EmployerAction.java,v $
62 * Revision 1.2 2005/06/09 08:18:53 bejug_cc
63 * Fix initial import
64 *
65 * Revision 1.9 2005/05/25 15:38:45 ssc
66 * Optimized tests for search criteria
67 *
68 * Revision 1.8 2005/05/19 13:55:24 PSONG09
69 * update resume component + refactoring cv to resume
70 *
71 * Revision 1.7 2005/05/18 14:53:34 PSONG09
72 * changed employerPrefs to userPrefs
73 *
74 * Revision 1.5 2005/05/11 16:22:46 sja
75 * Removed logger and added CVS tags.
76 *
77 * Revision 1.4 2005/05/10 15:05:36 kva
78 * import cleanup
79 *
80 * Revision 1.3 2005/05/10 11:03:11 PSONG09
81 * update actions
82 *
83 * Revision 1.2 2005/05/09 14:54:45 ssc
84 * checkstyle
85 *
86 * Revision 1.1 2005/05/04 15:25:17 PSONG09
87 * addded action
88 *
89 */
90
91
92