Package org.imixs.workflow.ldap
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
FieldsModifier and TypeFieldDescriptionprotected LDAPLookupServiceprotected org.imixs.marty.profile.ProfileServiceFields inherited from class org.imixs.marty.profile.UserInputController
schemaService, userController, workflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.ItemCollection>getSortedProfilelist(List<Object> aNameList) This method returns a sorted list of users for a given userId listList<org.imixs.workflow.ItemCollection>searchProfile(String phrase) 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
-
Field Details
-
ldapLookupService
-
profileService
protected org.imixs.marty.profile.ProfileService profileService
-
-
Constructor Details
-
LDAPUserInputController
public LDAPUserInputController()
-
-
Method Details
-
searchProfile
This method returns a list of profile ItemCollections matching the search phrase. The search is delegated to the LdapService- Overrides:
searchProfilein classorg.imixs.marty.profile.UserInputController- Parameters:
phrase- - search phrase- Returns:
- - list of matching profiles
-
getSortedProfilelist
This method returns a sorted list of users for a given userId list- Overrides:
getSortedProfilelistin classorg.imixs.marty.profile.UserInputController- Parameters:
aNameList- - string list with user ids- Returns:
- - list of profiles
-