KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > jobs > struts > ResumeForm


1 package com.dotmarketing.portlets.jobs.struts;
2
3 import java.text.SimpleDateFormat JavaDoc;
4
5 import javax.servlet.http.HttpServletRequest JavaDoc;
6
7 import org.apache.commons.lang.builder.ToStringBuilder;
8 import org.apache.struts.action.ActionErrors;
9 import org.apache.struts.action.ActionMapping;
10 import org.apache.struts.validator.ValidatorForm;
11
12 import com.dotmarketing.util.Logger;
13 import com.liferay.portal.util.Constants;
14
15 /** @author Hibernate CodeGenerator */
16 public class ResumeForm extends ValidatorForm {
17
18     /** persistent field */
19     private long inode;
20
21     /** nullable persistent field */
22     private boolean member;
23
24     /** nullable persistent field */
25     private String JavaDoc name;
26
27     /** nullable persistent field */
28     private String JavaDoc streetname1;
29
30     /** nullable persistent field */
31     private String JavaDoc streetname2;
32
33     /** nullable persistent field */
34     private String JavaDoc city;
35
36     /** nullable persistent field */
37     private String JavaDoc state;
38
39     /** nullable persistent field */
40     private String JavaDoc zip;
41
42     /** nullable persistent field */
43     private String JavaDoc phone;
44
45     /** nullable persistent field */
46     private String JavaDoc fax;
47
48     /** nullable persistent field */
49     private String JavaDoc email;
50
51     /** nullable persistent field */
52     private String JavaDoc exclusion1;
53
54     /** nullable persistent field */
55     private String JavaDoc exclusion2;
56
57     /** nullable persistent field */
58     private String JavaDoc exclusion3;
59     
60     private String JavaDoc exclusion4;
61
62     /** nullable persistent field */
63     private boolean verified;
64
65     /** nullable persistent field */
66     private String JavaDoc objective;
67
68     /** nullable persistent field */
69     private String JavaDoc location;
70
71     /** nullable persistent field */
72     private String JavaDoc salary;
73
74     /** nullable persistent field */
75     private String JavaDoc qualification;
76
77     /** persistent field */
78    // private java.util.Date creationdate;
79

80     private String JavaDoc webexpirationdate;
81
82     /** nullable persistent field */
83     private java.util.Date JavaDoc expirationdate;
84     
85     /** nullable persistent field */
86     private String JavaDoc cctype;
87
88     /** nullable persistent field */
89     private String JavaDoc ccnum;
90
91     /** nullable persistent field */
92     private String JavaDoc ccexp;
93     
94     private boolean active;
95     
96     static final int MAX_FILE_SIZE = 2000 * 1024; //200k Max
97

98     /** default constructor */
99     public ResumeForm() {
100         this.cctype = "";
101     }
102
103     public long getInode() {
104         return this.inode;
105     }
106
107     public void setInode(long inode) {
108         this.inode = inode;
109     }
110
111     /**
112      * @return Returns the member.
113      */

114     public boolean isMember() {
115         return member;
116     }
117     /**
118      * @param member The member to set.
119      */

120     public void setMember(boolean member) {
121         this.member = member;
122     }
123     public java.lang.String JavaDoc getName() {
124         return this.name;
125     }
126
127     public void setName(java.lang.String JavaDoc name) {
128         this.name = name;
129     }
130     public java.lang.String JavaDoc getStreetname1() {
131         return this.streetname1;
132     }
133
134     public void setStreetname1(java.lang.String JavaDoc streetname1) {
135         this.streetname1 = streetname1;
136     }
137     public java.lang.String JavaDoc getStreetname2() {
138         return this.streetname2;
139     }
140
141     public void setStreetname2(java.lang.String JavaDoc streetname2) {
142         this.streetname2 = streetname2;
143     }
144     public java.lang.String JavaDoc getCity() {
145         return this.city;
146     }
147
148     public void setCity(java.lang.String JavaDoc city) {
149         this.city = city;
150     }
151     public java.lang.String JavaDoc getState() {
152         return this.state;
153     }
154
155     public void setState(java.lang.String JavaDoc state) {
156         this.state = state;
157     }
158     public java.lang.String JavaDoc getZip() {
159         return this.zip;
160     }
161
162     public void setZip(java.lang.String JavaDoc zip) {
163         this.zip = zip;
164     }
165     public java.lang.String JavaDoc getPhone() {
166         return this.phone;
167     }
168
169     public void setPhone(java.lang.String JavaDoc phone) {
170         this.phone = phone;
171     }
172     public java.lang.String JavaDoc getFax() {
173         return this.fax;
174     }
175
176     public void setFax(java.lang.String JavaDoc fax) {
177         this.fax = fax;
178     }
179     public java.lang.String JavaDoc getEmail() {
180         return this.email;
181     }
182
183     public void setEmail(java.lang.String JavaDoc email) {
184         this.email = email;
185     }
186     public java.lang.String JavaDoc getExclusion1() {
187         return this.exclusion1;
188     }
189
190     public void setExclusion1(java.lang.String JavaDoc exclusion1) {
191         this.exclusion1 = exclusion1;
192     }
193     public java.lang.String JavaDoc getExclusion2() {
194         return this.exclusion2;
195     }
196
197     public void setExclusion2(java.lang.String JavaDoc exclusion2) {
198         this.exclusion2 = exclusion2;
199     }
200     public java.lang.String JavaDoc getExclusion3() {
201         return this.exclusion3;
202     }
203
204     public void setExclusion3(java.lang.String JavaDoc exclusion3) {
205         this.exclusion3 = exclusion3;
206     }
207     public boolean getVerified() {
208         return this.verified;
209     }
210
211     public void setVerified(boolean verified) {
212         this.verified = verified;
213     }
214     public java.lang.String JavaDoc getObjective() {
215         return this.objective;
216     }
217
218     public void setObjective(java.lang.String JavaDoc objective) {
219         this.objective = objective;
220     }
221     public java.lang.String JavaDoc getLocation() {
222         return this.location;
223     }
224
225     public void setLocation(java.lang.String JavaDoc location) {
226         this.location = location;
227     }
228     public java.lang.String JavaDoc getSalary() {
229         return this.salary;
230     }
231
232     public void setSalary(java.lang.String JavaDoc salary) {
233         this.salary = salary;
234     }
235     public java.lang.String JavaDoc getQualification() {
236         return this.qualification;
237     }
238
239     public void setQualification(java.lang.String JavaDoc qualification) {
240         this.qualification = qualification;
241     }
242
243     public java.util.Date JavaDoc getExpirationdate() {
244         return this.expirationdate;
245     }
246
247     public void setExpirationdate(java.util.Date JavaDoc expirationdate) {
248         this.expirationdate = expirationdate;
249     }
250
251     public String JavaDoc toString() {
252         return ToStringBuilder.reflectionToString(this);
253     }
254
255     /**
256      * Returns the exclusion4.
257      * @return String
258      */

259     public String JavaDoc getExclusion4() {
260         return exclusion4;
261     }
262
263     /**
264      * Sets the exclusion4.
265      * @param exclusion4 The exclusion4 to set
266      */

267     public void setExclusion4(String JavaDoc exclusion4) {
268         this.exclusion4 = exclusion4;
269     }
270
271     /**
272      * Returns the ccexp.
273      * @return String
274      */

275     public String JavaDoc getCcexp() {
276         return ccexp;
277     }
278
279     /**
280      * Returns the ccnum.
281      * @return String
282      */

283     public String JavaDoc getCcnum() {
284         return ccnum;
285     }
286
287     /**
288      * Returns the cctype.
289      * @return String
290      */

291     public String JavaDoc getCctype() {
292         return cctype;
293     }
294
295
296     /**
297      * Returns the verified.
298      * @return boolean
299      */

300     public boolean isVerified() {
301         return verified;
302     }
303
304     /**
305      * Sets the ccexp.
306      * @param ccexp The ccexp to set
307      */

308     public void setCcexp(String JavaDoc ccexp) {
309         this.ccexp = ccexp;
310     }
311
312     /**
313      * Sets the ccnum.
314      * @param ccnum The ccnum to set
315      */

316     public void setCcnum(String JavaDoc ccnum) {
317         this.ccnum = ccnum;
318     }
319
320     /**
321      * Sets the cctype.
322      * @param cctype The cctype to set
323      */

324     public void setCctype(String JavaDoc cctype) {
325         this.cctype = cctype;
326     }
327
328     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
329         if(request.getParameter("cmd")!=null &&
330                 ((request.getParameter("cmd").equalsIgnoreCase(Constants.ADD)) ||
331                     (request.getParameter("cmd").equalsIgnoreCase(Constants.UPDATE)))) {
332             Logger.debug(this, "Resume Form validation!!!!!!");
333                 return super.validate(mapping, request);
334         }
335         if (request.getParameter("dispatch")!=null && (request.getParameter("dispatch").equalsIgnoreCase("save"))) {
336             return super.validate(mapping, request);
337         }
338         return null;
339     }
340
341
342     /**
343      * Returns the webexpirationdate.
344      * @return String
345      */

346     public String JavaDoc getWebexpirationdate() {
347         if(expirationdate!=null)
348                     this.webexpirationdate = new SimpleDateFormat JavaDoc("MM/dd/yyyy").format(this.expirationdate);
349         return webexpirationdate;
350     }
351
352     /**
353      * Sets the webexpirationdate.
354      * @param webexpirationdate The webexpirationdate to set
355      */

356     public void setWebexpirationdate(String JavaDoc webexpirationdate) {
357         this.webexpirationdate = webexpirationdate;
358         try {
359             expirationdate = new SimpleDateFormat JavaDoc("MM/dd/yyyy").parse(webexpirationdate);
360         } catch(java.text.ParseException JavaDoc ex) {
361         }
362     }
363
364     /**
365      * @return Returns the active.
366      */

367     public boolean isActive() {
368         return active;
369     }
370     /**
371      * @param active The active to set.
372      */

373     public void setActive(boolean active) {
374         this.active = active;
375     }
376     
377 }
378
Popular Tags