public class ChronologicalPostListWidget extends AbstractPagedListWidget<NoteData> implements RssSupportWidget
METADATA_KEY_ELEMENTS_CONTAINED, METADATA_KEY_MORE_AVAILABLE, PARAM_PAGING_INTERVALMETADATA_KEY_NO_CONTENTPAGING_MASSAGE_KEY_PREFIX, PARAM_PAGING_MESSAGE_KEY_SUFFIXPARAM_WIDGET_ID| Constructor and Description |
|---|
ChronologicalPostListWidget() |
| Modifier and Type | Method and Description |
|---|---|
protected NoteQueryParameters |
configureQueryInstance(NoteQuery definition) |
Boolean |
getBlogPropertyAsBoolean(Long blogId,
String keyGroup,
String key)
Get an boolean blog property.
|
String |
getClassName() |
Locale |
getCurrentUserLocale() |
PageableList<NoteData> |
getDiscussionNotes(long discussionId,
boolean listViewMode,
Locale locale)
Helper which fetches the notes of a discussion and returns them a style dependent of the
selected view.
|
String |
getDiscussionTitle(NoteData note,
Locale locale)
Get the discussion title for the note (e.g.
|
String |
getNoteActions(NoteData note)
Return a CSV listing the actions that can be executed on a note.
|
String |
getNoteItemTemplate(NoteData data)
Return the location of a template to use for rendering the HTML of the provided note
|
String |
getNoteMetaData(NoteData note)
Create a JSON object containing some meta data about a note.
|
String |
getNoteTitle(NoteData note,
Locale locale)
Get the note title for the note (e.g.
|
long |
getParentPostFilter() |
NoteQueryParameters |
getQueryParameters() |
String |
getRssFeedLink() |
String |
getRssParameters()
Get the Parameters relevant for the rss or news feed.
|
static String[] |
getSuppliedParameters()
Get the parameter names, which are necessary to save or retrieve the corresponding newsfeeds.
|
String |
getTile(String outputType)
Get the tile to be used for rendering
|
TimeZone |
getTimeZone()
Gets the effective time zone for the user
|
String |
getTimeZoneId()
Gets the effective time zone id for the user
|
protected PageableList<NoteData> |
handleQueryList()
hook that actually requests the list on the api
|
protected void |
initParameters()
init the widget parameters to these values: filter = '' offset = 0 maxCount = 30
|
void |
postRenderList()
Called after rendering the list
|
getDefaultPagingMessageKeySuffix, getPageInformation, getParameterDescriptions, getResultSpecification, getSortedResultSpecification, handleRequest, setCommonResponseMetadata, setPageInformation, setPageInformation, setPageInformationdetermineOutputType, getAttribute, getBooleanParameter, getGroupName, getIntParameter, getIntParameter, getLongArrayParameter, getLongParameter, getLongParameter, getParameter, getParameter, getParameterEscaped, getParameterEscaped, getParameters, getRequest, getResponse, getResponseMetadata, getStringArrayParameter, getViewIdentifier, getWidgetId, isSuccess, setAttribute, setGroupName, setParameter, setRequest, setResponse, setResponseMetadata, setSuccessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getGroupName, getParameter, getParameters, getResponseMetadata, getViewIdentifier, getWidgetId, isSuccess, setGroupName, setParameter, setRequest, setResponsepublic static String[] getSuppliedParameters()
protected NoteQueryParameters configureQueryInstance(NoteQuery definition)
definition - the definition to usepublic Boolean getBlogPropertyAsBoolean(Long blogId, String keyGroup, String key)
blogId - the id of the blog to get the property ofkeyGroup - the key group of the property to getkey - the key of the propertypublic String getClassName()
public Locale getCurrentUserLocale()
public PageableList<NoteData> getDiscussionNotes(long discussionId, boolean listViewMode, Locale locale)
discussionId - If of the discussion.locale - of the current userpublic String getDiscussionTitle(NoteData note, Locale locale)
note - the notelocale - the localepublic String getNoteActions(NoteData note)
note - the notepublic String getNoteItemTemplate(NoteData data)
data - the note detailspublic String getNoteMetaData(NoteData note)
note - the notepublic String getNoteTitle(NoteData note, Locale locale)
note - the notelocale - the localepublic long getParentPostFilter()
public NoteQueryParameters getQueryParameters()
public String getRssFeedLink()
public String getRssParameters()
getRssParameters in interface RssSupportWidgetpublic TimeZone getTimeZone()
public String getTimeZoneId()
protected PageableList<NoteData> handleQueryList()
handleQueryList in class AbstractPagedListWidget<NoteData>protected void initParameters()
initParameters in class AbstractPagedListWidget<NoteData>public void postRenderList()
Copyright © 2019 Communote team. All rights reserved.