Class DefaultProductTaxCodeService
- java.lang.Object
-
- de.hybris.platform.externaltax.impl.DefaultProductTaxCodeService
-
- All Implemented Interfaces:
ProductTaxCodeService
public class DefaultProductTaxCodeService extends java.lang.Object implements ProductTaxCodeService
Default implementation ofProductTaxCodeService.
-
-
Constructor Summary
Constructors Constructor Description DefaultProductTaxCodeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductTaxCodeModelgetTaxCodeForProductAndArea(java.lang.String productCode, java.lang.String taxArea)Finds a tax code item for a given product code and tax area code.java.util.Collection<ProductTaxCodeModel>getTaxCodesForProduct(java.lang.String productCode)Finds all existing tax code items for a given product code.java.lang.StringlookupTaxCode(java.lang.String productCode, java.lang.String taxArea)Performs a direct tax code lookup for a given product code and tax area code.java.util.Map<java.lang.String,java.lang.String>lookupTaxCodes(java.util.Collection<java.lang.String> productCodes, java.lang.String taxArea)Performs a direct bulk tax code lookup for a given collection of product codes and tax area code.voidsetProductTaxCodeDao(ProductTaxCodeDao productTaxCodeDao)
-
-
-
Method Detail
-
lookupTaxCode
public java.lang.String lookupTaxCode(java.lang.String productCode, java.lang.String taxArea)Description copied from interface:ProductTaxCodeServicePerforms a direct tax code lookup for a given product code and tax area code.- Specified by:
lookupTaxCodein interfaceProductTaxCodeService- Parameters:
productCode- product code to lookup the tax code fortaxArea- tax area code- Returns:
- tax code if found, null otherwise
-
lookupTaxCodes
public java.util.Map<java.lang.String,java.lang.String> lookupTaxCodes(java.util.Collection<java.lang.String> productCodes, java.lang.String taxArea)Description copied from interface:ProductTaxCodeServicePerforms a direct bulk tax code lookup for a given collection of product codes and tax area code.- Specified by:
lookupTaxCodesin interfaceProductTaxCodeService- Parameters:
productCodes- collection of product codes to lookup the tax codes fortaxArea- tax area code- Returns:
- map of product codes to tax codes
-
getTaxCodeForProductAndArea
public ProductTaxCodeModel getTaxCodeForProductAndArea(java.lang.String productCode, java.lang.String taxArea)
Description copied from interface:ProductTaxCodeServiceFinds a tax code item for a given product code and tax area code. Returns null if no such code exists yet.- Specified by:
getTaxCodeForProductAndAreain interfaceProductTaxCodeService- Parameters:
productCode- product codetaxArea- tax area code- Returns:
- instance of
ProductTaxCodeModel
-
getTaxCodesForProduct
public java.util.Collection<ProductTaxCodeModel> getTaxCodesForProduct(java.lang.String productCode)
Description copied from interface:ProductTaxCodeServiceFinds all existing tax code items for a given product code.- Specified by:
getTaxCodesForProductin interfaceProductTaxCodeService- Parameters:
productCode- product code- Returns:
- collection of
ProductTaxCodeModelfor a given product code
-
setProductTaxCodeDao
public void setProductTaxCodeDao(ProductTaxCodeDao productTaxCodeDao)
-
-