| Modifier and Type | Method and Description |
|---|---|
Product |
ProductDao.create(ProductType productType)
Create a new
Product instance. |
Product |
ProductDaoImpl.create(ProductType productType) |
Product |
ProductDao.readProductById(Long productId)
Retrieve a
Product instance by its primary key |
Product |
ProductDaoImpl.readProductById(Long productId) |
Product |
ProductDao.save(Product product)
Persist a
Product instance to the datastore |
Product |
ProductDaoImpl.save(Product product) |
| Modifier and Type | Method and Description |
|---|---|
List<Product> |
ProductDao.findProductByURI(String key)
Look up a product that matches the given URI
|
List<Product> |
ProductDaoImpl.findProductByURI(String uri) |
protected javax.persistence.criteria.CriteriaQuery<Product> |
ProductDaoImpl.getCriteriaForActiveProducts(Date currentDate) |
List<Product> |
ProductDao.readActiveProductsByCategory(Long categoryId,
Date currentDate)
Find all products whose start and end dates are before and after the passed in
date and who are related to the given category
|
List<Product> |
ProductDaoImpl.readActiveProductsByCategory(Long categoryId,
Date currentDate) |
List<Product> |
ProductDao.readActiveProductsByCategory(Long categoryId,
Date currentDate,
int limit,
int offset) |
List<Product> |
ProductDaoImpl.readActiveProductsByCategory(Long categoryId,
Date currentDate,
int limit,
int offset) |
List<Product> |
ProductDao.readAllActiveProducts(Date currentDate)
Reads all products from the database that are currently active.
|
List<Product> |
ProductDaoImpl.readAllActiveProducts(Date currentDate) |
List<Product> |
ProductDao.readAllActiveProducts(int page,
int pageSize,
Date currentDate)
Reads all products from the database that are currently active.
|
List<Product> |
ProductDaoImpl.readAllActiveProducts(int page,
int pageSize,
Date currentDate) |
List<Product> |
CategoryDaoImpl.readAllProducts() |
List<Product> |
CategoryDao.readAllProducts()
Retrieve all products in the datastore
|
List<Product> |
CategoryDaoImpl.readAllProducts(int limit,
int offset) |
List<Product> |
CategoryDao.readAllProducts(int limit,
int offset) |
List<Product> |
ProductDao.readFilteredActiveProductsByCategory(Long categoryId,
Date currentDate,
ProductSearchCriteria searchCriteria)
Find all products whose start and end dates are before and after the passed in
date, who are related to the given category, match the given search criteria, and
are not marked as archived.
|
List<Product> |
ProductDaoImpl.readFilteredActiveProductsByCategory(Long categoryId,
Date currentDate,
ProductSearchCriteria searchCriteria) |
List<Product> |
ProductDao.readFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria)
Find all products whose start and end dates are before and after the passed in
date, who match the search string, match the given search criteria, and are not
marked as archived.
|
List<Product> |
ProductDaoImpl.readFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria) |
List<Product> |
ProductDao.readProductsByCategory(Long categoryId)
Find all products related to the passed in category
|
List<Product> |
ProductDaoImpl.readProductsByCategory(Long categoryId) |
List<Product> |
ProductDao.readProductsByCategory(Long categoryId,
int limit,
int offset)
Find all products related to the passed in category
|
List<Product> |
ProductDaoImpl.readProductsByCategory(Long categoryId,
int limit,
int offset) |
List<Product> |
ProductDao.readProductsByIds(List<Long> productIds)
Retrieves a list of Product instances by their primary keys
|
List<Product> |
ProductDaoImpl.readProductsByIds(List<Long> productIds) |
List<Product> |
ProductDao.readProductsByName(String searchName)
Find all
Product instances whose name starts with
or is equal to the passed in search parameter |
List<Product> |
ProductDaoImpl.readProductsByName(String searchName) |
List<Product> |
ProductDao.readProductsByName(String searchName,
int limit,
int offset)
Find a subset of
Product instances whose name starts with
or is equal to the passed in search parameter. |
List<Product> |
ProductDaoImpl.readProductsByName(String searchName,
int limit,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
ProductDao.delete(Product product)
Remove the passed in product instance from the datastore
|
void |
ProductDaoImpl.delete(Product product) |
Product |
ProductDao.save(Product product)
Persist a
Product instance to the datastore |
Product |
ProductDaoImpl.save(Product product) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ProductDaoImpl.attachActiveRestriction(Date currentDate,
javax.persistence.criteria.Path<? extends Product> product,
javax.persistence.criteria.Path<? extends Sku> sku,
List<javax.persistence.criteria.Predicate> restrictions) |
protected void |
ProductDaoImpl.attachOrderBy(ProductSearchCriteria searchCriteria,
javax.persistence.criteria.From<?,? extends Product> product,
javax.persistence.criteria.Path<? extends Sku> sku,
javax.persistence.criteria.CriteriaQuery<?> criteria) |
protected void |
ProductDaoImpl.attachProductSearchCriteria(ProductSearchCriteria searchCriteria,
javax.persistence.criteria.From<?,? extends Product> product,
javax.persistence.criteria.From<?,? extends Sku> sku,
List<javax.persistence.criteria.Predicate> restrictions) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ProductBundle
Default implementation for representing a bundle that can be sold
individually.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ProductBundleImpl |
class |
ProductImpl
The Class ProductImpl is the default implementation of
Product. |
| Modifier and Type | Field and Description |
|---|---|
protected Product |
SkuImpl.defaultProduct
This will be non-null if and only if this Sku is the default Sku for a Product
|
protected Product |
SkuImpl.product
This relationship will be non-null if and only if this Sku is contained in the list of
additional Skus for a Product (for Skus based on ProductOptions)
|
protected Product |
CategoryProductXrefImpl.CategoryProductXrefPk.product
The product.
|
protected Product |
CrossSaleProductImpl.product |
protected Product |
FeaturedProductImpl.product |
protected Product |
ProductAttributeImpl.product
The product.
|
protected Product |
CrossSaleProductImpl.relatedSaleProduct |
| Modifier and Type | Field and Description |
|---|---|
protected List<Product> |
CategoryImpl.allProducts |
protected List<Product> |
ProductOptionImpl.products |
| Modifier and Type | Method and Description |
|---|---|
Product |
SkuImpl.getDefaultProduct() |
Product |
Sku.getDefaultProduct()
This will be a value if and only if this Sku is the defaultSku of a Product (and thus has a @OneToOne relationship with a Product).
|
Product |
SkuImpl.getProduct() |
Product |
CategoryProductXrefImpl.getProduct() |
Product |
CategoryProductXrefImpl.CategoryProductXrefPk.getProduct() |
Product |
CrossSaleProductImpl.getProduct() |
Product |
FeaturedProductImpl.getProduct() |
Product |
CategoryProductXref.getProduct()
Gets the product.
|
Product |
FeaturedProduct.getProduct() |
Product |
ProductAttributeImpl.getProduct() |
Product |
ProductAttribute.getProduct()
Gets the product.
|
Product |
Sku.getProduct()
This will return the correct Product association that is being used on the Sku.
|
Product |
RelatedProduct.getProduct() |
Product |
UpSaleProductImpl.getProduct() |
Product |
CrossSaleProductImpl.getRelatedProduct() |
Product |
FeaturedProductImpl.getRelatedProduct() |
Product |
FeaturedProduct.getRelatedProduct()
Pass through to getProdcut() to meet the contract for promotable product.
|
Product |
RelatedProduct.getRelatedProduct() |
Product |
UpSaleProductImpl.getRelatedProduct() |
Product |
PromotableProduct.getRelatedProduct() |
| Modifier and Type | Method and Description |
|---|---|
List<Product> |
Category.getActiveProducts()
|
List<Product> |
CategoryImpl.getActiveProducts() |
List<Product> |
Category.getAllProducts()
Retrieve all the
Product instances associated with this
category. |
List<Product> |
CategoryImpl.getAllProducts() |
List<Product> |
ProductOptionImpl.getProducts() |
List<Product> |
ProductOption.getProducts()
Gets all the Products associated with this ProductOption
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SkuImpl.isActive(Product product,
Category category) |
boolean |
Sku.isActive(Product product,
Category category)
Returns whether or not this Sku, the given Product and the given Category are all active
|
void |
SkuImpl.setDefaultProduct(Product defaultProduct) |
void |
Sku.setDefaultProduct(Product product)
The relationship for a Product's default Sku (and thus a Sku's default Product) is actually maintained
on the Product entity as a foreign key to Sku.
|
void |
SkuImpl.setProduct(Product product) |
void |
CategoryProductXrefImpl.setProduct(Product product) |
void |
CategoryProductXrefImpl.CategoryProductXrefPk.setProduct(Product product) |
void |
CrossSaleProductImpl.setProduct(Product product) |
void |
FeaturedProductImpl.setProduct(Product product) |
void |
CategoryProductXref.setProduct(Product product)
Sets the product.
|
void |
FeaturedProduct.setProduct(Product product) |
void |
ProductAttributeImpl.setProduct(Product product) |
void |
ProductAttribute.setProduct(Product product)
Sets the product.
|
void |
Sku.setProduct(Product product)
Associates a Sku to a given Product.
|
void |
RelatedProduct.setProduct(Product product) |
void |
UpSaleProductImpl.setProduct(Product product) |
void |
CrossSaleProductImpl.setRelatedProduct(Product relatedSaleProduct) |
void |
RelatedProduct.setRelatedProduct(Product relatedProduct) |
void |
UpSaleProductImpl.setRelatedProduct(Product relatedSaleProduct) |
| Modifier and Type | Method and Description |
|---|---|
void |
Category.setAllProducts(List<Product> allProducts)
Set all the
Product instances associated with this
category. |
void |
CategoryImpl.setAllProducts(List<Product> allProducts) |
void |
ProductOptionImpl.setProducts(List<Product> products) |
void |
ProductOption.setProducts(List<Product> products)
Set the Products to associate with this ProductOption
|
| Modifier and Type | Method and Description |
|---|---|
Product |
CatalogServiceImpl.createProduct(ProductType productType) |
Product |
CatalogService.createProduct(ProductType productType) |
Product |
CatalogServiceImpl.findProductById(Long productId) |
Product |
CatalogService.findProductById(Long productId) |
Product |
CatalogServiceImpl.findProductByURI(String uri) |
Product |
CatalogService.findProductByURI(String uri)
Returns a product associated with the passed in URI or null if no Product is
mapped to this URI.
|
protected Product |
RelatedProductsServiceImpl.lookupProduct(RelatedProductDTO relatedProductDTO) |
Product |
CatalogServiceImpl.saveProduct(Product product) |
Product |
CatalogService.saveProduct(Product product) |
| Modifier and Type | Method and Description |
|---|---|
List<Product> |
CatalogServiceImpl.findActiveProductsByCategory(Category category,
Date currentDate) |
List<Product> |
CatalogService.findActiveProductsByCategory(Category category,
Date currentDate) |
List<Product> |
CatalogServiceImpl.findActiveProductsByCategory(Category category,
Date currentDate,
int limit,
int offset) |
List<Product> |
CatalogService.findActiveProductsByCategory(Category category,
Date currentDate,
int limit,
int offset) |
List<Product> |
CatalogServiceImpl.findAllProducts() |
List<Product> |
CatalogService.findAllProducts() |
List<Product> |
CatalogServiceImpl.findAllProducts(int limit,
int offset) |
List<Product> |
CatalogService.findAllProducts(int limit,
int offset) |
List<Product> |
CatalogServiceImpl.findFilteredActiveProductsByCategory(Category category,
Date currentDate,
ProductSearchCriteria searchCriteria) |
List<Product> |
CatalogService.findFilteredActiveProductsByCategory(Category category,
Date currentDate,
ProductSearchCriteria searchCriteria)
Given a category and a ProudctSearchCriteria, returns the appropriate matching products
|
List<Product> |
CatalogServiceImpl.findFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria) |
List<Product> |
CatalogService.findFilteredActiveProductsByQuery(String query,
Date currentDate,
ProductSearchCriteria searchCriteria)
Given a search query and a ProductSearchCriteria, returns the appropriate matching products
|
List<Product> |
CatalogServiceImpl.findProductsByName(String searchName) |
List<Product> |
CatalogService.findProductsByName(String searchName) |
List<Product> |
CatalogServiceImpl.findProductsByName(String searchName,
int limit,
int offset) |
List<Product> |
CatalogService.findProductsByName(String searchName,
int limit,
int offset)
Find a subset of
Product instances whose name starts with
or is equal to the passed in search parameter. |
List<Product> |
CatalogServiceImpl.findProductsForCategory(Category category) |
List<Product> |
CatalogService.findProductsForCategory(Category category) |
List<Product> |
CatalogServiceImpl.findProductsForCategory(Category category,
int limit,
int offset) |
List<Product> |
CatalogService.findProductsForCategory(Category category,
int limit,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
protected List<? extends PromotableProduct> |
RelatedProductsServiceImpl.buildCrossSaleProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the crossSale products for the past in product/category
|
protected List<? extends PromotableProduct> |
RelatedProductsServiceImpl.buildFeaturedProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the featured products for the past in product/category
|
protected List<? extends PromotableProduct> |
RelatedProductsServiceImpl.buildUpSaleProductsList(Product product,
Category category,
RelatedProductDTO relatedProductDTO)
Returns the upSale products for the past in product/category
|
Product |
CatalogServiceImpl.saveProduct(Product product) |
Product |
CatalogService.saveProduct(Product product) |
| Modifier and Type | Field and Description |
|---|---|
protected Product |
DiscreteOrderItemImpl.product |
| Modifier and Type | Method and Description |
|---|---|
Product |
BundleOrderItemImpl.getProduct() |
Product |
DiscreteOrderItem.getProduct() |
Product |
DiscreteOrderItemImpl.getProduct() |
Product |
BundleOrderItem.getProduct()
Same as getProductBundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DiscreteOrderItem.setProduct(Product product) |
void |
DiscreteOrderItemImpl.setProduct(Product product) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
OrderServiceImpl.itemMatches(Sku item1Sku,
Product item1Product,
Map<String,OrderItemAttribute> item1Attributes,
OrderItemRequestDTO item2) |
| Modifier and Type | Field and Description |
|---|---|
protected Product |
AbstractOrderItemRequest.product |
| Modifier and Type | Method and Description |
|---|---|
Product |
AbstractOrderItemRequest.getProduct() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractOrderItemRequest.setProduct(Product product) |
| Modifier and Type | Method and Description |
|---|---|
protected Product |
LegacyOrderServiceImpl.validateProduct(Long productId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DiscreteOrderItemRequest |
LegacyOrderServiceImpl.createDiscreteOrderItemRequest(Order order,
BundleOrderItem bundleOrderItem,
Sku sku,
Product product,
Category category,
Integer quantity,
Map<String,String> itemAttributes)
Deprecated.
|
protected Category |
LegacyOrderServiceImpl.determineCategory(Product product,
Long categoryId)
Deprecated.
|
protected Sku |
LegacyOrderServiceImpl.determineSku(Product product,
Long skuId,
Map<String,String> attributeValues)
Deprecated.
|
protected Sku |
LegacyOrderServiceImpl.findMatchingSku(Product product,
Map<String,String> attributeValues)
Deprecated.
Checks to make sure the correct SKU is still attached to the order.
|
| Modifier and Type | Method and Description |
|---|---|
protected Sku |
ValidateAddRequestActivity.determineSku(Product product,
Long skuId,
Map<String,String> attributeValues) |
protected Sku |
ValidateAddRequestActivity.findMatchingSku(Product product,
Map<String,String> attributeValues) |
| Modifier and Type | Field and Description |
|---|---|
protected List<Product> |
ProductSearchResult.products |
| Modifier and Type | Method and Description |
|---|---|
List<Product> |
ProductSearchResult.getProducts() |
| Modifier and Type | Method and Description |
|---|---|
void |
ProductSearchResult.setProducts(List<Product> products) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Product> |
SolrSearchServiceImpl.getProducts(org.apache.solr.client.solrj.response.QueryResponse response)
Given a list of product IDs from solr, this method will look up the IDs via the productDao and build out
actual Product instances.
|
protected List<Product> |
SolrIndexServiceImpl.readAllActiveProducts()
This method to read all active products will be slow if you have a large catalog.
|
protected List<Product> |
SolrIndexServiceImpl.readAllActiveProducts(int page,
int pageSize)
This method to read active products utilizes paging to improve performance over
SolrIndexServiceImpl.readAllActiveProducts(). |
| Modifier and Type | Method and Description |
|---|---|
void |
SolrSearchServiceExtensionListener.addPriceFieldPropertyValues(Product product,
Field field,
Map<String,Object> values,
String propertyName) |
void |
SolrSearchServiceExtensionManager.addPriceFieldPropertyValues(Product product,
Field field,
Map<String,Object> values,
String propertyName) |
protected void |
SolrIndexServiceImpl.attachBasicDocumentFields(Product product,
org.apache.solr.common.SolrInputDocument document)
Adds the ID, category, and explicitCategory fields for the product to the document
|
protected org.apache.solr.common.SolrInputDocument |
SolrIndexServiceImpl.buildDocument(Product product,
List<Field> fields,
List<Locale> locales)
Given a product, fields that relate to that product, and a list of locales and pricelists, builds a
SolrInputDocument to be added to the Solr index.
|
protected Map<String,Object> |
SolrIndexServiceImpl.getPropertyValues(Product product,
Field field,
FieldType fieldType,
List<Locale> locales)
Returns a map of prefix to value for the requested attributes.
|
Copyright © 2014. All Rights Reserved.