01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/trunk/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/grading/MediaData.java $
03: * $Id: MediaData.java 11438 2006-06-30 20:06:03Z daisyf@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the"License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.assessment.data.dao.assessment;
21:
22: import org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentAttachmentIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentIfc;
24: import java.io.Serializable;
25: import java.util.Date;
26:
27: public class AssessmentAttachment extends AttachmentData implements
28: Serializable, AssessmentAttachmentIfc {
29: /**
30: *
31: */
32: private static final long serialVersionUID = 5236325714234687092L;
33: private AssessmentIfc assessment;
34:
35: public AssessmentAttachment() {
36: }
37:
38: public AssessmentAttachment(Long attachmentId,
39: AssessmentIfc assessment, String resourceId,
40: String filename, String mimeType, Long fileSize,
41: String description, String location, Boolean isLink,
42: Integer status, String createdBy, Date createdDate,
43: String lastModifiedBy, Date lastModifiedDate) {
44: super (attachmentId, resourceId,
45: AssessmentAttachmentIfc.ASSESSMENT_ATTACHMENT,
46: filename, mimeType, fileSize, description, location,
47: isLink, status, createdBy, createdDate, lastModifiedBy,
48: lastModifiedDate);
49: this .assessment = assessment;
50: }
51:
52: public AssessmentAttachment(Long attachmentId, String resourceId,
53: String filename, String mimeType, Long fileSize,
54: String description, String location, Boolean isLink,
55: Integer status, String createdBy, Date createdDate,
56: String lastModifiedBy, Date lastModifiedDate) {
57: super (attachmentId, resourceId,
58: AssessmentAttachmentIfc.ASSESSMENT_ATTACHMENT,
59: filename, mimeType, fileSize, description, location,
60: isLink, status, createdBy, createdDate, lastModifiedBy,
61: lastModifiedDate);
62: }
63:
64: public AssessmentIfc getAssessment() {
65: return assessment;
66: }
67:
68: public void setAssessment(AssessmentIfc assessment) {
69: this .assessment = assessment;
70: }
71:
72: public Long getAttachmentType() {
73: return AssessmentAttachmentIfc.ASSESSMENT_ATTACHMENT;
74: }
75:
76: public void setAttachmentType(Long attachmentType) {
77: }
78:
79: }
|