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,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProviderNested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEssentialData(Map params, JspContext jspc) voidcreateProjectData(Map params, JspContext jspc) getBasePrice(AbstractOrderEntry entry) override to define the base price of an order entrystatic AbstractPriceFactorygetName()getProductDiscountInformations(SessionContext ctx, Product product, Date date, boolean net) override this to show all discounts which may apply to the given productgetProductPriceInformations(SessionContext ctx, Product product, Date date, boolean net) Override this to show all prices available for the given productgetProductTaxInformations(SessionContext ctx, Product product, Date date) override this to show all taxes which apply to the given productMethods inherited from class de.hybris.platform.jalo.order.price.AbstractPriceFactory
getAllPriceInformations, getAllPriceInformations, getDiscountValues, getDiscountValues, getProductDiscountInformations, getProductPriceInformations, getProductTaxInformations, getTaxValues, isNetUserMethods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeInitialization, checkBeforeItemRemoval, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getDefaultAttributeModes, getRemote, isCreatorDisabled, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplaceMethods 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 Details
-
BEAN_NAME
- See Also:
-
-
Constructor Details
-
DummyPriceFactory
public DummyPriceFactory()
-
-
Method Details
-
getInstance
-
getBasePrice
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 List getProductDiscountInformations(SessionContext ctx, Product product, 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 List getProductPriceInformations(SessionContext ctx, Product product, 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 List getProductTaxInformations(SessionContext ctx, Product product, 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
-
getName
-
createProjectData
- Overrides:
createProjectDatain classExtension
-
createEssentialData
- Overrides:
createEssentialDatain classExtension
-