001 /** 002 * Copyright 2005-2012 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.krad.dao; 017 018 import java.util.List; 019 020 import org.kuali.rice.krad.bo.Note; 021 022 023 /** 024 * The data access interface for NOte objects. 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 */ 028 public interface NoteDao { 029 /** 030 * Saves a note to the DB. 031 * 032 * @param line 033 */ 034 void save(Note note); 035 036 /** 037 * Deletes a note from the DB. 038 * 039 * @param line 040 */ 041 void deleteNote(Note note); 042 043 /** 044 * Retrieves a list of notes (by class type) associated with a given object. 045 * 046 * @param clazz 047 * @param id 048 * @return 049 */ 050 public List<Note> findByremoteObjectId(String id); 051 052 /** 053 * Retrieve note by a given noteIdentifier 054 * 055 * @param noteId 056 * @return 057 */ 058 public Note getNoteByNoteId(Long noteId); 059 }