/** * Checks if property is error deprecated. * * @param property the configuration property * @return if property is error deprecated */ private boolean isDeprecatedError(ConfigurationMetadataProperty property) { return property.getDeprecation() != null && property.getDeprecation().getLevel() == Level.ERROR; }
/** * Checks if property is error deprecated. * * @param property the configuration property * @return if property is error deprecated */ private boolean isDeprecatedError(ConfigurationMetadataProperty property) { return property.getDeprecation() != null && property.getDeprecation().getLevel() == Level.ERROR; }
public static boolean isErrorDeprecated(ConfigurationMetadataProperty meta) { Deprecation depr = meta.getDeprecation(); return depr != null && depr.getLevel() != null && depr.getLevel().equals(Deprecation.Level.ERROR); }
StringBuilder sb = new StringBuilder(); Deprecation deprecation = cfgMeta.getDeprecation(); if (deprecation != null) { sb.append("<b>");
.filter(p -> p.getDeprecation() == null || !Deprecation.Level.ERROR.equals(p.getDeprecation().getLevel())) .collect(Collectors.toList());
sb.append("<br/>").append(simpleHtmlEscape(configurationMeta.getType())); Deprecation deprecation = configurationMeta.getDeprecation(); if (deprecation != null) { sb.append("<br/><br/><b><i>");
final String pName = key.getText(); ConfigurationMetadataProperty cfgMeta = sbs.getPropertyMetadata(pName); if (cfgMeta != null && cfgMeta.getDeprecation() != null) { try { final Deprecation deprecation = cfgMeta.getDeprecation(); List<Fix> fixes = new ArrayList<>(); final int start = key.getIdxStart();
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); } }