Example #1
0
  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;
  }
Example #2
0
 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;
 }
Example #3
0
  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;
  }