@Service(value="favoriteManagement") public class FavoriteManagementImpl extends FavoriteManagementBase
FavoriteManagement| Constructor and Description | 
|---|
FavoriteManagementImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected int | 
handleGetNumberOfFavorites(Long noteId) | 
protected void | 
handleMarkNoteAsFavorite(Long noteId)
Performs the core logic for  
FavoriteManagementBase.markNoteAsFavorite(Long) | 
protected void | 
handleUnmarkNoteAsFavorite(Long noteId)
Performs the core logic for  
FavoriteManagementBase.unmarkNoteAsFavorite(Long) | 
boolean | 
isFavorite(Long noteId) | 
void | 
setKenmeiUserDao(UserDao kenmeiUserDao)  | 
void | 
setNoteDao(NoteDao noteDao)  | 
getNumberOfFavorites, markNoteAsFavorite, unmarkNoteAsFavoriteprotected int handleGetNumberOfFavorites(Long noteId) throws AuthorizationException
handleGetNumberOfFavorites in class FavoriteManagementBaseAuthorizationExceptionFavoriteManagementBase.getNumberOfFavorites(Long)protected void handleMarkNoteAsFavorite(Long noteId) throws NoteNotFoundException
FavoriteManagementBase.markNoteAsFavorite(Long)handleMarkNoteAsFavorite in class FavoriteManagementBasenoteId - The notes id.NoteNotFoundException - Exception.protected void handleUnmarkNoteAsFavorite(Long noteId) throws NoteNotFoundException
FavoriteManagementBase.unmarkNoteAsFavorite(Long)handleUnmarkNoteAsFavorite in class FavoriteManagementBasenoteId - The notes id.NoteNotFoundException - Exception.@Transactional(readOnly=true) public boolean isFavorite(Long noteId)
noteId - The note.public void setKenmeiUserDao(UserDao kenmeiUserDao)
kenmeiUserDao - the kenmeiUserDao to setpublic void setNoteDao(NoteDao noteDao)
noteDao - the noteDao to setCopyright © 2019 Communote team. All rights reserved.