org.kuali.rice.krad.service.impl
Class NoteServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.NoteServiceImpl
All Implemented Interfaces:
NoteService

@Transactional
public class NoteServiceImpl
extends Object
implements NoteService

This class is the service implementation for the Note structure.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NoteServiceImpl()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoteServiceImpl

public NoteServiceImpl()
Method Detail

saveNoteList

public void saveNoteList(List<Note> notes)
Description copied from interface: NoteService
Saves the given lists of notes. If the given list is null or empty, this method will do nothing.

Specified by:
saveNoteList in interface NoteService
Parameters:
notes - the list of notes to save
See Also:
org.kuali.rice.krad.service.NoteService#saveNoteValueList(java.util.List)

save

public Note save(Note note)
Description copied from interface: NoteService
Saves the specified note. This method returns a reference to the note that was saved. Callers of this method should reassign their reference to the note passed in with the one that is returned.

Specified by:
save in interface NoteService
Parameters:
note - the note to save
Returns:
the saved note
See Also:
NoteService.save(org.kuali.rice.krad.bo.Note)

getByRemoteObjectId

public List<Note> getByRemoteObjectId(String remoteObjectId)
Description copied from interface: NoteService
Retrieves a list of notes that are associated with the given object id. This object id will generally be the object id of the PersistableBusinessObject that the note was attached to when it was created.

Specified by:
getByRemoteObjectId in interface NoteService
Parameters:
remoteObjectId - the object id that the notes being searched for are associated with
Returns:
the list of notes which are associated with the given object id. If no such notes are found, an empty list will be returned.
See Also:
NoteService.getByRemoteObjectId(java.lang.String)

getNoteByNoteId

public Note getNoteByNoteId(Long noteId)
Description copied from interface: NoteService
Retrieves the note with the given id.

Specified by:
getNoteByNoteId in interface NoteService
Parameters:
noteId - the note id to search by
Returns:
the note with the given note id, or null if no note is found
See Also:
NoteService.getNoteByNoteId(java.lang.Long)

deleteNote

public void deleteNote(Note note)
Description copied from interface: NoteService
Deletes the specified note.

Specified by:
deleteNote in interface NoteService
Parameters:
note - the note to delete
See Also:
NoteService.deleteNote(org.kuali.rice.krad.bo.Note)

createNote

public Note createNote(Note noteToCopy,
                       PersistableBusinessObject bo,
                       String authorPrincipalId)
TODO this method seems awfully out of place in this service

Specified by:
createNote in interface NoteService
Parameters:
noteToCopy - the note to copy
bo - the business object to associate the Note with
Returns:
a copy of the given note which
See Also:
org.kuali.rice.krad.service.NoteService#createNote(org.kuali.rice.krad.bo.Note, org.kuali.rice.krad.bo.PersistableBusinessObject)

setNoteDao

public void setNoteDao(NoteDao d)
Sets the data access object

Parameters:
d -

getNoteDao

protected NoteDao getNoteDao()
Retrieves a data access object


setAttachmentService

public void setAttachmentService(AttachmentService attachmentService)

getAttachmentService

protected AttachmentService getAttachmentService()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.