public List < String > getSuggestions ( ) { // Lookup table Object table = getLookupTable ( ) ; if ( table == null ) { SuggestionsModel model = getComponentModel ( ) ; List < String > suggestions = model . getSuggestions ( ) ; return suggestions == null ? Collections . EMPTY_LIST : suggestions ; } else { List < ? > lookupSuggestions = APPLICATION_LOOKUP_TABLE . getTable ( table ) ; if ( lookupSuggestions == null || lookupSuggestions . isEmpty ( ) ) { return Collections . EMPTY_LIST ; } // Build list of String suggestions List < String > suggestions = new ArrayList <> ( lookupSuggestions . size ( ) ) ; for ( Object suggestion : lookupSuggestions ) { String sugg = APPLICATION_LOOKUP_TABLE . getDescription ( table , suggestion ) ; if ( sugg != null ) { suggestions . add ( sugg ) ; } } return Collections . unmodifiableList ( suggestions ) ; } }
Returns the complete list of suggestions available for selection for this user s session .