public class CmsSourceSearchApp extends A_CmsWorkplaceApp implements I_CmsCachableApp
A_CmsWorkplaceApp.NavEntry| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FOLDER
The folder key.
|
static java.lang.String |
IGNORE_SUBSITES
The ignore subsites key.
|
static java.lang.String |
INDEX
The index key.
|
static java.lang.String |
LOCALE
The locale key.
|
static java.lang.String |
PROJECT
The project ley.
|
static java.lang.String |
PROPERTY
The property key.
|
static java.lang.String |
QUERY
The query key.
|
static java.lang.String |
REPLACE_PATTERN
The replace pattern key.
|
static java.lang.String |
RESOURCE_TYPE
The resource type key.
|
static java.lang.String |
SEARCH_PATTERN
The search pattern key.
|
static java.lang.String |
SEARCH_TYPE
The type key.
|
static java.lang.String |
SITE_ROOT
The site root key.
|
static java.lang.String |
XPATH
The XPath key.
|
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR| Constructor and Description |
|---|
CmsSourceSearchApp() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
displayResult()
Displays the search result.
|
static java.lang.String |
generateState(CmsSearchReplaceSettings settings)
Generates the state string for the given search settings.
|
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.
|
protected java.util.List<A_CmsWorkplaceApp.NavEntry> |
getSubNavEntries(java.lang.String state)
Returns the sub navigation entries.
|
void |
initUI(I_CmsAppUIContext context)
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.
|
protected void |
search(CmsSearchReplaceSettings settings,
boolean updateState)
Executes the search.
|
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, openSubView, setBreadCrumbEntries, updateBreadCrumb, updateSubNavpublic static final java.lang.String FOLDER
public static final java.lang.String IGNORE_SUBSITES
public static final java.lang.String INDEX
public static final java.lang.String LOCALE
public static final java.lang.String PROJECT
public static final java.lang.String PROPERTY
public static final java.lang.String QUERY
public static final java.lang.String REPLACE_PATTERN
public static final java.lang.String RESOURCE_TYPE
public static final java.lang.String SEARCH_PATTERN
public static final java.lang.String SEARCH_TYPE
public static final java.lang.String SITE_ROOT
public static final java.lang.String XPATH
public CmsSourceSearchApp()
public static java.lang.String generateState(CmsSearchReplaceSettings settings)
settings - the search settingspublic void initUI(I_CmsAppUIContext context)
I_CmsWorkplaceAppUse the context to add the app's components to the UI.
initUI in interface I_CmsWorkplaceAppinitUI in class A_CmsWorkplaceAppcontext - 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)protected void displayResult()
protected 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)protected void search(CmsSearchReplaceSettings settings, boolean updateState)
settings - the search settingsupdateState - true to create a new history entry