net.sf.scmwebgui.actions
Class AndSearch
java.lang.Object
net.sf.scmwebgui.actions.AndSearch
- All Implemented Interfaces:
- IActionHandler
public class AndSearch
- extends java.lang.Object
- implements IActionHandler
This IActionHandler launch an 'AND' search in sconman. It allows search by a
string and filter by content fields. There is a list of used parameters:
- 'query' - The search string. (optional)
- 'fields. Name_Of_Field' - Searchs the string in
Name_Of_Field.
- 'global' - "true" if we want to search in all the project,
or "false" if we want to search in current category.
- 'subcategories' - "true" if we want to search in
subcategories, or "false" if we want to search in current category only.
The IActionHandler to show search results, puts an attribute called '
searchResults' in Velocity context to access to a ISearchResults
object containing the search of current search. The other attributes are
stored too.
- Author:
- luigi_beast
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndSearch
public AndSearch()
execute
public void execute(RequestContext ctx,
javax.servlet.http.HttpServletRequest request)
- Description copied from interface:
IActionHandler
- Execute the actions in the IActionHandler
- Specified by:
execute
in interface IActionHandler
request
- Servlet Request with parameters as attributes.
getFields
public java.util.Map getFields()
- Returns:
- Returns the fields.
setFields
public void setFields(java.util.Map fields)
- Parameters:
fields
- The fields to set.
isGlobal
public boolean isGlobal()
- Returns:
- Returns the global.
setGlobal
public void setGlobal(boolean global)
- Parameters:
global
- The global to set.
getQuery
public java.lang.String getQuery()
- Returns:
- Returns the query.
setQuery
public void setQuery(java.lang.String query)
- Parameters:
query
- The query to set.
isSubcategories
public boolean isSubcategories()
- Returns:
- Returns the subcategories.
setSubcategories
public void setSubcategories(boolean subcategories)
- Parameters:
subcategories
- The subcategories to set.
getCtype
public java.lang.String getCtype()
- Returns:
- Returns the ctype.
setCtype
public void setCtype(java.lang.String ctype)
- Parameters:
ctype
- The ctype to set.
getPageSize
public java.lang.String getPageSize()
- Returns:
- Returns the pageSize.
setPageSize
public void setPageSize(java.lang.String pageSize)
- Parameters:
pageSize
- The pageSize to set.
Copyright null null. All Rights Reserved.