com.filenet.wcm.apps.server.ui

Class SimpleSearchModule

  1. java.lang.Object
  2. extended bycom.filenet.wcm.toolkit.server.base.WcmDpContainer
  3. extended bycom.filenet.wcm.toolkit.server.base.WcmModule
  4. extended bycom.filenet.wcm.toolkit.server.base.GlobalEventModule
  5. extended bycom.filenet.wcm.toolkit.server.base.WcmUiModule
  6. extended bycom.filenet.wcm.apps.server.ui.SimpleSearchRenderingModule
  7. extended bycom.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:
BrowseListView.FolderNavSimpleSearch, SelectOperation.SelectionSimpleSearch

  1. public class SimpleSearchModule
  2. extends SimpleSearchRenderingModule
Represents a simple search page.

Field Summary

Modifier and Type Field and Description
  1. protected
  2. boolean
alwaysMagazine
  1. static
  2. int
DOCUMENT
  1. protected static
  2. java.lang.String
FILTER_TYPE_KEY
  1. protected
  2. boolean
filterPage
  1. protected
  2. java.lang.String
foldersearchstring
  1. protected
  2. SimpleSearchResultsListView
listView
  1. protected static
  2. java.lang.String
PRINT_STATE_KEY
  1. static
  2. java.lang.String
STATE_KEY
  1. protected
  2. WcmTextLinksBar
textLinksBar
  1. protected static
  2. java.lang.String
TYPE_STRING
  1. protected static
  2. com.filenet.wcm.toolkit.util.WcmString
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
  1. protected
  2. void
addAdditionalDocumentProps(com.filenet.wcm.toolkit.server.util.FilterData filterData)
Overrides by subclasses to add additional criteria to the search criteria.
  1. protected
  2. void
addBrowseDocFilter(com.filenet.wcm.toolkit.server.util.FilterData filter)
  1. protected
  2. void
addSetAsDefaultLink()
  1. protected
  2. void
addSwitchModeLink()
  1. protected
  2. void
clearStateCriteria()
  1. protected
  2. void
configureListView()
  1. protected
  2. void
createListView()
  1. protected
  2. void
doSearch()
  1. java.lang.String
getFormName()
  1. java.lang.String
getSearchObjectStore()
  1. protected
  2. boolean
getShowSearchFor()
  1. SimpleSearchResultsListView
getSimpleSearchResultsListView()
  1. protected
  2. void
getTemplatePropItems(javax.servlet.http.HttpServletRequest request)
  1. void
initialize()
  1. SimpleSearchState
loadState(java.lang.String objectType,java.lang.String objectStoreName)
  1. void
