| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.component.Component
org.jaffa.components.finder.FinderComponent2
This is the base class for all Finder components created by using the object_finder_2_0 pattern. It has the following properties - 1- displayResultsScreen : If set to true, then the Results screen will be directly brought up, bypassing the Criteria screen. 2- consolidatedCriteriaAndResults : If set to true, then the Criteria and Results screen will be shown together 3- sortDropDown : The sort criteria to use for the inquiry 4- exportType : The export option to use for the inquiry (initialized to regular Web Pages) 5- maxRecords: The maximum number of records to retrieve. All records will be retrieved, if no value is specified. A Finder class will have to provide an implementation for the doInquiry(), getCriteriaFormName(), getResultsFormName() and getConsolidatedCriteriaAndResultsFormName() methods.
| Field Summary | |
| static String | ATTRIBUTE_EXPORT_TYPE_XMLThis request stream attribute is set after a query if the exportType is XML. | 
| static String | EXPORT_TYPE_EXCELA global constant for the Excel export option. | 
| static String | EXPORT_TYPE_WEB_PAGEA global constant for the Web Page export option. | 
| static String | EXPORT_TYPE_XMLA global constant for the XML export option. | 
| Constructor Summary | |
| FinderComponent2() | |
| Method Summary | |
| protected  void | addSortCriteria(FinderInDto inputDto)Interprets the value of the 'sortDropDown' property adding suitable values to the input Dto. | 
|  FormKey | display()If the displayResultsScreen property has not been set or has been set to false, it will return the FormKey for the Criteria screen. | 
|  FormKey | displayCriteria()Invoked the initializeCriteriaScreen() method and then returns the FormKey for the Criteria screen. | 
|  FormKey | displayResults()Invokes the performInquiry() method and then returns the FormKey for the Results screen. | 
| protected abstract  FinderOutDto | doInquiry()The Component should provide an implementation for this method to perform the actual query to obtain the FinderOutDto. | 
|  Boolean | getConsolidatedCriteriaAndResults()Getter for property consolidatedCriteriaAndResults. | 
| protected abstract  String | getConsolidatedCriteriaAndResultsFormName()The Component should provide an implementation for this method to return the Struts GlobalForward for the ConsolidatedCriteriaAndResults screen. | 
|  FormKey | getCriteriaFormKey()Getter for the Criteria screen's FormKey. | 
| protected abstract  String | getCriteriaFormName()The Component should provide an implementation for this method to return the Struts GlobalForward for the Criteria screen. | 
|  Boolean | getDisplayResultsScreen()Getter for property displayResultsScreen. | 
| protected abstract  String | getExcelFormName()The Component should provide an implementation for this method to return the Struts GlobalForward for the screen displaying the results as an Excel spreadsheet. | 
|  String | getExportType()Getter for property exportType. | 
|  FinderOutDto | getFinderOutDto()Getter for property finderOutDto. | 
| protected  HeaderDto | getHeaderDto()Returns the HeaderDto. | 
|  Integer | getMaxRecords()Getter for property maxRecords. | 
|  FormKey | getResultsFormKey()Getter for the Results screen's FormKey. | 
| protected abstract  String | getResultsFormName()The Component should provide an implementation for this method to return the Struts GlobalForward for the Results screen. | 
|  String | getSortDropDown()Getter for property sortDropDown. | 
| protected abstract  String | getXmlFormName()The Component should provide an implementation for this method to return the Struts GlobalForward for the screen displaying the results in XML format. | 
|  void | incrementMaxRecords()This will set the property 'maxRecords' to the value following the current one, in the list of values returned by CriteriaDropDownOptions.getMaxRecordsDropDownOptions(). | 
| protected  void | initializeCriteriaScreen()The Component should override this method to retrieve the set of codes for dropdowns in criteria screen, if any are required. | 
|  void | performInquiry()Invokes the doInquiry() method and then removes the "rows" GridModel object from the cache. | 
|  void | setConsolidatedCriteriaAndResults(Boolean consolidatedCriteriaAndResults)Setter for property consolidatedCriteriaAndResults. | 
|  void | setDisplayResultsScreen(Boolean displayResultsScreen)Setter for property displayResultsScreen. | 
|  void | setExportType(String exportType)Setter for property exportType. | 
|  void | setMaxRecords(Integer maxRecords)Setter for property maxRecords. | 
|  void | setSortDropDown(String sortDropDown)Setter for property sortDropDown. | 
| protected  void | uncacheRowsModel()Removes the 'rows' GridModel from the WidgetCache. | 
| protected  void | updateMaxRecordsModel()Update the DropDownModel for the MaxRecords field, if one already exists. | 
| Methods inherited from class org.jaffa.presentation.portlet.component.Component | 
| addChildComponent, addFormKeyChangeListener, getComponentDefinition, getComponentId, getContainerFormKey, getFormKeyChangeListeners, getReturnToFormKey, getToken, getUserSession, isActive, quit, quitAndReturnToCallingScreen, reflectAndSetParms, removeFormKeyChangeListener, returnChildComponents, returnLastActivityDate, run, setContainerFormKey, setReturnToFormKey, setToken, updateLastActivityDate | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String EXPORT_TYPE_WEB_PAGE
public static final String EXPORT_TYPE_EXCEL
public static final String EXPORT_TYPE_XML
public static final String ATTRIBUTE_EXPORT_TYPE_XML
| Constructor Detail | 
public FinderComponent2()
| Method Detail | 
public Boolean getDisplayResultsScreen()
public void setDisplayResultsScreen(Boolean displayResultsScreen)
displayResultsScreen - New value of property displayResultsScreen.public Boolean getConsolidatedCriteriaAndResults()
public void setConsolidatedCriteriaAndResults(Boolean consolidatedCriteriaAndResults)
consolidatedCriteriaAndResults - New value of property consolidatedCriteriaAndResults.public String getSortDropDown()
public void setSortDropDown(String sortDropDown)
sortDropDown - New value of property sortDropDown.public String getExportType()
public void setExportType(String exportType)
exportType - New value of property exportType.public Integer getMaxRecords()
public void setMaxRecords(Integer maxRecords)
maxRecords - New value of property maxRecords.
public FormKey display()
                throws ApplicationExceptions,
                       FrameworkException
