@Transactional public class NoteServiceImpl extends Object implements NoteService
Constructor and Description |
---|
NoteServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Note |
createNote(Note noteToCopy,
PersistableBusinessObject bo,
String authorPrincipalId)
TODO this method seems awfully out of place in this service
|
void |
deleteNote(Note note)
Deletes the specified note.
|
protected AttachmentService |
getAttachmentService() |
List<Note> |
getByRemoteObjectId(String remoteObjectId)
Retrieves a list of notes that are associated with the given object id.
|
Note |
getNoteByNoteId(Long noteId)
Retrieves the note with the given id.
|
protected NoteDao |
getNoteDao()
Retrieves a data access object
|
Note |
save(Note note)
Saves the specified note.
|
void |
saveNoteList(List<Note> notes)
Saves the given lists of notes.
|
void |
setAttachmentService(AttachmentService attachmentService) |
void |
setNoteDao(NoteDao d)
Sets the data access object
|
public NoteServiceImpl()
public void saveNoteList(List<Note> notes)
NoteService
saveNoteList
in interface NoteService
notes
- the list of notes to saveorg.kuali.rice.krad.service.NoteService#saveNoteValueList(java.util.List)
public Note save(Note note)
NoteService
save
in interface NoteService
note
- the note to saveNoteService.save(org.kuali.rice.krad.bo.Note)
public List<Note> getByRemoteObjectId(String remoteObjectId)
NoteService
PersistableBusinessObject
that the note was attached to when it was created.getByRemoteObjectId
in interface NoteService
remoteObjectId
- the object id that the notes being searched for are associated withNoteService.getByRemoteObjectId(java.lang.String)
public Note getNoteByNoteId(Long noteId)
NoteService
getNoteByNoteId
in interface NoteService
noteId
- the note id to search byNoteService.getNoteByNoteId(java.lang.Long)
public void deleteNote(Note note)
NoteService
deleteNote
in interface NoteService
note
- the note to deleteNoteService.deleteNote(org.kuali.rice.krad.bo.Note)
public Note createNote(Note noteToCopy, PersistableBusinessObject bo, String authorPrincipalId)
createNote
in interface NoteService
noteToCopy
- the note to copybo
- the business object to associate the Note withorg.kuali.rice.krad.service.NoteService#createNote(org.kuali.rice.krad.bo.Note, org.kuali.rice.krad.bo.PersistableBusinessObject)
public void setNoteDao(NoteDao d)
d
- protected NoteDao getNoteDao()
public void setAttachmentService(AttachmentService attachmentService)
protected AttachmentService getAttachmentService()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.