01: package org.emforge.xfer;
02:
03: import java.util.Date;
04:
05: /** Transfer object for working with attachments
06: * Unfortunatelly we cannot use Attachment object from JspWiki directly
07: * Since it is serializible and containts reference to WikiEngine itself
08: *
09: * @author akakunin
10: *
11: */
12: public class AttachmentTO {
13: private String parentName;
14: private String fileName;
15: private Integer version;
16: private Date lastModified;
17: private String author;
18: private Integer fileSize;
19:
20: public String getParentName() {
21: return parentName;
22: }
23:
24: public void setParentName(String i_parentName) {
25: parentName = i_parentName;
26: }
27:
28: public String getFileName() {
29: return fileName;
30: }
31:
32: public void setFileName(String i_fileName) {
33: fileName = i_fileName;
34: }
35:
36: public Integer getVersion() {
37: return version;
38: }
39:
40: public void setVersion(Integer i_version) {
41: version = i_version;
42: }
43:
44: public Date getLastModified() {
45: return lastModified;
46: }
47:
48: public void setLastModified(Date i_lastModified) {
49: lastModified = i_lastModified;
50: }
51:
52: public String getAuthor() {
53: return author;
54: }
55:
56: public void setAuthor(String i_author) {
57: author = i_author;
58: }
59:
60: public Integer getFileSize() {
61: return fileSize;
62: }
63:
64: public void setFileSize(Integer i_fileSize) {
65: fileSize = i_fileSize;
66: }
67:
68: }
|