Package org.imixs.marty.profile
Class UserInputController
java.lang.Object
org.imixs.marty.profile.UserInputController
- All Implemented Interfaces:
Serializable
@Named("userInputController")
@RequestScoped
public class UserInputController
extends Object
implements Serializable
The UserInputController provides suggest-box behavior based on the JSF 2.0
Ajax capability to add user names into a ItemValue of a WorkItem.
Usage:
<marty:userInput value=
"#{workflowController.workitem.itemList['namteam']}"
editmode="true" />
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProfileServiceprotected org.imixs.workflow.engine.index.SchemaServiceprotected UserControllerprotected org.imixs.workflow.engine.WorkflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.ItemCollection>List<org.imixs.workflow.ItemCollection>getSortedProfilelist(List<Object> aNameList) This method returns a sorted list of profiles for a given userId listgetUserName(String userid) Returns the username to a given useridbooleanThis method tests if a given string is a defined Access Role.List<org.imixs.workflow.ItemCollection>searchProfile(String phrase) This method returns a list of profile ItemCollections matching the search phrase.voidThis method searches a text phrase within the user profile objects (type=profile).List<?>uniqueList(List<Object> valueList) This method removes duplicates and null values from a vector.
-
Field Details
-
userController
-
workflowService
protected org.imixs.workflow.engine.WorkflowService workflowService -
schemaService
protected org.imixs.workflow.engine.index.SchemaService schemaService -
profileService
-
-
Constructor Details
-
UserInputController
public UserInputController()
-
-
Method Details
-
searchProfile
This method returns a list of profile ItemCollections matching the search phrase. The search statement includes the items 'txtName', 'txtEmail' and 'txtUserName'. The result list is sorted by txtUserName- Parameters:
phrase- - search phrase- Returns:
- - list of matching profiles
-
getSearchResult
-
isRole
This method tests if a given string is a defined Access Role.- Parameters:
aName-- Returns:
- true if the name is a access role
-
getSortedProfilelist
This method returns a sorted list of profiles for a given userId list- Parameters:
aNameList- - string list with user ids- Returns:
- - list of profiles
-
uniqueList
This method removes duplicates and null values from a vector.- Parameters:
valueList- - list of elements
-
searchUser
public void searchUser()This method searches a text phrase within the user profile objects (type=profile).JSF Integration:
<h:commandScript name="imixsOfficeWorkflow.mlSearch" action= "#{cargosoftController.search()}" rendered="#{cargosoftController!=null}" render= "cargosoft-results" />JavaScript Example:
imixsOfficeWorkflow.cargosoftSearch({ item: '_invoicenumber' }) -
getUserName
Returns the username to a given userid- Parameters:
userid-- Returns:
-