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 Details

    • ID

      public static final String ID
      See Also:
    • POWERUSERS

      public static final String POWERUSERS
      See Also:
    • 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
  • Constructor Details

    • SuggestUserEntries

      public SuggestUserEntries()
  • Method Details

    • 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()