1 package com.dotmarketing.portlets.banners.model; 2 3 import java.io.Serializable ; 4 5 import org.apache.commons.lang.builder.ToStringBuilder; 6 7 import com.dotmarketing.beans.Inode; 8 9 10 public class Banner extends Inode implements Serializable { 11 12 private String [] categories; 13 14 15 private long parent; 16 17 18 private String title; 19 20 21 private String caption; 22 23 24 private String imageFile; 25 26 27 private int imageWidth; 28 29 30 private int imageHeight; 31 32 33 private String altText; 34 35 36 private boolean newWindow; 37 38 39 private String link; 40 41 42 private java.util.Date startDate; 43 44 45 private java.util.Date endDate; 46 47 48 private String body; 49 50 51 private boolean active; 52 53 54 private int nmbrViews; 55 56 57 private int nmbrClicks; 58 59 60 private long image; 61 62 63 private long htmlpage; 64 65 66 private String path; 67 68 69 private String placement; 70 71 72 73 public Banner() { 74 this.setType("Banner"); 75 startDate = new java.util.Date (); 76 endDate = new java.util.Date (); 77 } 78 79 82 public String getPath() { 83 return path; 84 } 85 88 public void setPath(String path) { 89 this.path = path; 90 } 91 94 public String getPlacement() { 95 return placement; 96 } 97 100 public void setPlacement(String placement) { 101 this.placement = placement; 102 } 103 public java.lang.String getTitle() { 104 return this.title; 105 } 106 107 public void setTitle(java.lang.String title) { 108 this.title = title; 109 } 110 public java.lang.String getImageFile() { 111 return this.imageFile; 112 } 113 114 public void setImageFile(java.lang.String imageFile) { 115 this.imageFile = imageFile; 116 } 117 public int getImageWidth() { 118 return this.imageWidth; 119 } 120 121 public void setImageWidth(int imageWidth) { 122 this.imageWidth = imageWidth; 123 } 124 public int getImageHeight() { 125 return this.imageHeight; 126 } 127 128 public void setImageHeight(int imageHeight) { 129 this.imageHeight = imageHeight; 130 } 131 public java.lang.String getAltText() { 132 return this.altText; 133 } 134 135 public void setAltText(java.lang.String altText) { 136 this.altText = altText; 137 } 138 139 140 141 public java.lang.String getLink() { 142 return this.link; 143 } 144 145 public void setLink(java.lang.String link) { 146 this.link = link; 147 } 148 public java.util.Date getStartDate() { 149 return this.startDate; 150 } 151 152 public void setStartDate(java.util.Date startDate) { 153 this.startDate = startDate; 154 } 155 public java.util.Date getEndDate() { 156 return this.endDate; 157 } 158 159 public void setEndDate(java.util.Date endDate) { 160 this.endDate = endDate; 161 } 162 public java.lang.String getBody() { 163 return this.body; 164 } 165 166 public void setBody(java.lang.String body) { 167 this.body = body; 168 } 169 170 171 public int getNmbrViews() { 172 return this.nmbrViews; 173 } 174 175 public void setNmbrViews(int nmbrViews) { 176 this.nmbrViews = nmbrViews; 177 } 178 public int getNmbrClicks() { 179 return this.nmbrClicks; 180 } 181 182 public void setNmbrClicks(int nmbrClicks) { 183 this.nmbrClicks = nmbrClicks; 184 } 185 186 public String toString() { 187 return ToStringBuilder.reflectionToString(this); 188 } 189 190 191 195 public boolean isActive() { 196 return active; 197 } 198 199 203 public boolean isNewWindow() { 204 return newWindow; 205 } 206 207 211 public void setActive(boolean active) { 212 this.active = active; 213 } 214 215 219 public void setNewWindow(boolean newWindow) { 220 this.newWindow = newWindow; 221 } 222 223 227 public long getInode() { 228 return inode; 229 } 230 231 235 public void setInode(long inode) { 236 this.inode = inode; 237 } 238 239 243 public String [] getCategories() { 244 return categories; 245 } 246 247 251 public void setCategories(String [] categories) { 252 this.categories = categories; 253 } 254 255 259 public String getCaption() { 260 return caption; 261 } 262 263 267 public void setCaption(String caption) { 268 this.caption = caption; 269 } 270 271 274 public long getImage() { 275 return image; 276 } 277 280 public void setImage(long image) { 281 this.image = image; 282 } 283 286 public long getParent() { 287 return parent; 288 } 289 292 public void setParent(long parent) { 293 this.parent = parent; 294 } 295 296 299 public long getHtmlpage() { 300 return htmlpage; 301 } 302 305 public void setHtmlpage(long htmlpage) { 306 this.htmlpage = htmlpage; 307 } 308 } 309 | Popular Tags |