public interface FavoriteManagement
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfFavorites(Long noteId)
Compute the number of all favorites for the note.
|
boolean |
isFavorite(Long noteId) |
void |
markNoteAsFavorite(Long noteId) |
void |
unmarkNoteAsFavorite(Long noteId) |
int getNumberOfFavorites(Long noteId) throws AuthorizationException
noteId
- the note idAuthorizationException
boolean isFavorite(Long noteId)
noteId
- The note.void markNoteAsFavorite(Long noteId) throws NoteNotFoundException
noteId
- The notes id.NoteNotFoundException
- Exception.void unmarkNoteAsFavorite(Long noteId) throws NoteNotFoundException
noteId
- The notes id.NoteNotFoundException
- Exception.Copyright © 2019 Communote team. All rights reserved.