Package de.hybris.platform.order.impl
Class DefaultTaxService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.impl.DefaultTaxService
- All Implemented Interfaces:
TaxService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultTaxService
extends AbstractBusinessService
implements TaxService, org.springframework.context.ApplicationContextAware
Default implementation of the
TaxService.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked by a BeanFactory after it has set all bean properties supplied.getTaxesForCode(String matchedCode) Gets allTaxModels which match the specified code.getTaxForCode(String code) Gets theTaxModelwith the specified uniqueTaxModel.CODE.getTaxInformation(BaseCriteria baseCriteria) Get taxes informationTaxInformationfor given criteria.voidsetApplicationContext(org.springframework.context.ApplicationContext ctx) voidsetFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy) voidMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultTaxService
public DefaultTaxService()
-
-
Method Details
-
getTaxForCode
Description copied from interface:TaxServiceGets theTaxModelwith the specified uniqueTaxModel.CODE.- Specified by:
getTaxForCodein interfaceTaxService- Parameters:
code- the tax code- Returns:
- the found
TaxModelwith the specified code
-
getTaxesForCode
Description copied from interface:TaxServiceGets allTaxModels which match the specified code.- Specified by:
getTaxesForCodein interfaceTaxService- Parameters:
matchedCode- an SQL-Like statement as String, such as %taxCode%- Returns:
- the
Collectionof allTaxModels which match the specified code
-
getTaxInformation
public List<TaxInformation> getTaxInformation(BaseCriteria baseCriteria) throws CalculationException Description copied from interface:TaxServiceGet taxes informationTaxInformationfor given criteria.- Specified by:
getTaxInformationin interfaceTaxService- Parameters:
baseCriteria-BaseCriteria- Returns:
- the
Listof allTaxInformations which matching baseCriteria. If no matching discounts were found, an empty collection is returned. - Throws:
CalculationException- if error occurred
-
setTaxDao
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setFindTaxValuesStrategy
-
afterPropertiesSet
Description copied from class:AbstractServiceInvoked by a BeanFactory after it has set all bean properties supplied. Overwrite this method for adding/implementing additional code into the service. Important note: Please call alwayssuper.afterPropertiesSet()before or the java serialization won't work.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractService- Throws:
Exception- See Also:
-
InitializingBean.afterPropertiesSet()
-