Package org.imixs.workflow.office.forms
Class SuggestInputController
- java.lang.Object
-
- org.imixs.workflow.office.forms.SuggestInputController
-
- All Implemented Interfaces:
Serializable
@Named @SessionScoped public class SuggestInputController extends Object implements Serializable
The SuggestInputController can be used to suggest inputs from earlier requests within the same workflowGroup.- Version:
- 1.0
- Author:
- rsoika
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_RESULTprotected org.imixs.workflow.faces.data.WorkflowControllerworkflowController
-
Constructor Summary
Constructors Constructor Description SuggestInputController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayLine(String displayItemList, org.imixs.workflow.ItemCollection suggestItemCol)Helper method that creates an entry line output for the suggest resultlist.List<org.imixs.workflow.ItemCollection>getSearchResult()voidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)If the current workitem changed reset the last search resultvoidreset()This method reset the search and input state.voidreset(javax.faces.event.AjaxBehaviorEvent event)This ajax event method reset the search and input state.voidsearch(String keyItemName, String input, String searchItemList, String query)This method initializes a lucene search.voidupdate(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection suggest, String itemList)This method updates the current workitem with the values defined by teh itemList from the given suggest workitem.
-
-
-
Field Detail
-
MAX_RESULT
public static final int MAX_RESULT
- See Also:
- Constant Field Values
-
workflowController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController
-
-
Method Detail
-
getSearchResult
public List<org.imixs.workflow.ItemCollection> getSearchResult()
-
reset
public void reset()
This method reset the search and input state.
-
reset
public void reset(javax.faces.event.AjaxBehaviorEvent event)
This ajax event method reset the search and input state.- Parameters:
event-
-
update
public void update(org.imixs.workflow.ItemCollection workitem, org.imixs.workflow.ItemCollection suggest, String itemList)This method updates the current workitem with the values defined by teh itemList from the given suggest workitem.- Parameters:
suggest- - ItemColleciton with data to suggestitemList- - item names to be updated.
-
search
public void search(String keyItemName, String input, String searchItemList, String query)
This method initializes a lucene search. The method is triggered by ajax events from the userInput.xhtml page. The minimum length of a given input search phrase have to be at least 3 characters- Parameters:
keyItemName- - itemName to identify the unique itemCollectioninput- - search phrasesearchItemList- - itemName list to serach for
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent)If the current workitem changed reset the last search result- Parameters:
workflowEvent-
-
-