@Override public List<ValueHint> generateValueHints(ConfigurationMetadataProperty property, ClassLoader classLoader) { return property.getHints().getValueHints(); }
@Override public List<ValueHint> queryHintMetadata(String propertyName, String filter) { if (cpExec == null) { init(); } List<ValueHint> ret = new LinkedList<>(); ConfigurationMetadataProperty cfgMeta = getPropertyMetadata(propertyName); if (cfgMeta != null) { for (ValueHint valueHint : cfgMeta.getHints().getValueHints()) { if (filter == null || valueHint.getValue().toString().contains(filter)) { ret.add(valueHint); } } } return ret; }
private void addValueHints(ConfigurationMetadataProperty property, ConfigurationMetadataHint hint) { property.getHints().getValueHints().addAll(hint.getValueHints()); property.getHints().getValueProviders().addAll(hint.getValueProviders()); }
private static void addValueHints(final ConfigurationMetadataProperty property, final ConfigurationMetadataHint hint) { property.getHints().getValueHints().addAll(hint.getValueHints()); property.getHints().getValueProviders().addAll(hint.getValueProviders()); }
List<ValueHint> valueHints = hints.getValueHints(); if (valueHints != null && !valueHints.isEmpty()) { sb.append("<br/><br/><table><tr><td><i>Value</i></td><td><i>Description</i></td></tr>");
public ConfigurationMetadataSearchResult(final ConfigurationMetadataProperty prop, final CasConfigurationMetadataRepository repository) { try { setDefaultValue(prop.getDefaultValue()); setDeprecation(prop.getDeprecation()); setDescription(cleanUpDescription(prop.getDescription())); setShortDescription(cleanUpDescription(prop.getShortDescription())); setId(prop.getId()); setName(prop.getName()); setType(prop.getType()); setGroup(CasConfigurationMetadataRepository.getPropertyGroupId(prop)); setOrder(CasConfigurationMetadataRepository.isCasProperty(prop) ? Ordered.HIGHEST_PRECEDENCE : Ordered.LOWEST_PRECEDENCE); val valueHints = prop.getHints().getValueHints(); valueHints.forEach(hint -> { val values = CollectionUtils.toCollection(hint.getValue()); if (values.contains(RequiresModule.class.getName())) { setRequiredModule(hint.getDescription()); setRequiredModuleAutomated(values.contains(Boolean.TRUE)); } if (values.contains(RequiredProperty.class.getName())) { setRequiredProperty(true); } }); } catch (final Exception e) { LOGGER.error(e.getMessage(), e); } }