public class TimelineNoteResourceConverter extends QueryResultConverter<SimpleNoteListItem,TimelineNoteResource>
| Constructor and Description |
|---|
TimelineNoteResourceConverter(NoteQueryParameters noteQueryInstance,
NoteRenderContext renderContext)
Creates a new converter which will convert the queryResult depending on settings of the query
instance.
|
| Modifier and Type | Method and Description |
|---|---|
PageableList<TimelineNoteResource> |
convert(DiscussionNoteData source)
Helper method which flattens a discussion data object into a list of note resources.
|
PageableList<TimelineNoteResource> |
convert(PageableList<SimpleNoteListItem> queryResult)
Converts the temporary object of the query to a list object
|
boolean |
convert(SimpleNoteListItem source,
TimelineNoteResource target)
Converts the temporary object of the query to a list object
|
TimelineNoteResource |
create()
Creates a new pageable list object to fill
|
convertCollectionpublic TimelineNoteResourceConverter(NoteQueryParameters noteQueryInstance, NoteRenderContext renderContext)
noteQueryInstance - The query instance.renderContext - the note render context to usepublic PageableList<TimelineNoteResource> convert(DiscussionNoteData source)
source - the object to convertpublic PageableList<TimelineNoteResource> convert(PageableList<SimpleNoteListItem> queryResult)
convert in class QueryResultConverter<SimpleNoteListItem,TimelineNoteResource>queryResult - the temporary object returned by the executed querypublic boolean convert(SimpleNoteListItem source, TimelineNoteResource target)
convert in class QueryResultConverter<SimpleNoteListItem,TimelineNoteResource>source - The temporary object returned by the executed querytarget - The converted list objectpublic TimelineNoteResource create()
create in class QueryResultConverter<SimpleNoteListItem,TimelineNoteResource>Copyright © 2019 Communote team. All rights reserved.