1 package com.dotmarketing.portlets.jobs.struts; 2 3 import java.text.SimpleDateFormat ; 4 5 import javax.servlet.http.HttpServletRequest ; 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 16 public class ResumeForm extends ValidatorForm { 17 18 19 private long inode; 20 21 22 private boolean member; 23 24 25 private String name; 26 27 28 private String streetname1; 29 30 31 private String streetname2; 32 33 34 private String city; 35 36 37 private String state; 38 39 40 private String zip; 41 42 43 private String phone; 44 45 46 private String fax; 47 48 49 private String email; 50 51 52 private String exclusion1; 53 54 55 private String exclusion2; 56 57 58 private String exclusion3; 59 60 private String exclusion4; 61 62 63 private boolean verified; 64 65 66 private String objective; 67 68 69 private String location; 70 71 72 private String salary; 73 74 75 private String qualification; 76 77 78 80 private String webexpirationdate; 81 82 83 private java.util.Date expirationdate; 84 85 86 private String cctype; 87 88 89 private String ccnum; 90 91 92 private String ccexp; 93 94 private boolean active; 95 96 static final int MAX_FILE_SIZE = 2000 * 1024; 98 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 114 public boolean isMember() { 115 return member; 116 } 117 120 public void setMember(boolean member) { 121 this.member = member; 122 } 123 public java.lang.String getName() { 124 return this.name; 125 } 126 127 public void setName(java.lang.String name) { 128 this.name = name; 129 } 130 public java.lang.String getStreetname1() { 131 return this.streetname1; 132 } 133 134 public void setStreetname1(java.lang.String streetname1) { 135 this.streetname1 = streetname1; 136 } 137 public java.lang.String getStreetname2() { 138 return this.streetname2; 139 } 140 141 public void setStreetname2(java.lang.String streetname2) { 142 this.streetname2 = streetname2; 143 } 144 public java.lang.String getCity() { 145 return this.city; 146 } 147 148 public void setCity(java.lang.String city) { 149 this.city = city; 150 } 151 public java.lang.String getState() { 152 return this.state; 153 } 154 155 public void setState(java.lang.String state) { 156 this.state = state; 157 } 158 public java.lang.String getZip() { 159 return this.zip; 160 } 161 162 public void setZip(java.lang.String zip) { 163 this.zip = zip; 164 } 165 public java.lang.String getPhone() { 166 return this.phone; 167 } 168 169 public void setPhone(java.lang.String phone) { 170 this.phone = phone; 171 } 172 public java.lang.String getFax() { 173 return this.fax; 174 } 175 176 public void setFax(java.lang.String fax) { 177 this.fax = fax; 178 } 179 public java.lang.String getEmail() { 180 return this.email; 181 } 182 183 public void setEmail(java.lang.String email) { 184 this.email = email; 185 } 186 public java.lang.String getExclusion1() { 187 return this.exclusion1; 188 } 189 190 public void setExclusion1(java.lang.String exclusion1) { 191 this.exclusion1 = exclusion1; 192 } 193 public java.lang.String getExclusion2() { 194 return this.exclusion2; 195 } 196 197 public void setExclusion2(java.lang.String exclusion2) { 198 this.exclusion2 = exclusion2; 199 } 200 public java.lang.String getExclusion3() { 201 return this.exclusion3; 202 } 203 204 public void setExclusion3(java.lang.String 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 getObjective() { 215 return this.objective; 216 } 217 218 public void setObjective(java.lang.String objective) { 219 this.objective = objective; 220 } 221 public java.lang.String getLocation() { 222 return this.location; 223 } 224 225 public void setLocation(java.lang.String location) { 226 this.location = location; 227 } 228 public java.lang.String getSalary() { 229 return this.salary; 230 } 231 232 public void setSalary(java.lang.String salary) { 233 this.salary = salary; 234 } 235 public java.lang.String getQualification() { 236 return this.qualification; 237 } 238 239 public void setQualification(java.lang.String qualification) { 240 this.qualification = qualification; 241 } 242 243 public java.util.Date getExpirationdate() { 244 return this.expirationdate; 245 } 246 247 public void setExpirationdate(java.util.Date expirationdate) { 248 this.expirationdate = expirationdate; 249 } 250 251 public String toString() { 252 return ToStringBuilder.reflectionToString(this); 253 } 254 255 259 public String getExclusion4() { 260 return exclusion4; 261 } 262 263 267 public void setExclusion4(String exclusion4) { 268 this.exclusion4 = exclusion4; 269 } 270 271 275 public String getCcexp() { 276 return ccexp; 277 } 278 279 283 public String getCcnum() { 284 return ccnum; 285 } 286 287 291 public String getCctype() { 292 return cctype; 293 } 294 295 296 300 public boolean isVerified() { 301 return verified; 302 } 303 304 308 public void setCcexp(String ccexp) { 309 this.ccexp = ccexp; 310 } 311 312 316 public void setCcnum(String ccnum) { 317 this.ccnum = ccnum; 318 } 319 320 324 public void setCctype(String cctype) { 325 this.cctype = cctype; 326 } 327 328 public ActionErrors validate(ActionMapping mapping, HttpServletRequest 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 346 public String getWebexpirationdate() { 347 if(expirationdate!=null) 348 this.webexpirationdate = new SimpleDateFormat ("MM/dd/yyyy").format(this.expirationdate); 349 return webexpirationdate; 350 } 351 352 356 public void setWebexpirationdate(String webexpirationdate) { 357 this.webexpirationdate = webexpirationdate; 358 try { 359 expirationdate = new SimpleDateFormat ("MM/dd/yyyy").parse(webexpirationdate); 360 } catch(java.text.ParseException ex) { 361 } 362 } 363 364 367 public boolean isActive() { 368 return active; 369 } 370 373 public void setActive(boolean active) { 374 this.active = active; 375 } 376 377 } 378 | Popular Tags |