public class CmsListManager extends A_CmsWorkplaceApp implements CmsResourceTable.I_ResourcePropertyProvider, I_CmsContextProvider, com.vaadin.navigator.ViewChangeListener, I_CmsWindowCloseListener, I_CmsCachableApp
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsListManager.CategoryMode
Enum representing how selected categories should be combined in a search.
|
protected class |
CmsListManager.DialogContext
Extended dialog context.
|
static class |
CmsListManager.ListConfigurationBean
The list configuration data.
|
A_CmsWorkplaceApp.NavEntry| Modifier and Type | Field and Description |
|---|---|
protected static CmsResourceTableProperty |
BLACKLISTED_PROPERTY
The blacklisted table column property id.
|
static java.lang.String |
FIELD_CATEGORIES
SOLR field name.
|
static java.lang.String |
FIELD_DATE
SOLR field name.
|
static java.lang.String |
FIELD_DATE_FACET_NAME
SOLR field name.
|
static java.lang.String |
FIELD_PARENT_FOLDERS
SOLR field name.
|
protected static CmsResourceTableProperty |
INFO_PROPERTY
The date series info table column property id.
|
protected static CmsResourceTableProperty |
INFO_PROPERTY_LABEL
The date series info label table column property id.
|
protected static CmsResourceTableProperty |
INSTANCEDATE_PROPERTY
The blacklisted table column property id.
|
static java.lang.String |
N_BLACKLIST
List configuration node name and field key.
|
static java.lang.String |
N_CATEGORY
List configuration node name and field key.
|
static java.lang.String |
N_CATEGORY_MODE
List configuration node name for the category mode.
|
static java.lang.String |
N_DATE_RESTRICTION
XML content node name.
|
static java.lang.String |
N_DISPLAY_TYPE
List configuration node name and field key.
|
static java.lang.String |
N_FILTER_QUERY
List configuration node name and field key.
|
static java.lang.String |
N_KEY
List configuration node name and field key.
|
static java.lang.String |
N_PARAMETER
List configuration node name and field key.
|
static java.lang.String |
N_SEARCH_FOLDER
List configuration node name and field key.
|
static java.lang.String |
N_SHOW_EXPIRED
List configuration node name and field key.
|
static java.lang.String |
N_SORT_ORDER
List configuration node name and field key.
|
static java.lang.String |
N_TITLE
List configuration node name and field key.
|
static java.lang.String |
N_VALUE
List configuration node name and field key.
|
static java.lang.String |
PARAM_LOCALE
List configuration node name and field key.
|
static java.lang.String[] |
PARAMETER_FIELDS
The parameter fields.
|
static java.lang.String |
PATH_NAME_VIEW
The view content list path name.
|
static java.lang.String |
RES_TYPE_LIST_CONFIG
The list configuration resource type name.
|
protected static java.lang.String[][] |
SORT_OPTIONS
The available sort options.
|
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR| Constructor and Description |
|---|
CmsListManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemProperties(com.vaadin.v7.data.Item resourceItem,
CmsObject cms,
CmsResource resource,
java.util.Locale locale)
Adds the property values to the given item.
|
void |
afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) |
boolean |
beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) |
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getBreadCrumbForState(java.lang.String state)
Returns the current bread crumb entries in an ordered map.
|
protected com.vaadin.ui.Component |
getComponentForState(java.lang.String state)
Returns the app component for the given state.
|
I_CmsDialogContext |
getDialogContext()
Returns the dialog context for dialogs opened from the context menu.
|
protected java.util.List<A_CmsWorkplaceApp.NavEntry> |
getSubNavEntries(java.lang.String state)
Returns the sub navigation entries.
|
void |
initUI(I_CmsAppUIContext uiContext)
Within this method the app UI should be initialized.
|
boolean |
isCachable()
Returns whether this app should be cached within the user session.
|
void |
onRestoreFromCache()
Called after the view is fetched from the cache.
|
void |
onStateChange(java.lang.String state)
Called on navigation events.
|
void |
onWindowClose()
Executed on window close.
|
static CmsListManager.ListConfigurationBean |
parseListConfiguration(CmsObject cms,
CmsResource res)
Parses the list configuration resource.
|
void |
saveBlacklist(CmsListManager.ListConfigurationBean configBean)
Saves the blacklist from the bean in the current list configuration.
|
void |
search(CmsSimpleSearchConfigurationParser configParser,
CmsResource resource)
Execute a search with the given search configuration parser.
|
void |
search(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fieldFacets,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> rangeFacets)
Updates the search result.
|
void |
search(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fieldFacets,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> rangeFacets,
java.lang.String additionalQuery)
Updates the search result.
|
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, openSubView, setBreadCrumbEntries, updateBreadCrumb, updateSubNavpublic static final java.lang.String FIELD_CATEGORIES
public static final java.lang.String FIELD_DATE
public static final java.lang.String FIELD_DATE_FACET_NAME
public static final java.lang.String FIELD_PARENT_FOLDERS
public static final java.lang.String N_BLACKLIST
public static final java.lang.String N_CATEGORY
public static final java.lang.String N_CATEGORY_MODE
public static final java.lang.String N_DATE_RESTRICTION
public static final java.lang.String N_DISPLAY_TYPE
public static final java.lang.String N_FILTER_QUERY
public static final java.lang.String N_KEY
public static final java.lang.String N_PARAMETER
public static final java.lang.String N_SEARCH_FOLDER
public static final java.lang.String N_SHOW_EXPIRED
public static final java.lang.String N_SORT_ORDER
public static final java.lang.String N_TITLE
public static final java.lang.String N_VALUE
public static final java.lang.String PARAM_LOCALE
public static final java.lang.String[] PARAMETER_FIELDS
public static final java.lang.String PATH_NAME_VIEW
public static final java.lang.String RES_TYPE_LIST_CONFIG
protected static final CmsResourceTableProperty BLACKLISTED_PROPERTY
protected static final CmsResourceTableProperty INFO_PROPERTY
protected static final CmsResourceTableProperty INFO_PROPERTY_LABEL
protected static final CmsResourceTableProperty INSTANCEDATE_PROPERTY
protected static final java.lang.String[][] SORT_OPTIONS
public CmsListManager()
public static CmsListManager.ListConfigurationBean parseListConfiguration(CmsObject cms, CmsResource res)
cms - the CMS context to useres - the list configuration resourcepublic void addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, java.util.Locale locale)
CmsResourceTable.I_ResourcePropertyProvideraddItemProperties in interface CmsResourceTable.I_ResourcePropertyProviderresourceItem - the resource itemcms - the cms contextresource - the resourcelocale - the workplace localeCmsResourceTable.I_ResourcePropertyProvider.addItemProperties(com.vaadin.v7.data.Item, org.opencms.file.CmsObject, org.opencms.file.CmsResource, java.util.Locale)public void afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
afterViewChange in interface com.vaadin.navigator.ViewChangeListenerViewChangeListener.afterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)public boolean beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
beforeViewChange in interface com.vaadin.navigator.ViewChangeListenerViewChangeListener.beforeViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent)public I_CmsDialogContext getDialogContext()
I_CmsContextProvidergetDialogContext in interface I_CmsContextProviderI_CmsContextProvider.getDialogContext()public void initUI(I_CmsAppUIContext uiContext)
I_CmsWorkplaceAppUse the context to add the app's components to the UI.
initUI in interface I_CmsWorkplaceAppinitUI in class A_CmsWorkplaceAppuiContext - the UI contextA_CmsWorkplaceApp.initUI(org.opencms.ui.apps.I_CmsAppUIContext)public boolean isCachable()
I_CmsCachableAppisCachable in interface I_CmsCachableApptrue if the app is cachableI_CmsCachableApp.isCachable()public void onRestoreFromCache()
I_CmsCachableApponRestoreFromCache in interface I_CmsCachableAppI_CmsCachableApp.onRestoreFromCache()public void onStateChange(java.lang.String state)
I_CmsWorkplaceApponStateChange in interface I_CmsWorkplaceApponStateChange in class A_CmsWorkplaceAppstate - the app state to showA_CmsWorkplaceApp.onStateChange(java.lang.String)public void onWindowClose()
I_CmsWindowCloseListeneronWindowClose in interface I_CmsWindowCloseListenerI_CmsWindowCloseListener.onWindowClose()public void saveBlacklist(CmsListManager.ListConfigurationBean configBean)
configBean - the bean whose blacklist should be savedpublic void search(CmsSimpleSearchConfigurationParser configParser, CmsResource resource)
configParser - the search configuration parserresource - the current configuration resourcepublic void search(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fieldFacets, java.util.Map<java.lang.String,java.util.List<java.lang.String>> rangeFacets)
fieldFacets - the field facetsrangeFacets - the range facetspublic void search(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fieldFacets, java.util.Map<java.lang.String,java.util.List<java.lang.String>> rangeFacets, java.lang.String additionalQuery)
fieldFacets - the field facetsrangeFacets - the range facetsadditionalQuery - the additional queryprotected java.util.LinkedHashMap<java.lang.String,java.lang.String> getBreadCrumbForState(java.lang.String state)
A_CmsWorkplaceAppgetBreadCrumbForState in class A_CmsWorkplaceAppstate - the current stateA_CmsWorkplaceApp.getBreadCrumbForState(java.lang.String)protected com.vaadin.ui.Component getComponentForState(java.lang.String state)
A_CmsWorkplaceAppgetComponentForState in class A_CmsWorkplaceAppstate - the state to renderA_CmsWorkplaceApp.getComponentForState(java.lang.String)protected java.util.List<A_CmsWorkplaceApp.NavEntry> getSubNavEntries(java.lang.String state)
A_CmsWorkplaceAppgetSubNavEntries in class A_CmsWorkplaceAppstate - the stateA_CmsWorkplaceApp.getSubNavEntries(java.lang.String)