Package org.opencms.ui.apps.lists
Class CmsListManager
java.lang.Object
org.opencms.ui.apps.A_CmsWorkplaceApp
org.opencms.ui.apps.lists.CmsListManager
- All Implemented Interfaces:
com.vaadin.navigator.ViewChangeListener
,Serializable
,I_CmsCachableApp
,I_CmsContextProvider
,I_CmsWorkplaceApp
,CmsResourceTable.I_ResourcePropertyProvider
,I_CmsResultFacetsManager
,I_CmsWindowCloseListener
public class CmsListManager
extends A_CmsWorkplaceApp
implements CmsResourceTable.I_ResourcePropertyProvider, I_CmsContextProvider, com.vaadin.navigator.ViewChangeListener, I_CmsWindowCloseListener, I_CmsCachableApp, I_CmsResultFacetsManager
Manager for list configuration files.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Extended dialog context.Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntry
Nested classes/interfaces inherited from interface com.vaadin.navigator.ViewChangeListener
com.vaadin.navigator.ViewChangeListener.ViewChangeEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final CmsResourceTableProperty
The blacklisted table column property id.protected static final CmsResourceTableProperty
The date series info table column property id.protected static final CmsResourceTableProperty
The date series info label table column property id.static final CmsResourceTableProperty
The blacklisted table column property id.static final String[]
The month name abbreviations.static final String
List configuration node name and field key.static final String
The view content list path name.static final String
The list configuration resource type name.protected static final String[][]
The available sort options.Fields inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemProperties
(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, 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 LinkedHashMap<String,
String> getBreadCrumbForState
(String state) Returns the current bread crumb entries in an ordered map.protected com.vaadin.ui.Component
getComponentForState
(String state) Returns the app component for the given state.Returns the dialog context for dialogs opened from the context menu.protected List<A_CmsWorkplaceApp.NavEntry>
getSubNavEntries
(String state) Returns the sub navigation entries.void
initUI
(I_CmsAppUIContext uiContext) Within this method the app UI should be initialized.boolean
Returns whether this app should be cached within the user session.void
Called after the view is fetched from the cache.void
onStateChange
(String state) Called on navigation events.void
Executed on window close.void
saveBlacklist
(CmsConfigurationBean configBean) Saves the blacklist from the bean in the current list configuration.void
Updates the search result.void
search
(Map<String, List<String>> fieldFacets, Map<String, List<String>> rangeFacets, String additionalQuery) Updates the search result.void
search
(CmsSimpleSearchConfigurationParser configParser, CmsResource resource) Execute a search with the given search configuration parser.Methods inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, openSubView, removeParamsFromState, setBreadCrumbEntries, updateBreadCrumb, updateSubNav
-
Field Details
-
PARAM_LOCALE
List configuration node name and field key.- See Also:
-
PATH_NAME_VIEW
The view content list path name.- See Also:
-
RES_TYPE_LIST_CONFIG
The list configuration resource type name.- See Also:
-
BLACKLISTED_PROPERTY
The blacklisted table column property id. -
INFO_PROPERTY
The date series info table column property id. -
INFO_PROPERTY_LABEL
The date series info label table column property id. -
INSTANCEDATE_PROPERTY
The blacklisted table column property id. -
SORT_OPTIONS
The available sort options. -
MONTHS
The month name abbreviations.
-
-
Constructor Details
-
CmsListManager
public CmsListManager()
-
-
Method Details
-
addItemProperties
public void addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) Description copied from interface:CmsResourceTable.I_ResourcePropertyProvider
Adds the property values to the given item.- Specified by:
addItemProperties
in interfaceCmsResourceTable.I_ResourcePropertyProvider
- Parameters:
resourceItem
- the resource itemcms
- the cms contextresource
- the resourcelocale
- the workplace locale- See Also:
-
getDialogContext
Description copied from interface:I_CmsContextProvider
Returns the dialog context for dialogs opened from the context menu.- Specified by:
getDialogContext
in interfaceI_CmsContextProvider
- Returns:
- the dialog context
- See Also:
-
initUI
Description copied from interface:I_CmsWorkplaceApp
Within this method the app UI should be initialized.Use the context to add the app's components to the UI.
- Specified by:
initUI
in interfaceI_CmsWorkplaceApp
- Overrides:
initUI
in classA_CmsWorkplaceApp
- Parameters:
uiContext
- the UI context- See Also:
-
isCachable
Description copied from interface:I_CmsCachableApp
Returns whether this app should be cached within the user session.- Specified by:
isCachable
in interfaceI_CmsCachableApp
- Returns:
true
if the app is cachable- See Also:
-
onRestoreFromCache
Description copied from interface:I_CmsCachableApp
Called after the view is fetched from the cache.- Specified by:
onRestoreFromCache
in interfaceI_CmsCachableApp
- See Also:
-
onStateChange
Description copied from interface:I_CmsWorkplaceApp
Called on navigation events.- Specified by:
onStateChange
in interfaceI_CmsWorkplaceApp
- Overrides:
onStateChange
in classA_CmsWorkplaceApp
- Parameters:
state
- the app state to show- See Also:
-
onWindowClose
Description copied from interface:I_CmsWindowCloseListener
Executed on window close.- Specified by:
onWindowClose
in interfaceI_CmsWindowCloseListener
- See Also:
-
saveBlacklist
Saves the blacklist from the bean in the current list configuration.- Parameters:
configBean
- the bean whose blacklist should be saved
-
search
Execute a search with the given search configuration parser.- Parameters:
configParser
- the search configuration parserresource
- the current configuration resource
-
search
Updates the search result.- Specified by:
search
in interfaceI_CmsResultFacetsManager
- Parameters:
fieldFacets
- the field facetsrangeFacets
- the range facets
-
search
public void search(Map<String, List<String>> fieldFacets, Map<String, List<String>> rangeFacets, String additionalQuery) Updates the search result.- Parameters:
fieldFacets
- the field facetsrangeFacets
- the range facetsadditionalQuery
- the additional query
-
getBreadCrumbForState
Description copied from class:A_CmsWorkplaceApp
Returns the current bread crumb entries in an ordered map.- Specified by:
getBreadCrumbForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the current state- Returns:
- bread crumb entry name by state, in case the state is empty, the entry will be disabled
- See Also:
-
getComponentForState
Description copied from class:A_CmsWorkplaceApp
Returns the app component for the given state.- Specified by:
getComponentForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the state to render- Returns:
- the app component
- See Also:
-