| 1 package com.dotmarketing.portlets.webevents.model; 2 3 import com.dotmarketing.beans.Inode; 4 5 public class WebEvent extends Inode implements Comparable { 6 7 10 private static final long serialVersionUID = 1L; 11 12 private String title; private String subtitle; private String summary; private String description; private String termsConditions; private String comments; private boolean partnersOnly; private boolean showOnWeb; private int sortOrder; private long eventImage1; private long eventImage2; private long eventImage3; private long eventImage4; private boolean institute; 27 public WebEvent() { 28 super.setType("web_event"); 29 } 30 31 34 public String getComments() { 35 return comments; 36 } 37 38 41 public void setComments(String comments) { 42 this.comments = comments; 43 } 44 45 48 public String getDescription() { 49 return description; 50 } 51 52 55 public void setDescription(String description) { 56 this.description = description; 57 } 58 59 62 public long getEventImage1() { 63 return eventImage1; 64 } 65 66 69 public void setEventImage1(long eventImage1) { 70 this.eventImage1 = eventImage1; 71 } 72 73 76 public long getEventImage2() { 77 return eventImage2; 78 } 79 80 83 public void setEventImage2(long eventImage2) { 84 this.eventImage2 = eventImage2; 85 } 86 87 90 public long getEventImage3() { 91 return eventImage3; 92 } 93 94 97 public void setEventImage3(long eventImage3) { 98 this.eventImage3 = eventImage3; 99 } 100 101 104 public long getEventImage4() { 105 return eventImage4; 106 } 107 108 111 public void setEventImage4(long eventImage4) { 112 this.eventImage4 = eventImage4; 113 } 114 115 118 public boolean isPartnersOnly() { 119 return partnersOnly; 120 } 121 122 125 public void setPartnersOnly(boolean partnersOnly) { 126 this.partnersOnly = partnersOnly; 127 } 128 129 132 public boolean isShowOnWeb() { 133 return showOnWeb; 134 } 135 136 139 public void setShowOnWeb(boolean showOnWeb) { 140 this.showOnWeb = showOnWeb; 141 } 142 143 146 public int getSortOrder() { 147 return sortOrder; 148 } 149 150 153 public void setSortOrder(int sortOrder) { 154 this.sortOrder = sortOrder; 155 } 156 157 160 public String getSubtitle() { 161 return subtitle; 162 } 163 164 167 public void setSubtitle(String subtitle) { 168 this.subtitle = subtitle; 169 } 170 171 174 public String getSummary() { 175 return summary; 176 } 177 178 181 public void setSummary(String summary) { 182 this.summary = summary; 183 } 184 185 188 public String getTermsConditions() { 189 return termsConditions; 190 } 191 192 195 public void setTermsConditions(String termsConditions) { 196 this.termsConditions = termsConditions; 197 } 198 199 202 public String getTitle() { 203 return title; 204 } 205 206 209 public void setTitle(String title) { 210 this.title = title; 211 } 212 213 public int compareTo(Object other) { 214 if ( !(other instanceof WebEvent) ) return 0; 215 216 WebEvent castOther = (WebEvent) other; 217 218 if(this.getSortOrder()< castOther.getSortOrder()) return -1; 219 if(this.getSortOrder()> castOther.getSortOrder()) return 1; 220 221 return 0; 222 } 223 224 227 public boolean isInstitute() { 228 return institute; 229 } 230 231 234 public void setInstitute(boolean institute) { 235 this.institute = institute; 236 } 237 238 239 } 240 | Popular Tags |