Class PDTEnumGroupsHelper
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.strategies.calculation.pdt.impl.PDTEnumGroupsHelper
- All Implemented Interfaces:
Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
An utility class for getting price/discount/tax enum values.
- 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 TypeMethodDescriptionprotected <T extends HybrisEnumValue>
TgetEnumFromContextOrItem(ItemModel item, String qualifier) protected <T extends HybrisEnumValue>
TgetEnumFromGroups(UserModel user, String attribute) Tries to find enums connected with User or its User Groups.getPDG(AbstractOrderEntryModel entry) Gets Products Discount Group for Order Entry.getPDG(ProductModel product) Gets the Product Discount Group from the Product Model.getPkFromEnum(HybrisEnumValue enumValue) Gets the PK from Hybris Enum.getPPG(ProductModel product) Gets the Product Price Group from the Product Model.getPTG(AbstractOrderEntryModel entry) Gets Products Tax Group for Order Entry.getPTG(ProductModel product) Gets the Product Tax Group from the Product Model.getUDG(AbstractOrderEntryModel entry) Gets User Discount Group for Order Entry.getUDG(AbstractOrderModel order) Gets User Discount Group for Order.Gets the User Discount Group from the User Model.getUPG(AbstractOrderEntryModel entry) Gets the UserPriceGroup from Order Entry.protected UserPriceGroupgetUPG(AbstractOrderModel order) Gets the User Price Group from the User Model.getUTG(AbstractOrderEntryModel entry) Gets User Tax Group for Order Entry.getUTG(AbstractOrderModel order) Gets User Tax Group for Order.Gets the User Tax Group from the User Model.voidsetTypeService(TypeService typeService) 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
-
PDTEnumGroupsHelper
public PDTEnumGroupsHelper()
-
-
Method Details
-
getPkFromEnum
Gets the PK from Hybris Enum. -
getPTG
Gets Products Tax Group for Order Entry. -
getPTG
Gets the Product Tax Group from the Product Model. -
getPPG
Gets the Product Price Group from the Product Model. -
getPDG
Gets Products Discount Group for Order Entry. -
getPDG
Gets the Product Discount Group from the Product Model. -
getUTG
Gets User Tax Group for Order Entry.- Throws:
CalculationException
-
getUTG
Gets User Tax Group for Order.- Throws:
CalculationException
-
getUTG
Gets the User Tax Group from the User Model.- Throws:
CalculationException
-
getUDG
Gets User Discount Group for Order Entry.- Throws:
CalculationException
-
getUDG
Gets User Discount Group for Order.- Throws:
CalculationException
-
getUDG
Gets the User Discount Group from the User Model.- Throws:
CalculationException
-
getUPG
Gets the UserPriceGroup from Order Entry.- Parameters:
entry- the order entry- Returns:
- the user price group
- Throws:
CalculationException- the calculation exception
-
getUPG
- Throws:
CalculationException
-
getUPG
Gets the User Price Group from the User Model.- Throws:
CalculationException
-
getEnumFromContextOrItem
-
getEnumFromGroups
protected <T extends HybrisEnumValue> T getEnumFromGroups(UserModel user, String attribute) throws CalculationException Tries to find enums connected with User or its User Groups.- Throws:
CalculationException
-
setTypeService
- Parameters:
typeService- the typeService to set
-