@Service(value="userNoteEntityService") public class UserNoteEntityService extends Object
UserNoteEntityTO
s.Constructor and Description |
---|
UserNoteEntityService() |
Modifier and Type | Method and Description |
---|---|
UserNoteEntityTO |
getUserNoteEntity(Long noteId)
Gets the
UserNoteEntityTO for the current user and the note. |
UserNoteEntityTO |
getUserNoteEntity(Long userId,
Long noteId)
Gets the
UserNoteEntityTO for the given user and the given note. |
void |
updateUserNoteEntity(UserNoteEntityTO userNoteEntityTO)
Update the
UserNoteEntityTO . |
public UserNoteEntityTO getUserNoteEntity(Long noteId)
UserNoteEntityTO
for the current user and the note. It will use the
application cache.noteId
- the note idpublic UserNoteEntityTO getUserNoteEntity(Long userId, Long noteId)
UserNoteEntityTO
for the given user and the given note. It will use the
application cache.userId
- the id of the usernoteId
- the id of the notepublic void updateUserNoteEntity(UserNoteEntityTO userNoteEntityTO) throws NotFoundException
UserNoteEntityTO
. It will also invalidate the cacheuserNoteEntityTO
- the entity to updateNotFoundException
- in case the note or user could not be foundCopyright © 2019 Communote team. All rights reserved.