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.SectionAttachmentIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.SectionDataIfc;
24: import java.io.Serializable;
25: import java.util.Date;
26:
27: public class SectionAttachment extends AttachmentData implements
28: Serializable, SectionAttachmentIfc {
29: /**
30: *
31: */
32: private static final long serialVersionUID = 1020406350617514444L;
33: private SectionDataIfc section;
34:
35: public SectionAttachment() {
36: }
37:
38: public SectionAttachment(Long attachmentId, SectionDataIfc section,
39: String resourceId, String filename, String mimeType,
40: Long fileSize, String description, String location,
41: Boolean isLink, Integer status, String createdBy,
42: Date createdDate, String lastModifiedBy,
43: Date lastModifiedDate) {
44: super (attachmentId, resourceId,
45: SectionAttachmentIfc.SECTION_ATTACHMENT, filename,
46: mimeType, fileSize, description, location, isLink,
47: status, createdBy, createdDate, lastModifiedBy,
48: lastModifiedDate);
49: this .section = section;
50: }
51:
52: public SectionAttachment(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: SectionAttachmentIfc.SECTION_ATTACHMENT, filename,
59: mimeType, fileSize, description, location, isLink,
60: status, createdBy, createdDate, lastModifiedBy,
61: lastModifiedDate);
62: }
63:
64: public SectionDataIfc getSection() {
65: return section;
66: }
67:
68: public void setSection(SectionDataIfc section) {
69: this .section = section;
70: }
71:
72: public Long getAttachmentType() {
73: return SectionAttachmentIfc.SECTION_ATTACHMENT;
74: }
75:
76: public void setAttachmentType(Long attachmentType) {
77: }
78:
79: }
|