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.ItemAttachmentIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemDataIfc;
24: import java.io.Serializable;
25: import java.util.Date;
26:
27: public class ItemAttachment extends AttachmentData implements
28: Serializable, ItemAttachmentIfc {
29: /**
30: *
31: */
32: private static final long serialVersionUID = -7845686301407065500L;
33: private ItemDataIfc item;
34:
35: public ItemAttachment() {
36: }
37:
38: public ItemAttachment(Long attachmentId, ItemDataIfc item,
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: ItemAttachmentIfc.ITEM_ATTACHMENT, filename, mimeType,
46: fileSize, description, location, isLink, status,
47: createdBy, createdDate, lastModifiedBy,
48: lastModifiedDate);
49: this .item = item;
50: }
51:
52: public ItemAttachment(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: ItemAttachmentIfc.ITEM_ATTACHMENT, filename, mimeType,
59: fileSize, description, location, isLink, status,
60: createdBy, createdDate, lastModifiedBy,
61: lastModifiedDate);
62: }
63:
64: public ItemDataIfc getItem() {
65: return item;
66: }
67:
68: public void setItem(ItemDataIfc item) {
69: this .item = item;
70: }
71:
72: public Long getAttachmentType() {
73: return ItemAttachmentIfc.ITEM_ATTACHMENT;
74: }
75:
76: public void setAttachmentType(Long attachmentType) {
77: }
78:
79: }
|