Modifier and Type | Field and Description |
---|---|
protected ProductService<P> |
productService |
protected boolean |
scanHierarchy
If true will scan the hierarchy for a value set for an entire category in
getRepresentativeProduct(Product, String) |
Constructor and Description |
---|
AbstractStrategy() |
Modifier and Type | Method and Description |
---|---|
ProductService<P> |
getProductService() |
protected P |
getRepresentativeProduct(P concernedProduct,
String entityOrAttributeName)
The value or Setting of the attribute/field maybe defined in a parent Product.
|
boolean |
isScanHierarchy()
If true will scan the hierarchy for a value set for an entire category in
getRepresentativeProduct(Product, String) |
void |
setProductService(ProductService<P> productService) |
void |
setScanHierarchy(boolean scanHierarchy)
If true will scan the hierarchy for a value set for an entire category in
getRepresentativeProduct(Product, String) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersion
protected ProductService<P extends Product> productService
protected boolean scanHierarchy
getRepresentativeProduct(Product, String)
protected P getRepresentativeProduct(P concernedProduct, String entityOrAttributeName) throws Exception
concernedProduct
- as PentityOrAttributeName
- as String; it will search for the field first and if no value found will search for AttributeException
public ProductService<P> getProductService()
public void setProductService(ProductService<P> productService)
public boolean isScanHierarchy()
getRepresentativeProduct(Product, String)
public void setScanHierarchy(boolean scanHierarchy)
getRepresentativeProduct(Product, String)
Copyright © 2018. All rights reserved.