001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/trunk/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/grading/MediaData.java $
003: * $Id: MediaData.java 11438 2006-06-30 20:06:03Z daisyf@stanford.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the"License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.tool.assessment.data.dao.assessment;
021:
022: import org.sakaiproject.tool.assessment.data.ifc.assessment.AttachmentIfc;
023: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemDataIfc;
024: import java.io.Serializable;
025: import java.util.Date;
026:
027: public class AttachmentData implements Serializable, AttachmentIfc {
028: /**
029: *
030: */
031: private static final long serialVersionUID = 6418622221846466766L;
032: private Long attachmentId;
033: private ItemDataIfc item;
034: private String resourceId;
035: private String filename;
036: private String mimeType;
037: private Long fileSize; // in kilobyte
038: private String description;
039: private String location;
040: private Boolean isLink;
041: private Integer status;
042: private String createdBy;
043: private Date createdDate;
044: private String lastModifiedBy;
045: private Date lastModifiedDate;
046: private Long attachmentType;
047:
048: public AttachmentData() {
049: }
050:
051: public AttachmentData(String resourceId, Long attachmentType,
052: String filename, String mimeType, Long fileSize,
053: String description, String location, Boolean isLink,
054: Integer status, String createdBy, Date createdDate,
055: String lastModifiedBy, Date lastModifiedDate) {
056: this .resourceId = resourceId;
057: this .attachmentType = attachmentType;
058: this .filename = filename;
059: this .mimeType = mimeType;
060: this .fileSize = fileSize;
061: this .description = description;
062: this .location = location;
063: this .isLink = isLink;
064: this .status = status;
065: this .createdBy = createdBy;
066: this .createdDate = createdDate;
067: this .lastModifiedBy = lastModifiedBy;
068: this .lastModifiedDate = lastModifiedDate;
069: }
070:
071: public AttachmentData(Long attachmentId, String resourceId,
072: Long attachmentType, String filename, String mimeType,
073: Long fileSize, String description, String location,
074: Boolean isLink, Integer status, String createdBy,
075: Date createdDate, String lastModifiedBy,
076: Date lastModifiedDate) {
077: this .attachmentId = attachmentId;
078: this .resourceId = resourceId;
079: this .attachmentType = attachmentType;
080: this .filename = filename;
081: this .mimeType = mimeType;
082: this .fileSize = fileSize;
083: this .description = description;
084: this .location = location;
085: this .isLink = isLink;
086: this .status = status;
087: this .createdBy = createdBy;
088: this .createdDate = createdDate;
089: this .lastModifiedBy = lastModifiedBy;
090: this .lastModifiedDate = lastModifiedDate;
091: }
092:
093: public Long getAttachmentId() {
094: return attachmentId;
095: }
096:
097: public void setAttachmentId(Long attachmentId) {
098: this .attachmentId = attachmentId;
099: }
100:
101: public String getResourceId() {
102: return resourceId;
103: }
104:
105: public void setResourceId(String resourceId) {
106: this .resourceId = resourceId;
107: }
108:
109: public String getFilename() {
110: return filename;
111: }
112:
113: public void setFilename(String filename) {
114: this .filename = filename;
115: }
116:
117: public void setMimeType(String mimeType) {
118: this .mimeType = mimeType;
119: }
120:
121: public String getMimeType() {
122: return mimeType;
123: }
124:
125: public Long getFileSize() {
126: return fileSize;
127: }
128:
129: public void setFileSize(Long fileSize) {
130: this .fileSize = fileSize;
131: }
132:
133: public String getDescription() {
134: return description;
135: }
136:
137: public void setDescription(String pdescription) {
138: description = pdescription;
139: }
140:
141: public String getLocation() {
142: return location;
143: }
144:
145: public void setLocation(String location) {
146: this .location = location;
147: }
148:
149: public Boolean getIsLink() {
150: return isLink;
151: }
152:
153: public void setIsLink(Boolean isLink) {
154: this .isLink = isLink;
155: }
156:
157: public Integer getStatus() {
158: return this .status;
159: }
160:
161: public void setStatus(Integer status) {
162: this .status = status;
163: }
164:
165: public String getCreatedBy() {
166: return this .createdBy;
167: }
168:
169: public void setCreatedBy(String createdBy) {
170: this .createdBy = createdBy;
171: }
172:
173: public Date getCreatedDate() {
174: return this .createdDate;
175: }
176:
177: public void setCreatedDate(Date createdDate) {
178: this .createdDate = createdDate;
179: }
180:
181: public String getLastModifiedBy() {
182: return this .lastModifiedBy;
183: }
184:
185: public void setLastModifiedBy(String lastModifiedBy) {
186: this .lastModifiedBy = lastModifiedBy;
187: }
188:
189: public Date getLastModifiedDate() {
190: return this .lastModifiedDate;
191: }
192:
193: public void setLastModifiedDate(Date lastModifiedDate) {
194: this .lastModifiedDate = lastModifiedDate;
195: }
196:
197: public Long getAttachmentType() {
198: return attachmentType;
199: }
200:
201: public void setAttachmentType(Long attachmentType) {
202: }
203:
204: }
|