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 Details

    • userController

      @Inject protected UserController userController
    • workflowService

      protected org.imixs.workflow.engine.WorkflowService workflowService
    • schemaService

      protected org.imixs.workflow.engine.index.SchemaService schemaService
    • profileService

      protected ProfileService profileService
  • Constructor Details

    • UserInputController

      public UserInputController()
  • Method Details

    • searchProfile

      public List<org.imixs.workflow.ItemCollection> searchProfile(String phrase)
      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

      public List<org.imixs.workflow.ItemCollection> getSearchResult()
    • isRole

      public boolean isRole(String aName)
      This method tests if a given string is a defined Access Role.
      Parameters:
      aName -
      Returns:
      true if the name is a access role
    • getSortedProfilelist

      public List<org.imixs.workflow.ItemCollection> getSortedProfilelist(List<Object> aNameList)
      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

      public List<?> uniqueList(List<Object> valueList)
      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

      public String getUserName(String userid)
      Returns the username to a given userid
      Parameters:
      userid -
      Returns: