Class SimpleWebAppSearchResultsOptionsManager
java.lang.Object
com.webmethods.caf.faces.search.options.SimpleWebAppSearchResultsOptionsManager
- All Implemented Interfaces:
ISearchResultsOptionsManager
,Serializable
public class SimpleWebAppSearchResultsOptionsManager
extends Object
implements ISearchResultsOptionsManager, Serializable
A simple implementation of ISearchResultsOptionsManager that can be used
in a standalone WebApp. (i.e. not a portlet app)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Name of web app environment variable which controls default page size for results portletFields inherited from interface com.webmethods.caf.faces.search.options.ISearchResultsOptionsManager
KEY_COLUMN_DISPLAY, KEY_COLUMN_WIDTH, KEY_INITIAL_EXPORT_PAGE_SIZE, KEY_INITIAL_PAGE_SIZE, KEY_INITIAL_SORT_ASCENDING, KEY_INITIAL_SORT_BY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the column widths preference.String[]
Return the display column preference.int
Returns page size for export tableint
Returns page size for search results displayboolean
Return the initialSortBy preference.Return the initialSortBy preference.protected static ServletContext
protected static String
void
setColumnWidthsPreference
(String columnWidths) Sets the column widths preference.void
setDisplayColumnsPreference
(String[] columnDisplay) Sets the display column preference.void
setInitialExportPageSize
(int pageSize) Sets initialExportPageSize preferencevoid
setInitialPageSize
(int pageSize) Sets initialPageSize preferencevoid
setInitialSortAscendingPreference
(boolean ascending) Sets initialSortBy preference.void
setInitialSortByPreference
(String sortBy) Sets initial sortBy preference
-
Field Details
-
DEFAULT_PAGE_SIZE_ENV_KEY
Name of web app environment variable which controls default page size for results portlet- See Also:
-
-
Constructor Details
-
SimpleWebAppSearchResultsOptionsManager
public SimpleWebAppSearchResultsOptionsManager()
-
-
Method Details
-
getColumnWidthsPreference
Description copied from interface:ISearchResultsOptionsManager
Return the column widths preference. Usually via a portlet property that is configured from the portlet edit mode.- Specified by:
getColumnWidthsPreference
in interfaceISearchResultsOptionsManager
- Returns:
- csv-style map of column ids to column widths (ie "colOne=60%,colTwo=40%,colThree=20px")
-
getDisplayColumnsPreference
Description copied from interface:ISearchResultsOptionsManager
Return the display column preference. Usually via a portlet property that is configured from the portlet edit mode.- Specified by:
getDisplayColumnsPreference
in interfaceISearchResultsOptionsManager
- Returns:
- array of column ids that should be displayed in the given order
-
getInitialSortAscendingPreference
public boolean getInitialSortAscendingPreference()Description copied from interface:ISearchResultsOptionsManager
Return the initialSortBy preference. Usually via a portlet property that is configured from the portlet edit mode.- Specified by:
getInitialSortAscendingPreference
in interfaceISearchResultsOptionsManager
- Returns:
- id of the column to sort by initially
-
getInitialSortByPreference
Description copied from interface:ISearchResultsOptionsManager
Return the initialSortBy preference. Usually via a portlet property that is configured from the portlet edit mode.- Specified by:
getInitialSortByPreference
in interfaceISearchResultsOptionsManager
- Returns:
- id of the column to sort by initially
-
getInitialPageSize
public int getInitialPageSize()Description copied from interface:ISearchResultsOptionsManager
Returns page size for search results display- Specified by:
getInitialPageSize
in interfaceISearchResultsOptionsManager
- Returns:
- the number of rows to display on each page of results
-
getInitialExportPageSize
public int getInitialExportPageSize()Description copied from interface:ISearchResultsOptionsManager
Returns page size for export table- Specified by:
getInitialExportPageSize
in interfaceISearchResultsOptionsManager
- Returns:
- the number of rows to export
-
setInitialExportPageSize
public void setInitialExportPageSize(int pageSize) Description copied from interface:ISearchResultsOptionsManager
Sets initialExportPageSize preference- Specified by:
setInitialExportPageSize
in interfaceISearchResultsOptionsManager
- Parameters:
pageSize
- the number of rows to export
-
setColumnWidthsPreference
Description copied from interface:ISearchResultsOptionsManager
Sets the column widths preference. Usually via a portlet property that is configured from the portlet edit mode. param csv-style map of column ids to column widths (ie "colOne=60%,colTwo=40%,colThree=20px")- Specified by:
setColumnWidthsPreference
in interfaceISearchResultsOptionsManager
-
setDisplayColumnsPreference
Description copied from interface:ISearchResultsOptionsManager
Sets the display column preference. Usually via a portlet property that is configured from the portlet edit mode. param array of column ids that should be displayed in the given order- Specified by:
setDisplayColumnsPreference
in interfaceISearchResultsOptionsManager
-
setInitialSortAscendingPreference
public void setInitialSortAscendingPreference(boolean ascending) Description copied from interface:ISearchResultsOptionsManager
Sets initialSortBy preference.- Specified by:
setInitialSortAscendingPreference
in interfaceISearchResultsOptionsManager
- Parameters:
ascending
- true for ascending sort, false for descening sort
-
setInitialSortByPreference
Description copied from interface:ISearchResultsOptionsManager
Sets initial sortBy preference- Specified by:
setInitialSortByPreference
in interfaceISearchResultsOptionsManager
- Parameters:
sortBy
- the column id to sort by
-
setInitialPageSize
public void setInitialPageSize(int pageSize) Description copied from interface:ISearchResultsOptionsManager
Sets initialPageSize preference- Specified by:
setInitialPageSize
in interfaceISearchResultsOptionsManager
- Parameters:
pageSize
- the number of rows to display on each page of results
-
getServletContext
-
getStorageKey
-