Package de.hybris.platform.product.impl
Class DefaultUnitService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.product.impl.DefaultUnitService
- All Implemented Interfaces:
UnitService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Default implementation of
UnitService- 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 TypeMethodDescriptionReturns all Units.Returns all unit types (e.g.getUnitForCode(String code) getUnitsForUnitType(String unitType) Returns all units for specific unit typevoidsetUnitDao(UnitDao unitDao) Methods 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
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultUnitService
public DefaultUnitService()
-
-
Method Details
-
getUnitForCode
- Specified by:
getUnitForCodein interfaceUnitService- Parameters:
code- theUnitModel.CODE- Returns:
- for the given
codetheUnitModel
-
getAllUnitTypes
Description copied from interface:UnitServiceReturns all unit types (e.g. 'weight', 'size' ).- Specified by:
getAllUnitTypesin interfaceUnitService- Returns:
- a set of type strings
-
getAllUnits
Description copied from interface:UnitServiceReturns all Units.- Specified by:
getAllUnitsin interfaceUnitService- Returns:
- a set containing all units.
-
setUnitDao
-
getUnitsForUnitType
Description copied from interface:UnitServiceReturns all units for specific unit type- Specified by:
getUnitsForUnitTypein interfaceUnitService- Parameters:
unitType- search only units for this unit type- Returns:
- found units that match unit type
-