Map<String, Object> parameters = new HashMap<String, Object>(filters.size());
for (Filter filter : filters) {
if (StringUtils.hasText(filter.getMinValue())) parameters.put(filter.getMin().replaceAll("\\.", "_"), filter.get(BeanUtils.getPropertyDescriptor(clazz, filter.getPath()), filter.getMinValue()));
if (StringUtils.hasText(filter.getPathValue())) {
String path = filter.getPath().replaceAll("\\.", "_");
if (filter.isEntity()) parameters.put(path, new UUID(decipherer.decrypt(filter.getPathValue())));
else parameters.put(filter.getPath().replaceAll("\\.", "_"), filter.get(BeanUtils.getPropertyDescriptor(clazz, filter.getPath()), filter.getPathValue()));
}
}
return parameters;
}