public class LikeNoteRenderingPreProcessor extends Object implements NoteMetadataRenderingPreProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_LIKED
Property denoting whether the current user likes the note.
|
static String |
PROPERTY_LIKERS
Property holding the users linking the note as Collection of UserListItems
|
DEFAULT_ORDER| Constructor and Description |
|---|
LikeNoteRenderingPreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
PropertyManagement |
getPropertyManagement() |
boolean |
process(NoteRenderContext noteRenderContext,
NoteData noteListData)
Processes the note.
|
boolean |
supports(NoteRenderMode noteRenderMode)
Whether the processor supports a specific render mode.
|
public static final String PROPERTY_LIKERS
public static final String PROPERTY_LIKED
public int getOrder()
getOrder in interface OrderablegetOrder in interface NoteMetadataRenderingPreProcessorNoteMetadataRenderingPreProcessor.DEFAULT_ORDERpublic PropertyManagement getPropertyManagement()
public boolean process(NoteRenderContext noteRenderContext, NoteData noteListData)
process in interface NoteMetadataRenderingPreProcessornoteRenderContext - holds details about the render context to allow specific processing in different
situationsnoteListData - the item to be processedpublic boolean supports(NoteRenderMode noteRenderMode)
supports in interface NoteMetadataRenderingPreProcessornoteRenderMode - the note render mode, never nullCopyright © 2019 Communote team. All rights reserved.