Class BaseSearchBarPageBean
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.bean.BaseViewBean
com.webmethods.caf.faces.bean.BasePortletPageBean
com.webmethods.caf.faces.bean.search.BaseSearchBarPageBean
- All Implemented Interfaces:
IPageFlowScopeAdapter
,ISearchBarPageBean
,ISearchPageBean
,Serializable
,EventListener
,PhaseListener
,HttpSessionBindingListener
- Direct Known Subclasses:
BaseTaskInboxBarPageBean
public abstract class BaseSearchBarPageBean
extends BasePortletPageBean
implements ISearchBarPageBean, ISearchPageBean
Base page bean for views containing a search bar control
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.bean.BaseViewBean
BaseViewBean.ClientIdsContentProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ISavedSearchProvider
Reference to the current saved search providerprotected ISearchOptionsManager
Reference to the current search options managerprotected ISearchQueryFactory
Reference to the current search query factoryFields inherited from class com.webmethods.caf.faces.bean.BaseViewBean
clientIds, initialized
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the active saved search object for the SearchBar control.Gets the active search query object for the SearchBar control.protected SearchBar
Wrapper around the getSearchBarControl method that throws an exception if the SearchBar value is nullCreates and returns implementation of ISavedSearchProviderabstract SearchBar
Retrieves the SearchBar control for this pageCreates and returns implementation of ISearchOptionsManagerCreates and returns implementation of ISearchQueryFactoryboolean
Returns true if the active searchbar tab is the the 'Advanced' tabboolean
Returns true if the active searchbar tab is the the 'Options' tabboolean
Returns true if the active searchbar tab is the the 'Saved' tabboolean
Returns true if the active searchbar tab is the the 'Search' tabvoid
loadSearchQueryDefaults
(ISearchQuery searchQuery) Loads default values into search queryMethods inherited from class com.webmethods.caf.faces.bean.BasePortletPageBean
beforeWorkspaceLoad, callInitialize, clearNavigationState, createActionUrl, createRenderUrl, getActivePreferencesBean, getPreferences, getRequestID, gotoPage, switchToPortletMode
Methods inherited from class com.webmethods.caf.faces.bean.BaseViewBean
afterApplyRequestValues, afterInvokeApplication, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRenderResponse, beforeRestoreView, beforeUpdateModelValues, findComponent, findComponentInRoot, getApplicationScope, getClientIds, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, initialize, isAsyncRequest, preRenderResponse, release, resetPageFlowStorage, streamFileDataToResponse
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
fSavedSearchProvider
Reference to the current saved search provider -
fSearchQueryFactory
Reference to the current search query factory -
fSearchOptionsManager
Reference to the current search options manager
-
-
Constructor Details
-
BaseSearchBarPageBean
public BaseSearchBarPageBean()Default Constructor
-
-
Method Details
-
getSavedSearchProvider
Description copied from interface:ISearchBarPageBean
Creates and returns implementation of ISavedSearchProvider- Specified by:
getSavedSearchProvider
in interfaceISearchBarPageBean
-
getSearchQueryFactory
Description copied from interface:ISearchBarPageBean
Creates and returns implementation of ISearchQueryFactory- Specified by:
getSearchQueryFactory
in interfaceISearchBarPageBean
-
getSearchOptionsManager
Description copied from interface:ISearchBarPageBean
Creates and returns implementation of ISearchOptionsManager- Specified by:
getSearchOptionsManager
in interfaceISearchBarPageBean
-
isSearchBarOnSimpleTab
public boolean isSearchBarOnSimpleTab()Returns true if the active searchbar tab is the the 'Search' tab- Returns:
- true if the active searchbar tab is the 'Search' tab
-
isSearchBarOnAdvancedTab
public boolean isSearchBarOnAdvancedTab()Returns true if the active searchbar tab is the the 'Advanced' tab- Returns:
- true if the active searchbar tab is the 'Advanced' tab
-
isSearchBarOnOptionsTab
public boolean isSearchBarOnOptionsTab()Returns true if the active searchbar tab is the the 'Options' tab- Returns:
- true if the active searchbar tab is the 'Options' tab
-
isSearchBarOnSavedTab
public boolean isSearchBarOnSavedTab()Returns true if the active searchbar tab is the the 'Saved' tab- Returns:
- true if the active searchbar tab is the 'Saved' tab
-
getSearchBarControl
Retrieves the SearchBar control for this page- Returns:
- SearchBar control for the page
-
loadSearchQueryDefaults
Loads default values into search query- Specified by:
loadSearchQueryDefaults
in interfaceISearchBarPageBean
-
getSafeSearchBarControl
Wrapper around the getSearchBarControl method that throws an exception if the SearchBar value is null- Returns:
- SearchBar control for the page
-
getActiveSearchQuery
Gets the active search query object for the SearchBar control.- Specified by:
getActiveSearchQuery
in interfaceISearchPageBean
- Returns:
- Returns the activeSearchQuery.
-
getActiveSavedSearch
Gets the active saved search object for the SearchBar control.- Returns:
- Returns the activeSavedSearch.
-