* Extract filtering information
*/
Vector<CategoryCustomAttributeInfo> categoryCustomAttributeVector = new Vector<CategoryCustomAttributeInfo>();
for (CustomAttribute customAttribute : category.getCustomAttributes()) {
boolean isFilterAttribute = false;
ContentFilterBean contentFilterBean = null;
for (ContentFilterBean bean : contentFilterBeans) {
if (bean.getCustomAttribId().equals(customAttribute.getCustomAttribId())) {
contentFilterBean = bean;
isFilterAttribute = true;
break;
}
}
CategoryCustomAttributeInfo categoryCustomAttributeInfo = new CategoryCustomAttributeInfo();
SiteProfileClass siteProfileClass = contentBean.getContentSessionBean().getSiteProfile().getSiteProfileClass();
if (isFilterAttribute) {
CategoryCustomAttributeOptionInfo optionInfo = new CategoryCustomAttributeOptionInfo();
optionInfo.setCustomAttribOptionId(contentFilterBean.getCustomAttribOptionId().toString());
CustomAttributeOption customAttribOption = CustomAttributeOptionDAO.load(siteDomain.getSite().getSiteId(), contentFilterBean.getCustomAttribOptionId());
if (customAttribute.getSystemRecord() == Constants.VALUE_YES) {
PriceRange priceRange = getAttributePriceRange(customAttribute, customAttribOption.getCustomAttribOptionId());
String rangeValue = formatter.formatCurrency(priceRange.getMinPrice().floatValue()) +
" - " +
formatter.formatCurrency(priceRange.getMaxprice().floatValue());