01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/archive/tags/sakai_2-4-1/import-impl/src/java/org/sakaiproject/importer/impl/importables/FileResource.java $
03: * $Id: FileResource.java 17726 2006-11-01 15:39:28Z lance@indiana.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 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.importer.impl.importables;
21:
22: public class FileResource extends AbstractImportable {
23: private String destinationResourcePath;
24: private String contentType;
25: private byte[] fileBytes;
26: private String title;
27: private String description;
28: private String fileName;
29:
30: public String getTypeName() {
31: return "sakai-file-resource";
32: }
33:
34: public String getContentType() {
35: return contentType;
36: }
37:
38: public void setContentType(String contentType) {
39: this .contentType = contentType;
40: }
41:
42: public String getDescription() {
43: return description;
44: }
45:
46: public void setDescription(String description) {
47: this .description = description;
48: }
49:
50: public String getDestinationResourcePath() {
51: return destinationResourcePath;
52: }
53:
54: public void setDestinationResourcePath(
55: String destinationResourcePath) {
56: this .destinationResourcePath = destinationResourcePath;
57: }
58:
59: public byte[] getFileBytes() {
60: return fileBytes;
61: }
62:
63: public void setFileBytes(byte[] fileBytes) {
64: this .fileBytes = fileBytes;
65: }
66:
67: public String getTitle() {
68: return title;
69: }
70:
71: public void setTitle(String title) {
72: this .title = title;
73: }
74:
75: public String getFileName() {
76: return fileName;
77: }
78:
79: public void setFileName(String fileName) {
80: this.fileName = fileName;
81: }
82:
83: }
|