1 19 20 package za.org.coefficient.modules.fileUpload; 21 22 import za.org.coefficient.authentication.CoefficientUser; 23 24 import java.util.Locale ; 25 import java.sql.Timestamp ; 26 27 33 public class ProjectUpload implements java.io.Serializable { 34 36 private CoefficientUser coefficientUser; 37 private Long ID; 38 private ProjectFolderItem folderItem; 39 private String filename; 40 private String mimeType; 41 private String userComment; 42 private Timestamp timestamp; 43 private double version; private int fileSize; 45 private String url; 46 private Locale language; 47 private boolean showUploader; 48 49 51 public ProjectUpload() { 52 version = 0.1; 53 mimeType = "unknown"; 54 timestamp = new Timestamp (System.currentTimeMillis()); 55 } 56 57 59 public void setFileSize(int fileSize) { 60 this.fileSize = fileSize; 61 } 62 63 67 public int getFileSize() { 68 return fileSize; 69 } 70 71 public void setFilename(String filename) { 72 this.filename = filename; 73 } 74 75 79 public String getFilename() { 80 return filename; 81 } 82 83 public void setFolderItem(ProjectFolderItem folderItem) { 84 this.folderItem = folderItem; 85 } 86 87 92 public ProjectFolderItem getFolderItem() { 93 return folderItem; 94 } 95 96 public void setID(Long ID) { 97 this.ID = ID; 98 } 99 100 104 public Long getID() { 105 return ID; 106 } 107 108 public void setMimeType(String mimeType) { 109 this.mimeType = mimeType; 110 } 111 112 116 public String getMimeType() { 117 return mimeType; 118 } 119 120 public void setCoefficientUser(CoefficientUser user) { 121 this.coefficientUser = user; 122 } 123 124 129 public CoefficientUser getCoefficientUser() { 130 return coefficientUser; 131 } 132 133 public void setTimestamp(Timestamp timestamp) { 134 this.timestamp = timestamp; 135 } 136 137 141 public Timestamp getTimestamp() { 142 return timestamp; 143 } 144 145 public void setUserComment(String userComment) { 146 this.userComment = userComment; 147 } 148 149 154 public String getUserComment() { 155 return userComment; 156 } 157 158 public void setVersion(double version) { 159 this.version = version; 160 } 161 162 166 public double getVersion() { 167 return version; 168 } 169 170 175 public void setLanguage(Locale argLanguage) { 176 this.language = argLanguage; 177 } 178 179 187 public Locale getLanguage() { 188 return this.language; 189 } 190 191 192 199 public String getUrl() { 200 return this.url; 201 } 202 203 208 public void setUrl(String argUrl) { 209 this.url = argUrl; 210 } 211 212 219 public boolean getShowUploader() { 220 return this.showUploader; 221 } 222 223 228 public void setShowUploader(boolean argShowUploader) { 229 this.showUploader = argShowUploader; 230 } 231 232 } 233 | Popular Tags |