|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.query.LocalSearchProcessor
wt.query.ObjectSearchProcessor
Field Summary | |
private String |
base_class
|
private static String |
CODEBASE
|
private Hashtable |
criteria
|
protected static String |
CRITERIA_PREFIX
|
protected static String |
DEFAULT_FORM_METHOD
|
protected static String |
DEFAULT_NAME_VARIABLE
|
protected static String |
DEFAULT_OR_VARIABLE
|
protected static String |
DEFAULT_UPDATE_FUNCTION_NAME
|
protected static String |
DEFAULT_URLPROCESSOR_METHOD
|
private Vector |
error
|
private boolean |
form_is_submitted
|
private String |
form_name
|
protected static String |
FORM_PARAM_PREFIX
|
protected static String |
JAVASCRIPT_LANGUAGE
|
private String |
multi_level_BOM
|
protected static String |
NAME_ARRAY
|
protected static String |
OBJECT_REFERENCE_ARRAY
|
private static int |
PAGE_EXPIRATION
|
private String |
query_value
|
private static String |
RESOURCE
|
protected static String |
RESULTS_FORM_NAME
|
protected static String |
RETURN_SELECTION_FUNCTION_NAME
|
protected static String |
SET_FIELD_FUNCTION_NAME
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.query.LocalSearchProcessor |
|
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
ObjectSearchProcessor()
|
Method Summary | |
void |
buildClassList(Properties properties,
Locale locale,
OutputStream os)
|
static Properties |
combineProperties(Properties prop_a,
Properties prop_b)
Returns a Properties object which is a result of combining the entries in the two given Properties objects. |
void |
displayBaseSearchType(Properties parameters,
Locale locale,
OutputStream os)
|
void |
displayIcon(Properties parameters,
Locale locale,
OutputStream os)
|
void |
displaySearchCriteria(Properties parameters,
Locale locale,
OutputStream os)
Presents the local search criteria. |
void |
displaySearchType(Properties parameters,
Locale locale,
OutputStream os)
|
void |
doSearch(Properties parameters,
Locale locale,
OutputStream os)
Presents the local search results. |
protected void |
endScriptTag(PrintWriter out)
Convenience method to output the ending SCRIPT tag. |
protected static Properties |
getFormParams(Properties props)
|
static String |
getHiddenFieldHTML(String name,
String value)
|
private WTPartMaster |
getPartMaster(String oidValue)
Create a WTReference and return a WTPartMaster. |
HTMLTemplate |
getTemplate(HTTPRequest request,
String action)
Returns the HTMLTemplate to be processed by this processor. |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
This method handles HTTP GET requests to produce an HTML page which presents the Local Search criteria page. |
void |
outputContextParameters(PrintWriter out)
|
static void |
outputHiddenField(String name,
String value,
PrintWriter out)
Outputs a HIDDEN form field with the given name and given value to the given printwriter. |
protected void |
outputReturnSelectionFunction(String or_var,
String name_var,
PrintWriter out)
Outputs a JavaScript function to return the object reference and name of the selected search result to the parent document. |
protected void |
outputSetFieldFunction(PrintWriter out)
Outputs a JavaScript function which will set the value of a given form element to the given value. |
protected void |
outputUpdateSelectedFunction(String or_var,
String name_var,
String function_name,
PrintWriter out)
|
void |
populateCriteria(Properties params)
Populate this.criteria from Properties. |
static void |
printParams(Properties parameters)
Outputs the key-value pairs in the given Properties object. |
static void |
processObjectSearch(HTTPRequest req,
HTTPResponse resp)
|
private void |
showSearchCriteria(OutputStream os,
Properties parameters,
Locale locale,
PrintWriter out)
|
protected void |
startScriptTag(String language,
PrintWriter out)
Convenience method to output the starting SCRIPT tag. |
Methods inherited from class wt.query.LocalSearchProcessor |
displayLocalSearch, displayLocalSearch, getAttributeValueList, getCabinetList, getDataFormatList, getLegalValueList, getTeamTemplateList, getTemplate, getValueList, getViewList, localSearch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String CODEBASE
private static boolean VERBOSE
private static int PAGE_EXPIRATION
private static final String RESOURCE
protected static String DEFAULT_OR_VARIABLE
protected static String DEFAULT_NAME_VARIABLE
protected static String DEFAULT_UPDATE_FUNCTION_NAME
protected static String OBJECT_REFERENCE_ARRAY
protected static String NAME_ARRAY
protected static String RESULTS_FORM_NAME
protected static String SET_FIELD_FUNCTION_NAME
protected static String RETURN_SELECTION_FUNCTION_NAME
protected static String JAVASCRIPT_LANGUAGE
protected static String DEFAULT_URLPROCESSOR_METHOD
protected static String DEFAULT_FORM_METHOD
protected static String FORM_PARAM_PREFIX
protected static String CRITERIA_PREFIX
private Hashtable criteria
private String query_value
private String base_class
private String form_name
private boolean form_is_submitted
private Vector error
private String multi_level_BOM
Constructor Detail |
public ObjectSearchProcessor()
Method Detail |
public void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
handleRequest
in interface TemplateProcessor
handleRequest
in class LocalSearchProcessor
req
- HTTPRequestresp
- HTTPResponse
WTException
URLProcessor
public HTMLTemplate getTemplate(HTTPRequest request, String action) throws WTException
request
- The HTTPRequest used in setting the language
preferences for this templateaction
- The action used in selecting the appropriate
HTML template resource.
WTException
public static void processObjectSearch(HTTPRequest req, HTTPResponse resp) throws WTException
WTException
public void buildClassList(Properties properties, Locale locale, OutputStream os) throws WTException
WTException
public void displaySearchCriteria(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
private void showSearchCriteria(OutputStream os, Properties parameters, Locale locale, PrintWriter out) throws WTException
WTException
public void doSearch(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void displaySearchType(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void displayBaseSearchType(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void displayIcon(Properties parameters, Locale locale, OutputStream os)
public void outputContextParameters(PrintWriter out)
protected void outputUpdateSelectedFunction(String or_var, String name_var, String function_name, PrintWriter out)
protected void outputSetFieldFunction(PrintWriter out)
out
- the PrintWriter to write the function toprotected void outputReturnSelectionFunction(String or_var, String name_var, PrintWriter out)
or_var
- the form element name within this page which
contains the value of the selected object referencename_var
- the form element name within this page which
contains the value of the selected object nameout
- the PrintWriter to write the JavaScript function
toprotected void startScriptTag(String language, PrintWriter out)
language
- the String language to use in the SCRIPT tagout
- the PrintWriter to write toprotected void endScriptTag(PrintWriter out)
protected static Properties getFormParams(Properties props)
public static void outputHiddenField(String name, String value, PrintWriter out)
name
- the Name of the hidden fieldvalue
- the value of the hidden fieldout
- the PrintWriter to write to.public static String getHiddenFieldHTML(String name, String value)
public static void printParams(Properties parameters)
parameters
- the Properties object whose entries are
outputpublic static Properties combineProperties(Properties prop_a, Properties prop_b)
prop_a
- one of the two Properties objects to be combinedprop_b
- one of the two Properties objects to be combined
public void populateCriteria(Properties params)
private WTPartMaster getPartMaster(String oidValue) throws WTException
oidValue
- an oid used to get the OR.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |