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