@Named(value="userInputController") @RequestScoped public class UserInputController extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ProfileService |
profileService |
protected org.imixs.workflow.engine.index.SchemaService |
schemaService |
protected UserController |
userController |
protected org.imixs.workflow.engine.WorkflowService |
workflowService |
| Constructor and Description |
|---|
UserInputController() |
| Modifier and Type | Method and Description |
|---|---|
List<org.imixs.workflow.ItemCollection> |
getSearchResult() |
List<org.imixs.workflow.ItemCollection> |
getSortedProfilelist(List<Object> aNameList)
This method returns a sorted list of profiles for a given userId list
|
String |
getUserName(String userid)
Returns the username to a given userid
|
boolean |
isRole(String aName)
This 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.
|
void |
searchUser()
This 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.
|
@Inject protected UserController userController
protected org.imixs.workflow.engine.WorkflowService workflowService
protected org.imixs.workflow.engine.index.SchemaService schemaService
protected ProfileService profileService
public List<org.imixs.workflow.ItemCollection> searchProfile(String phrase)
phrase - - search phrasepublic List<org.imixs.workflow.ItemCollection> getSearchResult()
public boolean isRole(String aName)
aName - DocumentService.getAccessRoles()public List<org.imixs.workflow.ItemCollection> getSortedProfilelist(List<Object> aNameList)
aNameList - - string list with user idspublic List<?> uniqueList(List<Object> valueList)
valueList - - list of elementspublic void searchUser()
JSF Integration:
<h:commandScript name="imixsOfficeWorkflow.mlSearch" action=
"#{cargosoftController.search()}" rendered="#{cargosoftController!=null}"
render= "cargosoft-results" />
JavaScript Example:
imixsOfficeWorkflow.cargosoftSearch({ item: '_invoicenumber' })
Copyright © 2011–2022 Imixs Software Solutions GmbH. All rights reserved.