1 package com.dotmarketing.portlets.fileUpload.model; 2 3 import java.io.Serializable ; 4 5 import org.apache.commons.lang.builder.EqualsBuilder; 6 import org.apache.commons.lang.builder.HashCodeBuilder; 7 import org.apache.commons.lang.builder.ToStringBuilder; 8 9 import com.dotmarketing.beans.Inode; 10 11 12 public class FileUpload extends Inode implements Serializable { 13 14 private static final long serialVersionUID = 1L; 15 16 17 private long inode; 18 19 20 private String fileName; 21 22 23 private long fileSize; 24 25 26 private String caption; 27 28 29 private int width; 30 31 32 private int height; 33 34 35 private int sortOrder; 36 37 38 private String alignment; 39 40 41 private long parent; 42 43 44 private long maxsize; 45 46 47 private long maxwidth; 48 49 50 private long maxheight; 51 52 53 private long minheight; 54 55 56 public FileUpload() { 57 super.setType("file_upload"); 58 } 59 60 public long getInode() { 61 return this.inode; 62 } 63 64 public void setInode(long inode) { 65 this.inode = inode; 66 } 67 public java.lang.String getFileName() { 68 return this.fileName; 69 } 70 71 public void setFileName(java.lang.String fileName) { 72 this.fileName = fileName; 73 } 74 public java.lang.String getCaption() { 75 return this.caption; 76 } 77 78 public void setCaption(java.lang.String caption) { 79 this.caption = caption; 80 } 81 public int getWidth() { 82 return this.width; 83 } 84 85 public void setWidth(int width) { 86 this.width = width; 87 } 88 public int getHeight() { 89 return this.height; 90 } 91 92 public void setHeight(int height) { 93 this.height = height; 94 } 95 public java.lang.String getAlignment() { 96 return this.alignment; 97 } 98 99 public void setAlignment(java.lang.String alignment) { 100 this.alignment = alignment; 101 } 102 103 public String toString() { 104 return ToStringBuilder.reflectionToString(this); 105 } 106 107 public boolean equals(Object other) { 108 if ( !(other instanceof FileUpload) ) return false; 109 FileUpload castOther = (FileUpload) other; 110 return new EqualsBuilder() 111 .append(this.inode, castOther.inode) 112 .isEquals(); 113 } 114 115 public int hashCode() { 116 return new HashCodeBuilder() 117 .append(inode) 118 .toHashCode(); 119 } 120 121 125 public int getSortOrder() { 126 return sortOrder; 127 } 128 129 133 public void setSortOrder(int sortOrder) { 134 this.sortOrder = sortOrder; 135 } 136 140 public long getMaxheight() { 141 return maxheight; 142 } 143 144 148 public long getMaxsize() { 149 return maxsize; 150 } 151 152 156 public long getMaxwidth() { 157 return maxwidth; 158 } 159 160 164 public long getMinheight() { 165 return minheight; 166 } 167 168 172 public long getParent() { 173 return parent; 174 } 175 176 180 public void setMaxheight(long maxheight) { 181 this.maxheight = maxheight; 182 } 183 184 188 public void setMaxsize(long maxsize) { 189 this.maxsize = maxsize; 190 } 191 192 196 public void setMaxwidth(long maxwidth) { 197 this.maxwidth = maxwidth; 198 } 199 200 204 public void setMinheight(long minheight) { 205 this.minheight = minheight; 206 } 207 208 212 public void setParent(long parent) { 213 this.parent = parent; 214 } 215 216 217 218 221 public long getFileSize() { 222 return fileSize; 223 } 224 225 228 public void setFileSize(long l) { 229 fileSize = l; 230 } 231 232 } 233 | Popular Tags |