예제 #1
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;
 }
예제 #2
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;
  }