com.filenet.wcm.apps.server.ui
Class SimpleSearchModule
- java.lang.Object
com.filenet.wcm.toolkit.server.base.WcmDpContainer
com.filenet.wcm.toolkit.server.base.WcmModule
com.filenet.wcm.toolkit.server.base.GlobalEventModule
com.filenet.wcm.toolkit.server.base.WcmUiModule
com.filenet.wcm.apps.server.ui.SimpleSearchRenderingModule
com.filenet.wcm.apps.server.ui.SimpleSearchModule
All implemented interfaces:
com.filenet.wcm.toolkit.server.base.WcmModuleInterface, com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Direct known subclasses:
- public class SimpleSearchModule
- extends SimpleSearchRenderingModule
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
alwaysMagazine
|
|
DOCUMENT
|
|
FILTER_TYPE_KEY
|
|
filterPage
|
|
foldersearchstring
|
|
listView
|
|
PRINT_STATE_KEY
|
|
STATE_KEY
|
|
textLinksBar
|
|
TYPE_STRING
|
|
wsClearCriteriaText
|
| Fields inherited from class com.filenet.wcm.apps.server.ui.SimpleSearchRenderingModule |
|---|
adp, ALL_VERSIONS, classLabel, config, controller, CURRENT_VERSION, dateFormat, ds, ENDS_WITH, EQ, FORM_NAME, GT, GTEQ, HIDE, IN, ISNOTNULL, ISNULL, LIKE, LT, LTEQ, NEQ, OBJTYPE_CUSTOM_OBJECT, OBJTYPE_DOCUMENT, OBJTYPE_FOLDER, RELEASED_VERSION, SHOW, sitePrefs, STARTS_WITH, state, subclassesLabel, timeFormat, timezone, wsCustomObject, wsDocument, wsFilterByClass, wsFolder, wsIncludeSubclasses |
| Fields inherited from class com.filenet.wcm.toolkit.server.base.WcmModule |
|---|
locale, NAME_DELIMITER |
Constructor Summary
| Constructor and Description |
|---|
SimpleSearchModule()
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
addAdditionalDocumentProps(com.filenet.wcm.toolkit.server.util.FilterData filterData)
Overrides by subclasses to add additional criteria to the search criteria.
|
|
addBrowseDocFilter(com.filenet.wcm.toolkit.server.util.FilterData filter)
|
|
addSetAsDefaultLink()
|
|
addSwitchModeLink()
|
|
clearStateCriteria()
|
|
configureListView()
|
|
createListView()
|
|
doSearch()
|
|
getFormName()
|
|
getSearchObjectStore()
|
|
getShowSearchFor()
|
getSimpleSearchResultsListView()
|
|
|
getTemplatePropItems(javax.servlet.http.HttpServletRequest request)
|
|
initialize()
|
loadState(java.lang.String objectType,java.lang.String objectStoreName)
|
|
|
onChangeObjectType(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onClearChoice(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onClearClass(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onClearCriteria(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Clears the values from the fields on the form.
|
|
onClearUser(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onExecuteSearch(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the event that occurs when a user clicks the Execute button.
|
|
onGetNewCriteria(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Sets the user preferences for simple search.
|
|
onHideSearch(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onPrintView(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onReset(com.filenet.wcm.toolkit.server.util.event.GlobalEvent evt)
|
|
onSelectIncludeSubclasses(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onSelectObject(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the Select Object event by redirecting the user to the Select Object operation page
for selecting a value for an object-valued property.
|
|
onSelectUser(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Displays the Select User window.
|
|
onSetAsDefault(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onSetChoice(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onSetClass(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onSetObject(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onSetSearchIn(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onSetUser(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onShowSearch(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onStartPage(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
onStateChanged(com.filenet.wcm.toolkit.server.util.event.GlobalEvent e)
|
|
onStateChanged(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
|
|
readPropData(javax.servlet.http.HttpServletRequest request)
|
|
render(java.io.Writer w)
|
|
renderFilterClass(java.io.Writer w)
|
|
renderFilterClassUI(java.io.Writer w,boolean readOnlyMode)
|
|
renderOperator(java.lang.String multiValue,java.lang.String oper,int i,java.lang.String symName,java.io.Writer w)
|
|
renderSingleProperty(java.lang.String propType,java.io.Writer w,java.lang.String multiValue,java.lang.String oper,java.lang.String symName,java.lang.String propertyValue,int i,java.util.List markingList,java.util.List choiceList,java.lang.String hcvlId,int len)
|
|
setHideFilterClass(boolean value)
Sets the show filter class flag.
|
|
setSearchContainerTypes(java.lang.String[] newContainerTypes)
Sets the content types for a folder search.
|
|
setSearchCustomObjectTypes(java.lang.String[] newCustomObjectTypes)
Sets the custom object types for a custom object search.
|
|
setSearchingObjectStore(java.lang.String objStore,java.lang.String folderPath,java.lang.String folderName)
|
|
setSearchingObjectType(int objectType,java.lang.String filterClass,java.lang.String objStore,java.lang.String folderPath,java.lang.String folderName)
|
|
setSearchMimeTypes(java.lang.String[] newMimeTypes)
Sets the MIMIE types for a Document search
|
| Methods inherited from class com.filenet.wcm.apps.server.ui.SimpleSearchRenderingModule |
|---|
getCVLlistboxIndex, getCVLlistboxValue, getOperatorLabel, renderAndOrValue, renderCheckboxes, renderContentCriteria, renderFilterClassReadOnly, renderFilterProperty, renderLabelAndOperator, renderObjectTypeDropDown, renderPathAndToolBar, renderPropertyCriteria, renderSeparator, renderVersionOptionDropDown |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmUiModule |
|---|
getActive, getBasePath, getBaseUrl, getBaseURLBuilder, getControllerEventUrl, getControllerEventUrl, getEventFormFields, getEventFormFields, getEventFormTag, getEventFormTag, getEventUrl, getEventUrl, getEventUrl, getEventUrl, getFormSubmitUrl, getFormSubmitUrl, getGlobalEventUrl, getGlobalEventUrl, getPageUrl, getPageUrl, getPageUrl, getPageUrl, getUiParent, peekEvent, renderJSP, routeEvent, routeEvent, serverSideInclude, serverSideInclude, setActive, setJSP |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.GlobalEventModule |
|---|
subscribeGlobalEvent |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmModule |
|---|
addChild, addChild, addChild, cleanup, debugTrace, getClassProperty, getClassProperty, getClassPropertyKeys, getConfiguration, getController, getDataStore, getModuleProperty, getModuleProperty, getModuleProperty, getModuleProperty, getModulePropertyKeys, getName, getParent, getWindowProperty, getWindowProperty, persist, queryDataProvider, setClassProperty, setClassProperty, setController, setModuleProperty, setModuleProperty, setName, setParent, setPortletParent, setWindowProperty |
| Methods inherited from class com.filenet.wcm.toolkit.server.base.WcmDpContainer |
|---|
addDataProvider, addDataProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface |
|---|
addDataProvider, cleanup, getDataStore, getModuleProperty, getName, getParent, persist, queryDataProvider, setController, setModuleProperty, setName, setParent |
Field Detail
wsClearCriteriaText
- protected static final com.filenet.wcm.toolkit.util.WcmString wsClearCriteriaText
STATE_KEY
- public static final java.lang.String STATE_KEY
See Also:
DOCUMENT
- public static final int DOCUMENT
See Also:
FILTER_TYPE_KEY
- protected static final java.lang.String FILTER_TYPE_KEY
See Also:
PRINT_STATE_KEY
- protected static final java.lang.String PRINT_STATE_KEY
See Also:
TYPE_STRING
- protected static final java.lang.String TYPE_STRING
See Also:
textLinksBar
- protected WcmTextLinksBar textLinksBar
listView
- protected SimpleSearchResultsListView listView
alwaysMagazine
- protected boolean alwaysMagazine
foldersearchstring
- protected java.lang.String foldersearchstring
filterPage
- protected boolean filterPage
Constructor Detail
SimpleSearchModule
- public SimpleSearchModule()
Method Detail
initialize
- public void initialize()
- throws java.lang.Exception
Called by WcmController when the module is registered, and has access to the data store.
Do "constructor" types of things here.
Specified by:
initialize in interface com.filenet.wcm.toolkit.server.base.WcmModuleInterface
Overrides:
initialize in class SimpleSearchRenderingModule
Throws:
java.lang.ExceptiononReset
- public void onReset(com.filenet.wcm.toolkit.server.util.event.GlobalEvent evt)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononStateChanged
- public void onStateChanged(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSetClass
- public void onSetClass(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSelectIncludeSubclasses
- public void onSelectIncludeSubclasses( javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSetSearchIn
- public void onSetSearchIn(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononStateChanged
- public void onStateChanged(com.filenet.wcm.toolkit.server.util.event.GlobalEvent e)
- throws java.lang.Exception
Throws:
java.lang.ExceptionsetSearchMimeTypes
- public void setSearchMimeTypes( java.lang.String[] newMimeTypes)
Sets the MIMIE types for a Document search
Parameters:
newMimeTypes - sets value setSearchCustomObjectTypes
- public void setSearchCustomObjectTypes( java.lang.String[] newCustomObjectTypes)
Sets the custom object types for a custom object search.
Parameters:
newCustomObjectTypes - sets value setSearchContainerTypes
- public void setSearchContainerTypes( java.lang.String[] newContainerTypes)
Sets the content types for a folder search.
Parameters:
newContainerTypes - sets value setSearchingObjectStore
- public void setSearchingObjectStore( java.lang.String objStore,
- java.lang.String folderPath,
- java.lang.String folderName)
- throws java.lang.Exception
Throws:
java.lang.ExceptionsetSearchingObjectType
- public void setSearchingObjectType( int objectType,
- java.lang.String filterClass,
- java.lang.String objStore,
- java.lang.String folderPath,
- java.lang.String folderName)
- throws java.lang.Exception
Throws:
java.lang.ExceptioncreateListView
- protected void createListView()
- throws java.lang.Exception
Throws:
java.lang.ExceptionconfigureListView
- protected void configureListView( )
- throws java.lang.Exception
Throws:
java.lang.ExceptiononStartPage
- public void onStartPage(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Description copied from class:
com.filenet.wcm.toolkit.server.base.GlobalEventModule
Event that is fired for all UI modules before the page is rendered
Specified by:
onStartPage in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
onStartPage in class com.filenet.wcm.toolkit.server.base.GlobalEventModule
Parameters:
request - HttpServletRequest response - HttpServletResponse Throws:
java.lang.Exception - If any errors occured onPrintView
- public void onPrintView(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.Exceptionrender
- public void render(java.io.Writer w)
- throws java.lang.Exception
Description copied from class:
com.filenet.wcm.toolkit.server.base.WcmUiModule
Default render method. Outputs the string "empty module".
Specified by:
render in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
render in class com.filenet.wcm.toolkit.server.base.WcmUiModule
Parameters:
w - Writer object Throws:
java.lang.ExceptiongetShowSearchFor
- protected boolean getShowSearchFor( )
renderSingleProperty
- protected void renderSingleProperty( java.lang.String propType,
- java.io.Writer w,
- java.lang.String multiValue,
- java.lang.String oper,
- java.lang.String symName,
- java.lang.String propertyValue,
- int i,
- java.util.List markingList,
- java.util.List choiceList,
- java.lang.String hcvlId,
- int len)
- throws java.lang.Exception
Overrides:
Throws:
java.lang.ExceptionrenderFilterClass
- protected boolean renderFilterClass( java.io.Writer w)
- throws java.lang.Exception
Throws:
java.lang.ExceptionrenderFilterClassUI
- protected void renderFilterClassUI( java.io.Writer w,
- boolean readOnlyMode)
- throws java.lang.Exception
Throws:
java.lang.ExceptionrenderOperator
- protected void renderOperator(java.lang.String multiValue,
- java.lang.String oper,
- int i,
- java.lang.String symName,
- java.io.Writer w)
- throws java.lang.Exception
Overrides:
Throws:
java.lang.ExceptiononClearChoice
- public void onClearChoice(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSetChoice
- public void onSetChoice(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSetUser
- public void onSetUser(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiongetTemplatePropItems
- protected void getTemplatePropItems( javax.servlet.http.HttpServletRequest request)
- throws java.lang.Exception
Throws:
java.lang.ExceptionreadPropData
- protected void readPropData(javax.servlet.http.HttpServletRequest request)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononChangeObjectType
- public void onChangeObjectType( javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSelectObject
- public void onSelectObject(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Handles the Select Object event by redirecting the user to the Select Object operation page
for selecting a value for an object-valued property.
Parameters:
request - The request Object response - The response Object Throws:
java.lang.ExceptiononSetObject
- public void onSetObject(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononExecuteSearch
- public void onExecuteSearch(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Handles the event that occurs when a user clicks the Execute button.
Throws:
java.lang.ExceptionaddBrowseDocFilter
- protected void addBrowseDocFilter( com.filenet.wcm.toolkit.server.util.FilterData filter)
- throws java.lang.Exception
Throws:
java.lang.ExceptiondoSearch
- protected void doSearch()
- throws java.lang.Exception
Throws:
java.lang.ExceptiongetFormName
- public java.lang.String getFormName( )
Description copied from class:
com.filenet.wcm.toolkit.server.base.WcmUiModule
Returns form name. Base behavior returns null.
Specified by:
getFormName in interface com.filenet.wcm.toolkit.server.base.WcmUiModuleInterface
Overrides:
getFormName in class com.filenet.wcm.toolkit.server.base.WcmUiModule
Returns:
The String value of the form name or null.
loadState
- public SimpleSearchState loadState( java.lang.String objectType,
- java.lang.String objectStoreName)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononClearCriteria
- public void onClearCriteria(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Clears the values from the fields on the form.
Throws:
java.lang.ExceptionclearStateCriteria
- protected void clearStateCriteria( )
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSelectUser
- public void onSelectUser(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Displays the Select User window.
Throws:
java.lang.ExceptiononClearUser
- public void onClearUser(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptionsetHideFilterClass
- public void setHideFilterClass( boolean value)
Sets the show filter class flag.
onClearClass
- public void onClearClass(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononShowSearch
- public void onShowSearch(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononHideSearch
- public void onHideSearch(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiononGetNewCriteria
- public void onGetNewCriteria(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Sets the user preferences for simple search.
Throws:
java.lang.ExceptionaddSetAsDefaultLink
- protected void addSetAsDefaultLink( )
- throws java.lang.Exception
Throws:
java.lang.ExceptionaddSwitchModeLink
- protected void addSwitchModeLink( )
- throws java.lang.Exception
Throws:
java.lang.ExceptiononSetAsDefault
- public void onSetAsDefault(javax.servlet.http.HttpServletRequest request,
- javax.servlet.http.HttpServletResponse response)
- throws java.lang.Exception
Throws:
java.lang.ExceptiongetSimpleSearchResultsListView
- public SimpleSearchResultsListView getSimpleSearchResultsListView( )
getSearchObjectStore
- public java.lang.String getSearchObjectStore( )
addAdditionalDocumentProps
- protected void addAdditionalDocumentProps( com.filenet.wcm.toolkit.server.util.FilterData filterData)
- throws java.lang.Exception
Overrides by subclasses to add additional criteria to the search criteria.
Throws:
java.lang.Exception
com.filenet.wcm.toolkit.server.base.WcmModule