onChangeObjectType(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onClearChoice(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onClearClass(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onClearCriteria(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Clears the values from the fields on the form.
  1. void
onClearUser(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onExecuteSearch(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Handles the event that occurs when a user clicks the Execute button.
  1. void
onGetNewCriteria(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Sets the user preferences for simple search.
  1. void
onHideSearch(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onPrintView(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onReset(com.filenet.wcm.toolkit.server.util.event.GlobalEvent evt)
  1. void
onSelectIncludeSubclasses(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
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.
  1. void
onSelectUser(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
Displays the Select User window.
  1. void
onSetAsDefault(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onSetChoice(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onSetClass(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onSetObject(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onSetSearchIn(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onSetUser(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onShowSearch(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onStartPage(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. void
onStateChanged(com.filenet.wcm.toolkit.server.util.event.GlobalEvent e)
  1. void
onStateChanged(javax.servlet.http.HttpServletRequest request,javax.servlet.http.HttpServletResponse response)
  1. protected
  2. void
readPropData(javax.servlet.http.HttpServletRequest request)
  1. void
render(java.io.Writer w)
  1. protected
  2. boolean
renderFilterClass(java.io.Writer w)
  1. protected
  2. void
renderFilterClassUI(java.io.Writer w,boolean readOnlyMode)
  1. protected
  2. void
renderOperator(java.lang.String multiValue,java.lang.String oper,int i,java.lang.String symName,java.io.Writer w)
  1. protected
  2. 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)
  1. void
setHideFilterClass(boolean value)
Sets the show filter class flag.
  1. void
setSearchContainerTypes(java.lang.String[] newContainerTypes)
Sets the content types for a folder search.
  1. void
setSearchCustomObjectTypes(java.lang.String[] newCustomObjectTypes)
Sets the custom object types for a custom object search.
  1. void
setSearchingObjectStore(java.lang.String objStore,java.lang.String folderPath,java.lang.String folderName)
  1. void
setSearchingObjectType(int objectType,java.lang.String filterClass,java.lang.String objStore,java.lang.String folderPath,java.lang.String folderName)
  1. void
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

  1. protected static final com.filenet.wcm.toolkit.util.WcmString wsClearCriteriaText

STATE_KEY

  1. public static final java.lang.String STATE_KEY
See Also:

DOCUMENT

  1. public static final int DOCUMENT
See Also:

FILTER_TYPE_KEY

  1. protected static final java.lang.String FILTER_TYPE_KEY
See Also:

  1. protected static final java.lang.String PRINT_STATE_KEY
See Also:

TYPE_STRING

  1. protected static final java.lang.String TYPE_STRING
See Also:

  1. protected WcmTextLinksBar textLinksBar

listView

  1. protected SimpleSearchResultsListView listView

alwaysMagazine

  1. protected boolean alwaysMagazine

foldersearchstring

  1. protected java.lang.String foldersearchstring

filterPage

  1. protected boolean filterPage

Constructor Detail

SimpleSearchModule

  1. public SimpleSearchModule()

Method Detail

initialize

  1. public void initialize()
  2. throws java.lang.Exception
Description copied from class: com.filenet.wcm.toolkit.server.base.WcmModule
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:
Throws:
java.lang.Exception

onReset

  1. public void onReset(com.filenet.wcm.toolkit.server.util.event.GlobalEvent evt)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

onStateChanged

  1. public void onStateChanged(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onSetClass

  1. public void onSetClass(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onSelectIncludeSubclasses

  1. public void onSelectIncludeSubclasses( javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onSetSearchIn

  1. public void onSetSearchIn(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onStateChanged

  1. public void onStateChanged(com.filenet.wcm.toolkit.server.util.event.GlobalEvent e)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

setSearchMimeTypes

  1. public void setSearchMimeTypes( java.lang.String[] newMimeTypes)
Sets the MIMIE types for a Document search
Parameters:
newMimeTypes - sets value

setSearchCustomObjectTypes

  1. public void setSearchCustomObjectTypes( java.lang.String[] newCustomObjectTypes)
Sets the custom object types for a custom object search.
Parameters:
newCustomObjectTypes - sets value

setSearchContainerTypes

  1. public void setSearchContainerTypes( java.lang.String[] newContainerTypes)
Sets the content types for a folder search.
Parameters:
newContainerTypes - sets value

setSearchingObjectStore

  1. public void setSearchingObjectStore( java.lang.String objStore,
  2. java.lang.String folderPath,
  3. java.lang.String folderName)
  4. throws java.lang.Exception
Throws:
java.lang.Exception

setSearchingObjectType

  1. public void setSearchingObjectType( int objectType,
  2. java.lang.String filterClass,
  3. java.lang.String objStore,
  4. java.lang.String folderPath,
  5. java.lang.String folderName)
  6. throws java.lang.Exception
Throws:
java.lang.Exception

createListView

  1. protected void createListView()
  2. throws java.lang.Exception
Throws:
java.lang.Exception

configureListView

  1. protected void configureListView( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

onStartPage

  1. public void onStartPage(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. 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

  1. public void onPrintView(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

render

  1. public void render(java.io.Writer w)
  2. 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.Exception

getShowSearchFor

  1. protected boolean getShowSearchFor( )

renderSingleProperty

  1. protected void renderSingleProperty( java.lang.String propType,
  2. java.io.Writer w,
  3. java.lang.String multiValue,
  4. java.lang.String oper,
  5. java.lang.String symName,
  6. java.lang.String propertyValue,
  7. int i,
  8. java.util.List markingList,
  9. java.util.List choiceList,
  10. java.lang.String hcvlId,
  11. int len)
  12. throws java.lang.Exception
Overrides:
Throws:
java.lang.Exception

renderFilterClass

  1. protected boolean renderFilterClass( java.io.Writer w)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

renderFilterClassUI

  1. protected void renderFilterClassUI( java.io.Writer w,
  2. boolean readOnlyMode)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

renderOperator

  1. protected void renderOperator(java.lang.String multiValue,
  2. java.lang.String oper,
  3. int i,
  4. java.lang.String symName,
  5. java.io.Writer w)
  6. throws java.lang.Exception
Overrides:
Throws:
java.lang.Exception

onClearChoice

  1. public void onClearChoice(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onSetChoice

  1. public void onSetChoice(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onSetUser

  1. public void onSetUser(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

getTemplatePropItems

  1. protected void getTemplatePropItems( javax.servlet.http.HttpServletRequest request)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

readPropData

  1. protected void readPropData(javax.servlet.http.HttpServletRequest request)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

onChangeObjectType

  1. public void onChangeObjectType( javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onSelectObject

  1. public void onSelectObject(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. 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.Exception

onSetObject

  1. public void onSetObject(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onExecuteSearch

  1. public void onExecuteSearch(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Handles the event that occurs when a user clicks the Execute button.
Throws:
java.lang.Exception

addBrowseDocFilter

  1. protected void addBrowseDocFilter( com.filenet.wcm.toolkit.server.util.FilterData filter)
  2. throws java.lang.Exception
Throws:
java.lang.Exception

doSearch

  1. protected void doSearch()
  2. throws java.lang.Exception
Throws:
java.lang.Exception

getFormName

  1. 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

  1. public SimpleSearchState loadState( java.lang.String objectType,
  2. java.lang.String objectStoreName)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onClearCriteria

  1. public void onClearCriteria(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Clears the values from the fields on the form.
Throws:
java.lang.Exception

clearStateCriteria

  1. protected void clearStateCriteria( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

onSelectUser

  1. public void onSelectUser(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Displays the Select User window.
Throws:
java.lang.Exception

onClearUser

  1. public void onClearUser(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

setHideFilterClass

  1. public void setHideFilterClass( boolean value)
Sets the show filter class flag.

onClearClass

  1. public void onClearClass(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onShowSearch

  1. public void onShowSearch(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onHideSearch

  1. public void onHideSearch(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

onGetNewCriteria

  1. public void onGetNewCriteria(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Sets the user preferences for simple search.
Throws:
java.lang.Exception

  1. protected void addSetAsDefaultLink( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

  1. protected void addSwitchModeLink( )
  2. throws java.lang.Exception
Throws:
java.lang.Exception

onSetAsDefault

  1. public void onSetAsDefault(javax.servlet.http.HttpServletRequest request,
  2. javax.servlet.http.HttpServletResponse response)
  3. throws java.lang.Exception
Throws:
java.lang.Exception

getSimpleSearchResultsListView

  1. public SimpleSearchResultsListView getSimpleSearchResultsListView( )

getSearchObjectStore

  1. public java.lang.String getSearchObjectStore( )

addAdditionalDocumentProps

  1. protected void addAdditionalDocumentProps( com.filenet.wcm.toolkit.server.util.FilterData filterData)
  2. throws java.lang.Exception
Overrides by subclasses to add additional criteria to the search criteria.
Throws:
java.lang.Exception