Class ProcessSearchProvider
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.object.ListTableContentProvider
com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
com.webmethods.caf.faces.data.task.impl.ProcessSearchProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IAddressableTableContentProvider
,IContentProvider
,IRefreshable
,IRefreshableContentProvider
,IReorderableTableContentProvider
,ISelectableTableContentProvider
,ISortableTableContentProvider
,ITableContentProvider
,IUpdateableContentProvider
,IUpdateableTableContentProvider
,Serializable
Search provider to search and display ad-hoc workflow process instances
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
SelectableListTableContentProvider.Row, SelectableListTableContentProvider.RowComparator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Flag to auto-refresh providerprotected boolean
Flag to indicate that providers needs to be refreshedprotected List<IBpmProcess>
Search result listprotected BpmProcessSearchQuery
Search query for ad-hoc workflow processesFields inherited from class com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
m_autoIdCounter, m_map, m_originalList, m_selectableHelper
Fields inherited from class com.webmethods.caf.faces.data.object.ListTableContentProvider
m_array, m_canTemplateRow, m_index, m_list, m_onCreateRow, m_onDeleteRow, m_rowId, m_rowType, m_sort, m_templateRow, m_var
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
calculateRowId
(int index, Object data) Calculates row id from the row data object usingListTableContentProvider.getRowIdBinding()
expression.boolean
Returnstrue
whenIRefreshable.isAutoRefresh()
is on and the result properties need to be refreshed from the data source by executingIRefreshable.refresh()
method.Returns result of the searchReturns ad-hoc workflow processes search queryboolean
Returns falsevoid
refresh()
Refreshes provider resultsvoid
setAutoRefresh
(boolean autoRefresh) Sets auto refresh mode on.void
setNeedRefresh
(boolean needRefresh) Tells the provider that the input parameters have changed and the output results need to be refreshed the next time any output property is requested viaIContentProvider.getValue(Object)
.boolean
Returnsfalse
Methods inherited from class com.webmethods.caf.faces.data.object.SelectableListTableContentProvider
createRow, deleteRow, getCurrentRow, getList, getRowId, getRowSelectedCount, getRowSelectedIds, getRowUnselectedIds, getSelectedRows, getUseUnselectedModel, isAddressable, isRowSelected, moveTo, setCurrentRow, setList, setRowById, setRowSelected, setRowSelectedIds, setRowUnselectedIds, setRowVariable, setTemplateRow, sort, updateOriginalList
Methods inherited from class com.webmethods.caf.faces.data.object.ListTableContentProvider
calculateRowId, getArray, getCanTemplateRow, getOnCreateRow, getOnCreateRowExpression, getOnDeleteRow, getOnDeleteRowExpression, getPropertyKeys, getRowCount, getRowIdBinding, getRowIdExpression, getRowIndex, getRowType, getRowVariable, getSort, getType, getValue, hasProperty, isReadOnly, isReorderable, isRowAvailable, isTemplateRow, newRow, setArray, setCanTemplateRow, setOnCreateRow, setOnCreateRowExpression, setOnDeleteRow, setOnDeleteRowExpression, setRowId, setRowIdBinding, setRowIdExpression, setRowIndex, setRowType, setSort, setValue, toString
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
getPropertyKeys, getType, getValue, hasProperty, toString
Methods inherited from interface com.webmethods.caf.faces.data.ITableContentProvider
getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex
-
Field Details
-
m_isAutoRefresh
protected boolean m_isAutoRefreshFlag to auto-refresh provider -
m_needRefresh
protected boolean m_needRefreshFlag to indicate that providers needs to be refreshed -
m_searchQuery
Search query for ad-hoc workflow processes -
m_resultList
Search result list
-
-
Constructor Details
-
ProcessSearchProvider
public ProcessSearchProvider()Default constructor
-
-
Method Details
-
getSearchQuery
Returns ad-hoc workflow processes search query -
calculateRowId
Description copied from class:ListTableContentProvider
Calculates row id from the row data object usingListTableContentProvider.getRowIdBinding()
expression.- Overrides:
calculateRowId
in classListTableContentProvider
- Parameters:
index
- row indexdata
- row data object- Returns:
- row id
-
getResults
Returns result of the search- Returns:
- list of ad-hoc workflow processes
- Throws:
Exception
-
refresh
public void refresh()Refreshes provider results- Specified by:
refresh
in interfaceIRefreshable
- Overrides:
refresh
in classSelectableListTableContentProvider
-
supportsAutoRefresh
public boolean supportsAutoRefresh()Description copied from class:SelectableListTableContentProvider
Returnsfalse
- Specified by:
supportsAutoRefresh
in interfaceIRefreshable
- Overrides:
supportsAutoRefresh
in classSelectableListTableContentProvider
- Returns:
- true when auto refresh is supported
- See Also:
-
setAutoRefresh
Description copied from interface:IRefreshable
Sets auto refresh mode on. When auto refresh mode is on, the provider calls
IRefreshable.getNeedRefresh()
to determine whether the refresh needs to be done before returning any result properties. If it returnstrue
, the provider callsIRefreshable.refresh()
method to updated the result properties.- Specified by:
setAutoRefresh
in interfaceIRefreshable
- Overrides:
setAutoRefresh
in classSelectableListTableContentProvider
- Parameters:
autoRefresh
- true to turn it on- Throws:
ContentProviderException
- if autorefresh is true- See Also:
-
isAutoRefresh
public boolean isAutoRefresh()Description copied from class:SelectableListTableContentProvider
Returns false- Specified by:
isAutoRefresh
in interfaceIRefreshable
- Overrides:
isAutoRefresh
in classSelectableListTableContentProvider
- Returns:
- false if auto-refresh mode is off or not supported
-
getNeedRefresh
public boolean getNeedRefresh()Description copied from interface:IRefreshable
Returns
true
whenIRefreshable.isAutoRefresh()
is on and the result properties need to be refreshed from the data source by executingIRefreshable.refresh()
method.Implementations may return an accurate value from this method if they can track the changes to the input parameter properties or they may require the clients to call
IRefreshable.setNeedRefresh(boolean)
explicitely.- Specified by:
getNeedRefresh
in interfaceIRefreshable
- Overrides:
getNeedRefresh
in classSelectableListTableContentProvider
- Returns:
true
when the output properties are not up-to-date with the current input parameters, i.e.IRefreshable.refresh()
needs to be executed manually or automatically.
-
setNeedRefresh
public void setNeedRefresh(boolean needRefresh) Description copied from interface:IRefreshable
Tells the provider that the input parameters have changed and the output results need to be refreshed the next time any output property is requested viaIContentProvider.getValue(Object)
.- Specified by:
setNeedRefresh
in interfaceIRefreshable
- Overrides:
setNeedRefresh
in classSelectableListTableContentProvider
- Parameters:
needRefresh
-true
if the input parameters have changed
-