display in interface IComponentdisplay in class ComponentApplicationExceptions - This will be thrown in case any invalid data has been set.
FrameworkException - Indicates some system error.
public FormKey displayCriteria()
                        throws ApplicationExceptions,
                               FrameworkException
ApplicationExceptions - This will be thrown in case any invalid data has been set.
FrameworkException - Indicates some system error.
public FormKey displayResults()
                       throws ApplicationExceptions,
                              FrameworkException
ApplicationExceptions - This will be thrown in case any invalid data has been set.
FrameworkException - Indicates some system error.
public void performInquiry()
                    throws ApplicationExceptions,
                           FrameworkException
ApplicationExceptions - This will be thrown in case any invalid data has been set.
FrameworkException - Indicates some system error.public FormKey getCriteriaFormKey()
public FormKey getResultsFormKey()
public FinderOutDto getFinderOutDto()
public void incrementMaxRecords()
protected void initializeCriteriaScreen()
                                 throws ApplicationExceptions,
                                        FrameworkException
ApplicationExceptions - This will be thrown in case any invalid data has been set.
FrameworkException - Indicates some system error.protected HeaderDto getHeaderDto()
protected void addSortCriteria(FinderInDto inputDto)
inputDto - The Dto to which the orderby fields will be added.protected void updateMaxRecordsModel()
protected void uncacheRowsModel()
protected abstract FinderOutDto doInquiry()
                                   throws ApplicationExceptions,
                                          FrameworkException
ApplicationExceptions - This will be thrown in case any invalid data has been set.
FrameworkException - Indicates some system error.protected abstract String getCriteriaFormName()
protected abstract String getResultsFormName()
protected abstract String getConsolidatedCriteriaAndResultsFormName()
protected abstract String getExcelFormName()
protected abstract String getXmlFormName()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||