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,java.io.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 theTaxService.- See Also:
- Serialized Form
-
-
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, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultTaxService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Invoked by a BeanFactory after it has set all bean properties supplied.java.util.Collection<TaxModel>getTaxesForCode(java.lang.String matchedCode)Gets allTaxModels which match the specified code.TaxModelgetTaxForCode(java.lang.String code)Gets theTaxModelwith the specified uniqueTaxModel.CODE.java.util.List<TaxInformation>getTaxInformation(BaseCriteria baseCriteria)Get taxes informationTaxInformationfor given criteria.voidsetApplicationContext(org.springframework.context.ApplicationContext ctx)voidsetFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy)voidsetTaxDao(TaxDao taxDao)-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getTaxForCode
public TaxModel getTaxForCode(java.lang.String code)
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
public java.util.Collection<TaxModel> getTaxesForCode(java.lang.String matchedCode)
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 java.util.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
public void setTaxDao(TaxDao taxDao)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setFindTaxValuesStrategy
public void setFindTaxValuesStrategy(FindTaxValuesStrategy findTaxValuesStrategy)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.ExceptionDescription 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:
java.lang.Exception- See Also:
InitializingBean.afterPropertiesSet()
-
-