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 PublishedSectionAttachment extends PublishedAttachmentData
28: implements Serializable, SectionAttachmentIfc {
29: /**
30: *
31: */
32: private static final long serialVersionUID = 3811461383814780684L;
33: private SectionDataIfc section;
34:
35: public PublishedSectionAttachment() {
36: }
37:
38: public PublishedSectionAttachment(Long attachmentId,
39: SectionDataIfc section, String resourceId, String filename,
40: String mimeType, Long fileSize, String description,
41: String location, Boolean isLink, Integer status,
42: String createdBy, 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 PublishedSectionAttachment(Long attachmentId,
53: String resourceId, String filename, String mimeType,
54: Long fileSize, String description, String location,
55: Boolean isLink, Integer status, String createdBy,
56: Date createdDate, String lastModifiedBy,
57: Date lastModifiedDate) {
58: super (attachmentId, resourceId,
59: SectionAttachmentIfc.SECTION_ATTACHMENT, filename,
60: mimeType, fileSize, description, location, isLink,
61: status, createdBy, createdDate, lastModifiedBy,
62: lastModifiedDate);
63: }
64:
65: public SectionDataIfc getSection() {
66: return section;
67: }
68:
69: public void setSection(SectionDataIfc section) {
70: this .section = section;
71: }
72:
73: public Long getAttachmentType() {
74: return SectionAttachmentIfc.SECTION_ATTACHMENT;
75: }
76:
77: public void setAttachmentType(Long attachmentType) {
78: }
79:
80: }
|