Class DummyPriceFactory
- java.lang.Object
-
- de.hybris.platform.jalo.Manager
-
- de.hybris.platform.jalo.extension.Extension
-
- de.hybris.platform.jalo.order.price.AbstractPriceFactory
-
- de.hybris.platform.jalo.order.price.DummyPriceFactory
-
- All Implemented Interfaces:
ItemLifecycleListener,PriceFactory,java.io.Serializable
public class DummyPriceFactory extends AbstractPriceFactory
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProvider
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_NAME
-
Constructor Summary
Constructors Constructor Description DummyPriceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateEssentialData(java.util.Map params, JspContext jspc)voidcreateProjectData(java.util.Map params, JspContext jspc)PriceValuegetBasePrice(AbstractOrderEntry entry)override to define the base price of an order entrystatic AbstractPriceFactorygetInstance()java.lang.StringgetName()java.util.ListgetProductDiscountInformations(SessionContext ctx, Product product, java.util.Date date, boolean net)override this to show all discounts which may apply to the given productjava.util.ListgetProductPriceInformations(SessionContext ctx, Product product, java.util.Date date, boolean net)Override this to show all prices available for the given productjava.util.ListgetProductTaxInformations(SessionContext ctx, Product product, java.util.Date date)override this to show all taxes which apply to the given product-
Methods inherited from class de.hybris.platform.jalo.order.price.AbstractPriceFactory
getAllPriceInformations, getAllPriceInformations, getDiscountValues, getDiscountValues, getProductDiscountInformations, getProductPriceInformations, getProductTaxInformations, getTaxValues, isNetUser
-
Methods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeItemRemoval, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getDefaultAttributeModes, getRemote, isCreatorDisabled, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplace
-
Methods inherited from class de.hybris.platform.jalo.Manager
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrap
-
-
-
-
Field Detail
-
BEAN_NAME
public static final java.lang.String BEAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AbstractPriceFactory getInstance()
-
getBasePrice
public PriceValue getBasePrice(AbstractOrderEntry entry) throws JaloPriceFactoryException
Description copied from class:AbstractPriceFactoryoverride to define the base price of an order entry- Specified by:
getBasePricein interfacePriceFactory- Specified by:
getBasePricein classAbstractPriceFactory- Returns:
- a price with the order's currency iso code, 0.0 as value and the order's net status
- Throws:
JaloPriceFactoryException
-
getProductDiscountInformations
public java.util.List getProductDiscountInformations(SessionContext ctx, Product product, java.util.Date date, boolean net) throws JaloPriceFactoryException
Description copied from class:AbstractPriceFactoryoverride this to show all discounts which may apply to the given product- Specified by:
getProductDiscountInformationsin interfacePriceFactory- Specified by:
getProductDiscountInformationsin classAbstractPriceFactoryproduct- the product- Returns:
- a list of
DiscountInformationobjects - Throws:
JaloPriceFactoryException- if price calculation error occured
-
getProductPriceInformations
public java.util.List getProductPriceInformations(SessionContext ctx, Product product, java.util.Date date, boolean net) throws JaloPriceFactoryException
Description copied from class:AbstractPriceFactoryOverride this to show all prices available for the given product- Specified by:
getProductPriceInformationsin interfacePriceFactory- Specified by:
getProductPriceInformationsin classAbstractPriceFactoryproduct- the productnet- the net/gross state of the requested prices- Returns:
- a list of
PriceInformationobjects - Throws:
JaloPriceFactoryException- if price calculation error occured
-
getProductTaxInformations
public java.util.List getProductTaxInformations(SessionContext ctx, Product product, java.util.Date date) throws JaloPriceFactoryException
Description copied from class:AbstractPriceFactoryoverride this to show all taxes which apply to the given product- Specified by:
getProductTaxInformationsin interfacePriceFactory- Specified by:
getProductTaxInformationsin classAbstractPriceFactoryproduct- the product- Returns:
- a list of
TaxInformationobjects - Throws:
JaloPriceFactoryException- if price calculation error occured
-
createProjectData
public void createProjectData(java.util.Map params, JspContext jspc)- Overrides:
createProjectDatain classExtension
-
createEssentialData
public void createEssentialData(java.util.Map params, JspContext jspc)- Overrides:
createEssentialDatain classExtension
-
-