public final class NoteHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Collection<T> |
getLikersOfNote(Long noteId,
Converter<User,T> converter) |
static String |
getNoteTitle(Note note,
Locale locale)
Get the note title for the note (e.g.
|
static void |
likeNote(Long noteId) |
static boolean |
likesNote(Long noteId) |
static void |
setLikeNote(Long noteId,
boolean value) |
static void |
unlikeNote(Long noteId) |
public static <T> Collection<T> getLikersOfNote(Long noteId, Converter<User,T> converter) throws NotFoundException, AuthorizationException
public static String getNoteTitle(Note note, Locale locale)
note
- the notelocale
- the localepublic static void likeNote(Long noteId) throws NotFoundException, AuthorizationException
public static boolean likesNote(Long noteId) throws NotFoundException, AuthorizationException
public static void setLikeNote(Long noteId, boolean value) throws NotFoundException, AuthorizationException
public static void unlikeNote(Long noteId) throws NotFoundException, AuthorizationException
Copyright © 2019 Communote team. All rights reserved.