private boolean hasEmptyPlaceholder( ItemWrapper<? extends Item, ? extends ItemDefinition> property) { for (ValueWrapper value : property.getValues()) { value.normalize(property.getItemDefinition().getPrismContext()); if (ValueStatus.ADDED.equals(value.getStatus()) && !value.hasValueChanged()) { return true; } } return false; }
private int countNonDeletedValues( ItemWrapper<? extends Item, ? extends ItemDefinition> property) { int count = 0; for (ValueWrapper value : property.getValues()) { value.normalize(property.getItemDefinition().getPrismContext()); if (ValueStatus.DELETED.equals(value.getStatus())) { continue; } count++; } return count; }
private List<ValueWrapper> getUsableValues( ItemWrapper<? extends Item, ? extends ItemDefinition> property) { List<ValueWrapper> values = new ArrayList<>(); for (ValueWrapper value : property.getValues()) { value.normalize(property.getItemDefinition().getPrismContext()); if (ValueStatus.DELETED.equals(value.getStatus())) { continue; } values.add(value); } return values; }