1 package com.dotmarketing.portlets.events.model; 2 3 import java.io.Serializable ; 4 import java.util.Date ; 5 6 import org.apache.commons.lang.builder.EqualsBuilder; 7 import org.apache.commons.lang.builder.HashCodeBuilder; 8 import org.apache.commons.lang.builder.ToStringBuilder; 9 import com.dotmarketing.beans.*; 10 11 12 public class Event extends Inode implements Serializable , Comparable { 13 14 15 17 18 private String title; 19 20 21 private String subtitle; 22 23 24 private java.util.Date startDate; 25 26 27 private java.util.Date endDate; 28 29 30 private String location; 31 32 33 private String address1; 34 35 36 private String address2; 37 38 39 private String address3; 40 41 42 private String city; 43 44 45 private String state; 46 47 48 private String zip; 49 50 51 private String country; 52 53 54 private String email; 55 56 57 private String phone; 58 59 60 private String fax; 61 62 63 private String url; 64 65 66 private boolean registration; 67 68 69 private String includeFile; 70 71 72 private boolean showPublic; 73 74 75 private String contactName; 76 77 78 private String contactCompany; 79 80 81 private String contactPhone; 82 83 84 private String contactEmail; 85 86 87 private String contactFax; 88 89 90 private String directions; 91 92 93 private String description; 94 95 96 private String emailResponse; 97 98 99 private String webAddress; 100 101 102 private Date setupDate; 103 104 105 private Date breakDate; 106 107 108 private int approvalStatus; 109 110 111 private String commentsEquipment; 112 113 114 private boolean receivedAdminApproval; 115 116 private String userId; 117 118 private boolean timeTBD; 119 private boolean featured; 120 public boolean isFeatured() { 121 return featured; 122 } 123 124 public void setFeatured(boolean featured) { 125 this.featured = featured; 126 } 127 128 129 public Event() { 130 super.setType("event"); 131 startDate = new java.util.Date (); 132 endDate = new java.util.Date (); 133 setupDate = new java.util.Date (); 134 breakDate = new java.util.Date (); 135 showPublic = false; 136 } 137 138 public java.lang.String getTitle() { 139 return this.title; 140 } 141 142 public void setTitle(java.lang.String title) { 143 this.title = title; 144 } 145 146 public java.util.Date getStartDate() { 147 return this.startDate; 148 } 149 150 public void setStartDate(java.util.Date startDate) { 151 this.startDate = startDate; 152 } 153 154 public java.util.Date getEndDate() { 155 return this.endDate; 156 } 157 158 public void setEndDate(java.util.Date endDate) { 159 this.endDate = endDate; 160 } 161 162 public java.lang.String getLocation() { 163 return this.location; 164 } 165 166 public void setLocation(java.lang.String location) { 167 this.location = location; 168 } 169 170 public java.lang.String getAddress1() { 171 return this.address1; 172 } 173 174 public void setAddress1(java.lang.String address1) { 175 this.address1 = address1; 176 } 177 178 public java.lang.String getAddress2() { 179 return this.address2; 180 } 181 182 public void setAddress2(java.lang.String address2) { 183 this.address2 = address2; 184 } 185 186 public java.lang.String getAddress3() { 187 return this.address3; 188 } 189 190 public void setAddress3(java.lang.String address3) { 191 this.address3 = address3; 192 } 193 194 public java.lang.String getCity() { 195 return this.city; 196 } 197 198 public void setCity(java.lang.String city) { 199 this.city = city; 200 } 201 202 public java.lang.String getState() { 203 return this.state; 204 } 205 206 public void setState(java.lang.String state) { 207 this.state = state; 208 } 209 210 public java.lang.String getZip() { 211 return this.zip; 212 } 213 214 public void setZip(java.lang.String zip) { 215 this.zip = zip; 216 } 217 218 public java.lang.String getCountry() { 219 return this.country; 220 } 221 222 public void setCountry(java.lang.String country) { 223 this.country = country; 224 } 225 226 public java.lang.String getEmail() { 227 return this.email; 228 } 229 230 public void setEmail(java.lang.String email) { 231 this.email = email; 232 } 233 234 public java.lang.String getPhone() { 235 return this.phone; 236 } 237 238 public void setPhone(java.lang.String phone) { 239 this.phone = phone; 240 } 241 242 public java.lang.String getFax() { 243 return this.fax; 244 } 245 246 public void setFax(java.lang.String fax) { 247 this.fax = fax; 248 } 249 250 public java.lang.String getUrl() { 251 return this.url; 252 } 253 254 public void setUrl(java.lang.String url) { 255 this.url = url; 256 } 257 258 259 260 public java.lang.String getIncludeFile() { 261 return this.includeFile; 262 } 263 264 public void setIncludeFile(java.lang.String includeFile) { 265 this.includeFile = includeFile; 266 } 267 268 public boolean getShowPublic() { 269 return this.showPublic; 270 } 271 272 public void setShowPublic(boolean showPublic) { 273 this.showPublic = showPublic; 274 } 275 276 public java.lang.String getContactName() { 277 return this.contactName; 278 } 279 280 public void setContactName(java.lang.String contactName) { 281 this.contactName = contactName; 282 } 283 284 public java.lang.String getContactCompany() { 285 return this.contactCompany; 286 } 287 288 public void setContactCompany(java.lang.String contactCompany) { 289 this.contactCompany = contactCompany; 290 } 291 292 public java.lang.String getContactPhone() { 293 return this.contactPhone; 294 } 295 296 public void setContactPhone(java.lang.String contactPhone) { 297 this.contactPhone = contactPhone; 298 } 299 300 public java.lang.String getContactEmail() { 301 return this.contactEmail; 302 } 303 304 public void setContactEmail(java.lang.String contactEmail) { 305 this.contactEmail = contactEmail; 306 } 307 308 public java.lang.String getContactFax() { 309 return this.contactFax; 310 } 311 312 public void setContactFax(java.lang.String contactFax) { 313 this.contactFax = contactFax; 314 } 315 316 public java.lang.String getDirections() { 317 return this.directions; 318 } 319 320 public void setDirections(java.lang.String directions) { 321 this.directions = directions; 322 } 323 324 public java.lang.String getDescription() { 325 return this.description; 326 } 327 328 public void setDescription(java.lang.String description) { 329 this.description = description; 330 } 331 332 public java.lang.String getEmailResponse() { 333 return this.emailResponse; 334 } 335 336 public void setEmailResponse(java.lang.String emailResponse) { 337 this.emailResponse = emailResponse; 338 } 339 340 public String toString() { 341 return new ToStringBuilder(this) 342 .append("inode", getInode()) 343 .toString(); 344 } 345 346 public boolean equals(Object other) { 347 if ( !(other instanceof Event) ) return false; 348 Event castOther = (Event) other; 349 return new EqualsBuilder() 350 .append(this.getInode(), castOther.getInode()) 351 .isEquals(); 352 } 353 354 public int compareTo(Object other) { 355 if ( !(other instanceof Event) ) return 0; 356 Event castOther = (Event) other; 357 358 359 if(this.getStartDate().before(castOther.getStartDate())) return -1; 360 if(this.getStartDate().after(castOther.getStartDate())) return 0; 361 362 return 0; 363 364 } 365 366 public int hashCode() { 367 return new HashCodeBuilder() 368 .append(getInode()) 369 .toHashCode(); 370 } 371 372 376 public boolean isShowPublic() { 377 return showPublic; 378 } 379 380 384 public boolean isRegistration() { 385 return registration; 386 } 387 388 392 public void setRegistration(boolean registration) { 393 this.registration = registration; 394 } 395 396 400 public String getWebAddress() { 401 return webAddress; 402 } 403 404 408 public void setWebAddress(String webAddress) { 409 this.webAddress = webAddress; 410 } 411 412 415 public String getUserId() { 416 return userId; 417 } 418 421 public void setUserId(String userId) { 422 this.userId = userId; 423 } 424 427 public String getSubtitle() { 428 return subtitle; 429 } 430 433 public void setSubtitle(String subtitle) { 434 this.subtitle = subtitle; 435 } 436 public int getApprovalStatus() { 437 return approvalStatus; 438 } 439 public void setApprovalStatus(int approvalStatus) { 440 this.approvalStatus = approvalStatus; 441 } 442 public Date getBreakDate() { 443 return breakDate; 444 } 445 public void setBreakDate(Date breakDate) { 446 this.breakDate = breakDate; 447 } 448 public String getCommentsEquipment() { 449 return commentsEquipment; 450 } 451 public void setCommentsEquipment(String commentsEquipment) { 452 this.commentsEquipment = commentsEquipment; 453 } 454 public boolean isReceivedAdminApproval() { 455 return receivedAdminApproval; 456 } 457 public void setReceivedAdminApproval(boolean receivedAdminApproval) { 458 this.receivedAdminApproval = receivedAdminApproval; 459 } 460 public Date getSetupDate() { 461 return setupDate; 462 } 463 public void setSetupDate(Date setupDate) { 464 this.setupDate = setupDate; 465 } 466 public boolean isTimeTBD() { 467 return timeTBD; 468 } 469 public void setTimeTBD(boolean timeTBD) { 470 this.timeTBD = timeTBD; 471 } 472 } 473 | Popular Tags |