Package com.portal.search
Class SearchData
java.lang.Object
com.portal.search.SearchData
- All Implemented Interfaces:
Serializable
This class contains information necessary for doing searches.
- Version:
- %version: 8 % %date_modified: Wed Jan 02 11:49:04 2002 %
- Author:
- mgaines
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates an operation for retrieving control information for a given template.static final int
Indicates an operation for stopping a searchstatic final int
Indicates an operation required to display information for a generic template.static final int
Indicates an operation required for retrieving fields information to display in the generic template.static final int
Indicates a search operation.static final int
Indicates an operation for setting the results for the search.static final int
Indicates an operation for stopping a search -
Constructor Summary
ConstructorsConstructorDescriptionSearchData
(int type) Creates an instance of this data class.SearchData
(int type, SearchTemplate tmpl) Creates an instance of this data class.SearchData
(int type, SearchTemplate[] templates) Creates an instance of this data class.SearchData
(int type, String str) Creates an instance of this data class.SearchData
(int type, String[] fields) Creates an instance of this data class.SearchData
(int type, String[] arg, ControlInfo ciClass, ControlInfo ciField, SearchTemplate st) Creates an instance of this data class. -
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
getSpec()
String[]
int
getType()
void
setControlInfo
(Hashtable cInfo) Sets the ControlInfo property.void
Sets the fields for the generic template.void
Sets the model handle to be used in the client.void
Sets the Spec property for a template.void
setSubclasses
(String[] sclass) Sets the subclasses for the generic template.void
setTemplates
(SearchTemplate[] tmpls) Sets the search templates property.
-
Field Details
-
SEARCH
public static final int SEARCHIndicates a search operation.- See Also:
-
GENERIC_TMPL
public static final int GENERIC_TMPLIndicates an operation required to display information for a generic template.- See Also:
-
GENERIC_TMPL_FIELDS
public static final int GENERIC_TMPL_FIELDSIndicates an operation required for retrieving fields information to display in the generic template.- See Also:
-
SET_RESULTS
public static final int SET_RESULTSIndicates an operation for setting the results for the search.- See Also:
-
CTRL_INFO
public static final int CTRL_INFOIndicates an operation for retrieving control information for a given template.- See Also:
-
STOP_SEARCH
public static final int STOP_SEARCHIndicates an operation for stopping a search- See Also:
-
GENERIC_SEARCH_FLDS
public static final int GENERIC_SEARCH_FLDSIndicates an operation for stopping a search- See Also:
-
mClass
-
mField
-
-
Constructor Details
-
SearchData
Creates an instance of this data class. This is used for initiating a search.- Parameters:
type
- the operation this is used fortemplates
- the templates to use in the search.
-
SearchData
Creates an instance of this data class. This is used for retrieving field or subclass information related to the given class for the generic template.- Parameters:
type
- the operation this is used forstr
- the string representing a class
-
SearchData
public SearchData(int type) Creates an instance of this data class. This is used for stopping an existing search.- Parameters:
type
- the operation this is used for
-
SearchData
Creates an instance of this data class. This is used for retrieving control information for a given template. Control information refers to the specific UI controls needed to display the correct search panel for the template.- Parameters:
type
- the operation this is used fortmpl
- the SearchTemplate this control is for
-
SearchData
Creates an instance of this data class. This is used for setting result fields for a search.- Parameters:
type
- the operation this is used forfields
- the fields to use for search results
-
SearchData
public SearchData(int type, String[] arg, ControlInfo ciClass, ControlInfo ciField, SearchTemplate st) Creates an instance of this data class. This is used in generic search data collection.- Parameters:
type
- the operation this is used forarg
- 4 fields
-
-
Method Details
-
setSubclasses
Sets the subclasses for the generic template.- Parameters:
sclass
- the array of subclasses
-
getSubclasses
- Returns:
- the subclasses for a class.
-
setFields
Sets the fields for the generic template.- Parameters:
flds
- the fields for the generic template
-
getFields
- Returns:
- the fields for a subclass.
-
setTemplates
Sets the search templates property.- Parameters:
tmpls
- the array of SearchTemplates
-
getTemplates
- Returns:
- the fields for a subclass.
-
getTemplate
- Returns:
- the search template
-
setHandle
Sets the model handle to be used in the client.- Parameters:
h
- the model handle
-
getHandle
- Returns:
- the fields for a subclass.
-
getType
public int getType()- Returns:
- the type of operation this object is used for
-
getClassString
- Returns:
- the string representation of the object
-
setControlInfo
Sets the ControlInfo property. This is used for translating the search template to a panel in the SearchPanel.- Parameters:
cInfo
- hashtable containing control information
-
getControlInfo
- Returns:
- the hashtable containing control information for the template
-
setSpec
Sets the Spec property for a template. This is used for building the the template string for the input of a search.- Parameters:
s
- the string used in when building the search
-
getSpec
- Returns:
- the string used in when building the search
-
getGenericSearchArgs
- Returns:
- the string used in when building the search
-