001: /**
002: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
003: *
004: * This program is free software; you can redistribute it and/or modify
005: * it under the terms of the latest version of the GNU Lesser General
006: * Public License as published by the Free Software Foundation;
007: *
008: * This program is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
011: * GNU Lesser General Public License for more details.
012: *
013: * You should have received a copy of the GNU Lesser General Public License
014: * along with this program (LICENSE.txt); if not, write to the Free Software
015: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
016: */package org.jamwiki.model;
017:
018: import java.sql.Timestamp;
019: import org.jamwiki.utils.WikiLogger;
020:
021: /**
022: * Provides an object representing a version of a file uploaded to the Wiki.
023: */
024: public class WikiFileVersion {
025:
026: private Integer authorId = null;
027: private String authorIpAddress = null;
028: private int fileId = -1;
029: private long fileSize = -1;
030: private int fileVersionId = -1;
031: private String mimeType = null;
032: private String uploadComment = null;
033: private Timestamp uploadDate = new Timestamp(System
034: .currentTimeMillis());
035: private String url = null;
036: private static final WikiLogger logger = WikiLogger
037: .getLogger(WikiFileVersion.class.getName());
038:
039: /**
040: *
041: */
042: public WikiFileVersion() {
043: }
044:
045: /**
046: *
047: */
048: public Integer getAuthorId() {
049: return this .authorId;
050: }
051:
052: /**
053: *
054: */
055: public void setAuthorId(Integer authorId) {
056: this .authorId = authorId;
057: }
058:
059: /**
060: *
061: */
062: public String getAuthorIpAddress() {
063: return this .authorIpAddress;
064: }
065:
066: /**
067: *
068: */
069: public void setAuthorIpAddress(String authorIpAddress) {
070: this .authorIpAddress = authorIpAddress;
071: }
072:
073: /**
074: *
075: */
076: public int getFileId() {
077: return this .fileId;
078: }
079:
080: /**
081: *
082: */
083: public void setFileId(int fileId) {
084: this .fileId = fileId;
085: }
086:
087: /**
088: *
089: */
090: public long getFileSize() {
091: return this .fileSize;
092: }
093:
094: /**
095: *
096: */
097: public void setFileSize(long fileSize) {
098: this .fileSize = fileSize;
099: }
100:
101: /**
102: *
103: */
104: public int getFileVersionId() {
105: return this .fileVersionId;
106: }
107:
108: /**
109: *
110: */
111: public void setFileVersionId(int fileVersionId) {
112: this .fileVersionId = fileVersionId;
113: }
114:
115: /**
116: *
117: */
118: public String getMimeType() {
119: return this .mimeType;
120: }
121:
122: /**
123: *
124: */
125: public void setMimeType(String mimeType) {
126: this .mimeType = mimeType;
127: }
128:
129: /**
130: *
131: */
132: public String getUploadComment() {
133: return this .uploadComment;
134: }
135:
136: /**
137: *
138: */
139: public void setUploadComment(String uploadComment) {
140: this .uploadComment = uploadComment;
141: }
142:
143: /**
144: *
145: */
146: public Timestamp getUploadDate() {
147: return this .uploadDate;
148: }
149:
150: /**
151: *
152: */
153: public void setUploadDate(Timestamp uploadDate) {
154: this .uploadDate = uploadDate;
155: }
156:
157: /**
158: *
159: */
160: public String getUrl() {
161: return this .url;
162: }
163:
164: /**
165: *
166: */
167: public void setUrl(String url) {
168: this.url = url;
169: }
170: }
|