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: //import java.util.ResourceBundle;
028:
029: public class PublishedAttachmentData implements Serializable,
030: AttachmentIfc {
031:
032: /**
033: *
034: */
035: private static final long serialVersionUID = -7673339618446778553L;
036: private Long attachmentId;
037: private ItemDataIfc item;
038: private String resourceId;
039: private String filename;
040: private String mimeType;
041: private Long fileSize; // in kilobyte
042: private String description;
043: private String location;
044: private Boolean isLink;
045: private Integer status;
046: private String createdBy;
047: private Date createdDate;
048: private String lastModifiedBy;
049: private Date lastModifiedDate;
050: private Long attachmentType;
051:
052: public PublishedAttachmentData() {
053: }
054:
055: public PublishedAttachmentData(String resourceId,
056: Long attachmentType, String filename, String mimeType,
057: Long fileSize, String description, String location,
058: Boolean isLink, Integer status, String createdBy,
059: Date createdDate, String lastModifiedBy,
060: Date lastModifiedDate) {
061: this .resourceId = resourceId;
062: this .attachmentType = attachmentType;
063: this .filename = filename;
064: this .mimeType = mimeType;
065: this .fileSize = fileSize;
066: this .description = description;
067: this .location = location;
068: this .isLink = isLink;
069: this .status = status;
070: this .createdBy = createdBy;
071: this .createdDate = createdDate;
072: this .lastModifiedBy = lastModifiedBy;
073: this .lastModifiedDate = lastModifiedDate;
074: }
075:
076: public PublishedAttachmentData(Long attachmentId,
077: String resourceId, Long attachmentType, String filename,
078: String mimeType, Long fileSize, String description,
079: String location, Boolean isLink, Integer status,
080: String createdBy, Date createdDate, String lastModifiedBy,
081: Date lastModifiedDate) {
082: this .attachmentId = attachmentId;
083: this .resourceId = resourceId;
084: this .attachmentType = attachmentType;
085: this .filename = filename;
086: this .mimeType = mimeType;
087: this .fileSize = fileSize;
088: this .description = description;
089: this .location = location;
090: this .isLink = isLink;
091: this .status = status;
092: this .createdBy = createdBy;
093: this .createdDate = createdDate;
094: this .lastModifiedBy = lastModifiedBy;
095: this .lastModifiedDate = lastModifiedDate;
096: }
097:
098: public Long getAttachmentId() {
099: return attachmentId;
100: }
101:
102: public void setAttachmentId(Long attachmentId) {
103: this .attachmentId = attachmentId;
104: }
105:
106: public String getResourceId() {
107: return resourceId;
108: }
109:
110: public void setResourceId(String resourceId) {
111: this .resourceId = resourceId;
112: }
113:
114: public String getFilename() {
115: return filename;
116: }
117:
118: public void setFilename(String filename) {
119: this .filename = filename;
120: }
121:
122: public void setMimeType(String mimeType) {
123: this .mimeType = mimeType;
124: }
125:
126: public String getMimeType() {
127: return mimeType;
128: }
129:
130: public Long getFileSize() {
131: return fileSize;
132: }
133:
134: public void setFileSize(Long fileSize) {
135: this .fileSize = fileSize;
136: }
137:
138: public String getDescription() {
139: return description;
140: }
141:
142: public void setDescription(String pdescription) {
143: description = pdescription;
144: }
145:
146: public String getLocation() {
147: return location;
148: }
149:
150: public void setLocation(String location) {
151: this .location = location;
152: }
153:
154: public Boolean getIsLink() {
155: return isLink;
156: }
157:
158: public void setIsLink(Boolean isLink) {
159: this .isLink = isLink;
160: }
161:
162: public Integer getStatus() {
163: return this .status;
164: }
165:
166: public void setStatus(Integer status) {
167: this .status = status;
168: }
169:
170: public String getCreatedBy() {
171: return this .createdBy;
172: }
173:
174: public void setCreatedBy(String createdBy) {
175: this .createdBy = createdBy;
176: }
177:
178: public Date getCreatedDate() {
179: return this .createdDate;
180: }
181:
182: public void setCreatedDate(Date createdDate) {
183: this .createdDate = createdDate;
184: }
185:
186: public String getLastModifiedBy() {
187: return this .lastModifiedBy;
188: }
189:
190: public void setLastModifiedBy(String lastModifiedBy) {
191: this .lastModifiedBy = lastModifiedBy;
192: }
193:
194: public Date getLastModifiedDate() {
195: return this .lastModifiedDate;
196: }
197:
198: public void setLastModifiedDate(Date lastModifiedDate) {
199: this .lastModifiedDate = lastModifiedDate;
200: }
201:
202: public Long getAttachmentType() {
203: return attachmentType;
204: }
205:
206: public void setAttachmentType(Long attachmentType) {
207: }
208:
209: }
|