@Transactional public class NoteServiceImpl extends Object implements NoteService
Modifier and Type | Field and Description |
---|---|
protected AttachmentService |
attachmentService |
protected DataObjectService |
dataObjectService |
Constructor and Description |
---|
NoteServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Note |
createNote(Note noteToCopy,
GloballyUnique 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.
|
Note |
save(Note note)
Saves the specified note.
|
void |
saveNoteList(List<Note> notes)
Saves the given lists of notes.
|
void |
setAttachmentService(AttachmentService attachmentService) |
void |
setDataObjectService(DataObjectService dataObjectService) |
protected AttachmentService attachmentService
protected DataObjectService dataObjectService
public NoteServiceImpl()
public void saveNoteList(List<Note> notes)
NoteService
saveNoteList
in interface NoteService
notes
- the list of notes to savepublic 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, GloballyUnique bo, String authorPrincipalId)
createNote
in interface NoteService
noteToCopy
- the note to copybo
- the business object to associate the Note withpublic void setAttachmentService(AttachmentService attachmentService)
protected AttachmentService getAttachmentService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.