Package org.opencms.ui.apps.search
Class CmsSourceSearchApp
java.lang.Object
org.opencms.ui.apps.A_CmsWorkplaceApp
org.opencms.ui.apps.search.CmsSourceSearchApp
- All Implemented Interfaces:
Serializable,I_CmsCachableApp,I_CmsWorkplaceApp
The source search app.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntry -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe folder key.static final StringThe ignore subsites key.static final StringThe index key.static final StringThe locale key.static final StringThe project ley.static final StringThe property key.static final StringThe query key.static final StringThe replace pattern key.static final StringThe resource type key.static final StringThe search pattern key.static final StringThe type key.static final StringThe site root key.static final StringThe XPath key.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 TypeMethodDescriptionprotected voidDisplays the search result.static StringgenerateState(CmsSearchReplaceSettings settings) Generates the state string for the given search settings.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.protected List<A_CmsWorkplaceApp.NavEntry> getSubNavEntries(String state) Returns the sub navigation entries.voidinitUI(I_CmsAppUIContext context) 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.protected voidsearch(CmsSearchReplaceSettings settings, boolean updateState) Executes the search.Methods inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, openSubView, removeParamsFromState, setBreadCrumbEntries, updateBreadCrumb, updateSubNav
-
Field Details
-
FOLDER
The folder key.- See Also:
-
IGNORE_SUBSITES
The ignore subsites key.- See Also:
-
INDEX
The index key.- See Also:
-
LOCALE
The locale key.- See Also:
-
PROJECT
The project ley.- See Also:
-
PROPERTY
The property key.- See Also:
-
QUERY
The query key.- See Also:
-
REPLACE_PATTERN
The replace pattern key.- See Also:
-
RESOURCE_TYPE
The resource type key.- See Also:
-
SEARCH_PATTERN
The search pattern key.- See Also:
-
SEARCH_TYPE
The type key.- See Also:
-
SITE_ROOT
The site root key.- See Also:
-
XPATH
The XPath key.- See Also:
-
-
Constructor Details
-
CmsSourceSearchApp
public CmsSourceSearchApp()
-
-
Method Details
-
generateState
Generates the state string for the given search settings.- Parameters:
settings- the search settings- Returns:
- the state string
-
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:
context- 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:
-
displayResult
Displays the search result. -
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:
-
search
Executes the search.- Parameters:
settings- the search settingsupdateState-trueto create a new history entry
-