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
Modifier and TypeFieldDescriptionstatic final String
The folder key.static final String
The ignore subsites key.static final String
The index key.static final String
The locale key.static final String
The project ley.static final String
The property key.static final String
The query key.static final String
The replace pattern key.static final String
The resource type key.static final String
The search pattern key.static final String
The type key.static final String
The site root key.static final String
The XPath key.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 TypeMethodDescriptionprotected void
Displays the search result.static String
generateState
(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.Component
getComponentForState
(String state) Returns the app component for the given state.protected List<A_CmsWorkplaceApp.NavEntry>
getSubNavEntries
(String state) Returns the sub navigation entries.void
initUI
(I_CmsAppUIContext context) 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.protected void
search
(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_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:
context
- 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:
-
displayResult
Displays the search result. -
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:
-
search
Executes the search.- Parameters:
settings
- the search settingsupdateState
-true
to create a new history entry
-