@Transactional(propagation=REQUIRED) public abstract class FavoriteManagementBase extends Object implements FavoriteManagement
Spring Service base class for com.communote.server.service.blog.FavoriteManagement,
provides access to all services and entities referenced by this service.
FavoriteManagement| Constructor and Description |
|---|
FavoriteManagementBase() |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfFavorites(Long noteId)
Compute the number of all favorites for the note.
|
protected abstract int |
handleGetNumberOfFavorites(Long noteId) |
protected abstract void |
handleMarkNoteAsFavorite(Long noteId)
Performs the core logic for
markNoteAsFavorite(Long) |
protected abstract void |
handleUnmarkNoteAsFavorite(Long noteId)
Performs the core logic for
unmarkNoteAsFavorite(Long) |
void |
markNoteAsFavorite(Long noteId) |
void |
unmarkNoteAsFavorite(Long noteId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFavoritepublic int getNumberOfFavorites(Long noteId) throws AuthorizationException
getNumberOfFavorites in interface FavoriteManagementnoteId - the note idAuthorizationExceptionprotected abstract int handleGetNumberOfFavorites(Long noteId) throws AuthorizationException
AuthorizationExceptiongetNumberOfFavorites(Long)protected abstract void handleMarkNoteAsFavorite(Long noteId) throws NoteNotFoundException
markNoteAsFavorite(Long)noteId - The notes id.NoteNotFoundException - Exception.protected abstract void handleUnmarkNoteAsFavorite(Long noteId) throws NoteNotFoundException
unmarkNoteAsFavorite(Long)noteId - The notes id.NoteNotFoundException - Exception.public void markNoteAsFavorite(Long noteId) throws NoteNotFoundException
markNoteAsFavorite in interface FavoriteManagementnoteId - The notes id.NoteNotFoundException - Exception.FavoriteManagement.markNoteAsFavorite(Long)public void unmarkNoteAsFavorite(Long noteId) throws NoteNotFoundException
unmarkNoteAsFavorite in interface FavoriteManagementnoteId - The notes id.NoteNotFoundException - Exception.{@inheritDoc}Copyright © 2019 Communote team. All rights reserved.