value.setStringValue(transformed); } else { try { } catch (ParsingValidationException e) { LOG.error("While parsing provided key value {}", transformed, e); value.setStringValue(transformed);
value.setStringValue(transformed); } else { try { } catch (ParsingValidationException e) { LOG.error("While parsing provided key value {}", transformed, e); value.setStringValue(transformed);
value.setStringValue(connObjectKey); } else { try { } catch (ParsingValidationException e) { LOG.error("While parsing provided __UID__ {}", value, e); value.setStringValue(connObjectKey);
@Override public List<PlainAttrValue> beforePropagation( final Item item, final Entity entity, final List<PlainAttrValue> values) { if (StringUtils.isNotBlank(propagationJEXL) && values != null) { values.forEach(value -> { Object originalValue = value.getValue(); if (originalValue != null) { JexlContext jexlContext = new MapContext(); if (entity != null) { JexlUtils.addFieldsToContext(entity, jexlContext); if (entity instanceof Any) { JexlUtils.addPlainAttrsToContext(((Any<?>) entity).getPlainAttrs(), jexlContext); JexlUtils.addDerAttrsToContext(((Any<?>) entity), jexlContext); } } jexlContext.set("value", originalValue.toString()); value.setBinaryValue(null); value.setBooleanValue(null); value.setDateValue(null); value.setDoubleValue(null); value.setLongValue(null); value.setStringValue(JexlUtils.evaluate(propagationJEXL, jexlContext)); } }); return values; } return JEXLItemTransformer.super.beforePropagation(item, entity, values); }
attrValue.setStringValue(reference.getKey()); values.add(attrValue); break; attrValue.setStringValue(reference.getRealm().getFullPath()); values.add(attrValue); break; attrValue.setStringValue(groupOwnerValue); values.add(attrValue); attrValue.setStringValue(DateFormatUtils.ISO_8601_EXTENDED_DATETIME_TIME_ZONE_FORMAT. format((Date) fieldValue)); } else if (Boolean.TYPE.isInstance(fieldValue)) { attrValue.setLongValue((Long) fieldValue); } else { attrValue.setStringValue(fieldValue.toString()); if (derValue != null) { PlainAttrValue attrValue = anyUtils.newPlainAttrValue(); attrValue.setStringValue(derValue); values.add(attrValue); virValues.forEach(virValue -> { PlainAttrValue attrValue = anyUtils.newPlainAttrValue(); attrValue.setStringValue(virValue); values.add(attrValue); });
@Override public <T extends PlainAttrValue> T clonePlainAttrValue(final T src) { T dst; if (src instanceof PlainAttrUniqueValue) { dst = newPlainAttrUniqueValue(); } else { dst = newPlainAttrValue(); } dst.setBinaryValue(src.getBinaryValue()); dst.setBooleanValue(src.getBooleanValue()); dst.setDateValue(src.getDateValue()); dst.setDoubleValue(src.getDoubleValue()); dst.setLongValue(src.getLongValue()); dst.setStringValue(src.getStringValue()); return dst; }