Class SuggestUserEntries


  • public class SuggestUserEntries
    extends Object
    SuggestUser Operation.
    Since:
    5.7.3
    • Field Detail

      • 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
      • allowSubGroupsRestriction

        protected boolean allowSubGroupsRestriction
    • Constructor Detail

      • SuggestUserEntries

        public SuggestUserEntries()
    • Method Detail

      • 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".
      • getLang

        protected String getLang()
      • getLocale

        protected Locale getLocale()