01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.notes;
18:
19: import java.io.File;
20: import java.util.List;
21:
22: /**
23: * A service which handles data access for notes and attachments.
24: *
25: * @see Note
26: * @see Attachment
27: *
28: * @author temay
29: * @author rkirkend
30: */
31: public interface NoteService {
32:
33: public Note getNoteByNoteId(Long noteId);
34:
35: public List getNotesByRouteHeaderId(Long routeHeaderId);
36:
37: public void saveNote(Note note);
38:
39: public void deleteNote(Note note);
40:
41: public void deleteAttachment(Attachment attachment);
42:
43: public File findAttachmentFile(Attachment attachment);
44:
45: public Attachment findAttachment(Long attachmentId);
46:
47: }
|