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
Nested ClassesModifier and TypeClassDescriptionprotected classExtended dialog context.Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntryNested classes/interfaces inherited from interface com.vaadin.navigator.ViewChangeListener
com.vaadin.navigator.ViewChangeListener.ViewChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final CmsResourceTablePropertyThe blacklisted table column property id.protected static final CmsResourceTablePropertyThe date series info table column property id.protected static final CmsResourceTablePropertyThe date series info label table column property id.static final CmsResourceTablePropertyThe blacklisted table column property id.static final String[]The month name abbreviations.static final StringList configuration node name and field key.static final StringThe view content list path name.static final StringThe 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, Locale locale) Adds the property values to the given item.voidafterViewChange(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) booleanbeforeViewChange(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.ComponentgetComponentForState(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.voidinitUI(I_CmsAppUIContext uiContext) Within this method the app UI should be initialized.booleanReturns whether this app should be cached within the user session.voidCalled after the view is fetched from the cache.voidonStateChange(String state) Called on navigation events.voidExecuted on window close.voidsaveBlacklist(CmsConfigurationBean configBean) Saves the blacklist from the bean in the current list configuration.voidUpdates the search result.voidsearch(Map<String, List<String>> fieldFacets, Map<String, List<String>> rangeFacets, String additionalQuery) Updates the search result.voidsearch(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_ResourcePropertyProviderAdds the property values to the given item.- Specified by:
addItemPropertiesin interfaceCmsResourceTable.I_ResourcePropertyProvider- Parameters:
resourceItem- the resource itemcms- the cms contextresource- the resourcelocale- the workplace locale- See Also:
-
getDialogContext
Description copied from interface:I_CmsContextProviderReturns the dialog context for dialogs opened from the context menu.- Specified by:
getDialogContextin interfaceI_CmsContextProvider- Returns:
- the dialog context
- See Also:
-
initUI
Description copied from interface:I_CmsWorkplaceAppWithin this method the app UI should be initialized.Use the context to add the app's components to the UI.
- Specified by:
initUIin interfaceI_CmsWorkplaceApp- Overrides:
initUIin classA_CmsWorkplaceApp- Parameters:
uiContext- the UI context- See Also:
-
isCachable
Description copied from interface:I_CmsCachableAppReturns whether this app should be cached within the user session.- Specified by:
isCachablein interfaceI_CmsCachableApp- Returns:
trueif the app is cachable- See Also:
-
onRestoreFromCache
Description copied from interface:I_CmsCachableAppCalled after the view is fetched from the cache.- Specified by:
onRestoreFromCachein interfaceI_CmsCachableApp- See Also:
-
onStateChange
Description copied from interface:I_CmsWorkplaceAppCalled on navigation events.- Specified by:
onStateChangein interfaceI_CmsWorkplaceApp- Overrides:
onStateChangein classA_CmsWorkplaceApp- Parameters:
state- the app state to show- See Also:
-
onWindowClose
Description copied from interface:I_CmsWindowCloseListenerExecuted on window close.- Specified by:
onWindowClosein 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:
searchin 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_CmsWorkplaceAppReturns the current bread crumb entries in an ordered map.- Specified by:
getBreadCrumbForStatein 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_CmsWorkplaceAppReturns the app component for the given state.- Specified by:
getComponentForStatein classA_CmsWorkplaceApp- Parameters:
state- the state to render- Returns:
- the app component
- See Also:
-