Package com.jada.content

Examples of com.jada.content.ContentFilterBean


         * 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());
View Full Code Here


    int pageNum = Format.getInt(value);
    String sortBy = request.getParameter("sortBy");
    if (sortBy == null) {
      sortBy = "";
    }
    ContentFilterBean contentFilterBeans[] = getContentFilterBeans(request);

    CategoryInfo categoryInfo = api.getCategory(catNaturalKey, topCatNaturalKey, pageSize, Constants.PAGE_NAV_COUNT, pageNum, sortBy, contentFilterBeans);
    return categoryInfo;
  }
View Full Code Here

    if (filters != null) {
      for (String filter : filters) {
        int pos = filter.indexOf(',');
        String customAttribId = filter.substring(0, pos);
        String customAttribOptionId = filter.substring(pos + 1);
        ContentFilterBean bean = new ContentFilterBean();
        bean.setCustomAttribId(Long.valueOf(customAttribId));
        bean.setCustomAttribOptionId(Long.valueOf(customAttribOptionId));
        CustomAttribute  customAttribute = CustomAttributeDAO.load(siteDomain.getSite().getSiteId(), Long.valueOf(customAttribId));
        bean.setSystemRecord(customAttribute.getSystemRecord());
        vector.add(bean);
      }
    }
    ContentFilterBean contentFilterBeans[] = new ContentFilterBean[vector.size()];
    vector.copyInto(contentFilterBeans);
    return contentFilterBeans;
  }
View Full Code Here

TOP

Related Classes of com.jada.content.ContentFilterBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.