use of org.apereo.cas.metadata.CasConfigurationMetadataRepository in project cas by apereo.
the class ListUndocumentedPropertiesCommand method listUndocumented.
/**
* List undocumented settings.
*/
@CliCommand(value = "list-undocumented", help = "List all CAS undocumented properties.")
public void listUndocumented() {
final CasConfigurationMetadataRepository repository = new CasConfigurationMetadataRepository();
repository.getRepository().getAllProperties().entrySet().stream().filter(p -> p.getKey().startsWith("cas.") && (StringUtils.isBlank(p.getValue().getShortDescription()) || StringUtils.isBlank(p.getValue().getDescription()))).map(Map.Entry::getValue).sorted(Comparator.comparing(ConfigurationMetadataProperty::getId)).forEach(p -> LOGGER.info("Property: {} @ {}", p.getId(), p.getType()));
}
Aggregations