Search in sources :

Example 1 with ProductBundleComparator

use of org.broadleafcommerce.core.catalog.domain.ProductBundleComparator in project BroadleafCommerce by BroadleafCommerce.

the class CatalogServiceImpl method findAutomaticProductBundles.

@Override
public List<ProductBundle> findAutomaticProductBundles() {
    List<ProductBundle> bundles = productDao.readAutomaticProductBundles();
    Collections.sort(bundles, new ProductBundleComparator());
    return bundles;
}
Also used : ProductBundle(org.broadleafcommerce.core.catalog.domain.ProductBundle) ProductBundleComparator(org.broadleafcommerce.core.catalog.domain.ProductBundleComparator)

Aggregations

ProductBundle (org.broadleafcommerce.core.catalog.domain.ProductBundle)1 ProductBundleComparator (org.broadleafcommerce.core.catalog.domain.ProductBundleComparator)1