Class SuggestUserEntries
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.users.SuggestUserEntries
-
public class SuggestUserEntries extends Object
SuggestUser Operation.- Since:
- 5.7.3
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowSubGroupsRestrictionprotected OperationContextctxprotected DirectoryServicedirectoryServiceprotected booleandisplayEmailInSuggestionprotected StringfirstLabelFieldprotected StringgroupRestrictionprotected booleanhideAdminGroupsprotected booleanhideFirstLabelprotected booleanhideIconprotected booleanhidePowerUsersGroupprotected booleanhideSecondLabelprotected booleanhideThirdLabelstatic StringIDprotected Stringlangstatic StringPOWERUSERSprotected Stringprefixprotected SchemaManagerschemaManagerprotected StringsearchTypeprotected StringsecondLabelFieldprotected StringthirdLabelFieldprotected UserManageruserManagerprotected IntegeruserSuggestionMaxSearchResults
-
Constructor Summary
Constructors Constructor Description SuggestUserEntries()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetLang()protected LocalegetLocale()protected MultiExpressiongetUserSearchPredicate(String prefix)Blobrun()protected DocumentModelListsearchUsers(long limit)Performs a full name user search, e.g.protected DocumentModelListsearchUsers(MultiExpression multiExpression, long limit)protected List<Map<String,Object>>usersToMapWithGroupRestrictions(DocumentModelList userList)Applies group restrictions, and returns Map objects.
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
POWERUSERS
public static final String POWERUSERS
- See Also:
- Constant Field Values
-
ctx
protected OperationContext ctx
-
schemaManager
protected SchemaManager schemaManager
-
prefix
protected String prefix
-
searchType
protected String searchType
-
groupRestriction
protected String groupRestriction
-
hideAdminGroups
protected boolean hideAdminGroups
- Since:
- 7.10
-
hidePowerUsersGroup
protected boolean hidePowerUsersGroup
- Since:
- 8.3
-
userSuggestionMaxSearchResults
protected Integer userSuggestionMaxSearchResults
-
firstLabelField
protected String firstLabelField
-
secondLabelField
protected String secondLabelField
-
thirdLabelField
protected String thirdLabelField
-
hideFirstLabel
protected boolean hideFirstLabel
-
hideSecondLabel
protected boolean hideSecondLabel
-
hideThirdLabel
protected boolean hideThirdLabel
-
displayEmailInSuggestion
protected boolean displayEmailInSuggestion
-
hideIcon
protected boolean hideIcon
-
userManager
protected UserManager userManager
-
directoryService
protected DirectoryService directoryService
-
lang
protected String lang
-
allowSubGroupsRestriction
protected boolean allowSubGroupsRestriction
-
-
Method Detail
-
run
public Blob run() throws IOException
- Throws:
IOException
-
usersToMapWithGroupRestrictions
protected List<Map<String,Object>> usersToMapWithGroupRestrictions(DocumentModelList userList)
Applies group restrictions, and returns Map objects.
-
searchUsers
protected DocumentModelList searchUsers(long limit)
Performs a full name user search, e.g. typing "John Do" returns the user with first name "John" and last name "Doe". Typing "John" returns the "John Doe" user and possibly other users such as "John Foo". Respectively, typing "Do" returns the "John Doe" user and possibly other users such as "Jack Donald".
-
searchUsers
protected DocumentModelList searchUsers(MultiExpression multiExpression, long limit)
-
getUserSearchPredicate
protected MultiExpression getUserSearchPredicate(String prefix)
-
getLang
protected String getLang()
-
getLocale
protected Locale getLocale()
-
-