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 PublishedAssessmentAttachment extends
28: PublishedAttachmentData implements Serializable,
29: AssessmentAttachmentIfc {
30: /**
31: *
32: */
33: private static final long serialVersionUID = -4215583647648041764L;
34: private AssessmentIfc assessment;
35:
36: public PublishedAssessmentAttachment() {
37: }
38:
39: public PublishedAssessmentAttachment(Long attachmentId,
40: AssessmentIfc assessment, String resourceId,
41: String filename, String mimeType, Long fileSize,
42: String description, String location, Boolean isLink,
43: Integer status, String createdBy, Date createdDate,
44: String lastModifiedBy, Date lastModifiedDate) {
45: super (attachmentId, resourceId,
46: AssessmentAttachmentIfc.ASSESSMENT_ATTACHMENT,
47: filename, mimeType, fileSize, description, location,
48: isLink, status, createdBy, createdDate, lastModifiedBy,
49: lastModifiedDate);
50: this .assessment = assessment;
51: }
52:
53: public PublishedAssessmentAttachment(Long attachmentId,
54: String resourceId, String filename, String mimeType,
55: Long fileSize, String description, String location,
56: Boolean isLink, Integer status, String createdBy,
57: Date createdDate, String lastModifiedBy,
58: Date lastModifiedDate) {
59: super (attachmentId, resourceId,
60: AssessmentAttachmentIfc.ASSESSMENT_ATTACHMENT,
61: filename, mimeType, fileSize, description, location,
62: isLink, status, createdBy, createdDate, lastModifiedBy,
63: lastModifiedDate);
64: }
65:
66: public AssessmentIfc getAssessment() {
67: return assessment;
68: }
69:
70: public void setAssessment(AssessmentIfc assessment) {
71: this .assessment = assessment;
72: }
73:
74: public Long getAttachmentType() {
75: return AssessmentAttachmentIfc.ASSESSMENT_ATTACHMENT;
76: }
77:
78: public void setAttachmentType(Long attachmentType) {
79: }
80:
81: }
|