Class LDAPUserInputController

java.lang.Object
org.imixs.marty.profile.UserInputController
org.imixs.workflow.ldap.LDAPUserInputController
All Implemented Interfaces:
Serializable

@Named("userInputController") @Alternative @SessionScoped public class LDAPUserInputController extends org.imixs.marty.profile.UserInputController
The LDAPUserInputController searches user entries directly in the ldap directory. This allows to search for names, even if there are no profiles created for them yet. The class is only used for the name search in user input fields from the imixs-marty project! The controller replaces the default marty userController as an alternative defined in the beans.xml:
 
	
	<alternatives>
		<class>org.imixs.workflow.ldap.LDAPUserInputController</class>
	</alternatives>
	
 
Version:
1.0
Author:
rsoika
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.imixs.marty.profile.ProfileService
     

    Fields inherited from class org.imixs.marty.profile.UserInputController

    schemaService, userController, workflowService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.imixs.workflow.ItemCollection>
    This method returns a sorted list of users for a given userId list
    List<org.imixs.workflow.ItemCollection>
    This method returns a list of profile ItemCollections matching the search phrase.

    Methods inherited from class org.imixs.marty.profile.UserInputController

    getSearchResult, getUserName, isRole, searchUser, uniqueList

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ldapLookupService

      protected LDAPLookupService ldapLookupService
    • profileService

      protected org.imixs.marty.profile.ProfileService profileService
  • Constructor Details

    • LDAPUserInputController

      public LDAPUserInputController()
  • 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 is delegated to the LdapService
      Overrides:
      searchProfile in class org.imixs.marty.profile.UserInputController
      Parameters:
      phrase - - search phrase
      Returns:
      - list of matching profiles
    • getSortedProfilelist

      public List<org.imixs.workflow.ItemCollection> getSortedProfilelist(List<Object> aNameList)
      This method returns a sorted list of users for a given userId list
      Overrides:
      getSortedProfilelist in class org.imixs.marty.profile.UserInputController
      Parameters:
      aNameList - - string list with user ids
      Returns:
      - list of profiles