001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.notes;
018:
019: import java.io.InputStream;
020:
021: /**
022: * An attachment which is attached to a {@link Note}.
023: *
024: * @see Note
025: *
026: * @author rkirkend
027: */
028: public class Attachment {
029:
030: private Long attachmentId;
031: private Long noteId;
032: private String fileName;
033: private String fileLoc;
034: private String mimeType;
035: private Integer lockVerNbr;
036: private InputStream attachedObject;
037: private Note note;
038:
039: public Long getAttachmentId() {
040: return attachmentId;
041: }
042:
043: public void setAttachmentId(Long attachmentId) {
044: this .attachmentId = attachmentId;
045: }
046:
047: public String getFileLoc() {
048: return fileLoc;
049: }
050:
051: public void setFileLoc(String fileLoc) {
052: this .fileLoc = fileLoc;
053: }
054:
055: public String getFileName() {
056: return fileName;
057: }
058:
059: public void setFileName(String fileName) {
060: this .fileName = fileName;
061: }
062:
063: public Integer getLockVerNbr() {
064: return lockVerNbr;
065: }
066:
067: public void setLockVerNbr(Integer lockVerNbr) {
068: this .lockVerNbr = lockVerNbr;
069: }
070:
071: public String getMimeType() {
072: return mimeType;
073: }
074:
075: public void setMimeType(String mimeType) {
076: this .mimeType = mimeType;
077: }
078:
079: public Long getNoteId() {
080: return noteId;
081: }
082:
083: public void setNoteId(Long noteId) {
084: this .noteId = noteId;
085: }
086:
087: public Note getNote() {
088: return note;
089: }
090:
091: public void setNote(Note note) {
092: this .note = note;
093: }
094:
095: public InputStream getAttachedObject() {
096: return attachedObject;
097: }
098:
099: public void setAttachedObject(InputStream attachedObject) {
100: this.attachedObject = attachedObject;
101: }
102:
103: }
|