Class SappricingManager

java.lang.Object
de.hybris.platform.jalo.Manager
de.hybris.platform.jalo.extension.Extension
de.hybris.platform.sap.sappricing.jalo.GeneratedSappricingManager
de.hybris.platform.sap.sappricing.jalo.SappricingManager
All Implemented Interfaces:
de.hybris.platform.jalo.extension.ItemLifecycleListener, de.hybris.platform.jalo.order.price.PriceFactory, Serializable

public class SappricingManager extends GeneratedSappricingManager implements de.hybris.platform.jalo.order.price.PriceFactory
This is the extension manager of the Sappricing extension.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension

    de.hybris.platform.jalo.extension.Extension.RestrictedLanguagesProvider, de.hybris.platform.jalo.extension.Extension.RightsProvider

    Nested classes/interfaces inherited from class de.hybris.platform.jalo.Manager

    de.hybris.platform.jalo.Manager.GenericManagerSingletonCreator, de.hybris.platform.jalo.Manager.ManagerSingletonCreator
  • Field Summary

    Fields inherited from class de.hybris.platform.sap.sappricing.jalo.GeneratedSappricingManager

    DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Summary

    Constructors
    Constructor
    Description
    Never call the constructor of any manager directly, call getInstance() You can place your business logic here - like registering a jalo session listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createEssentialData(Map<String,String> params, de.hybris.platform.util.JspContext jspc)
    Implement this method to create initial objects.
    void
    createProjectData(Map<String,String> params, de.hybris.platform.util.JspContext jspc)
    Implement this method to create data that is used in your project.
    void
    Use this method as a callback when the manager instance is being destroyed (this happens before system initialization, at redeployment or if you shutdown your VM).
    de.hybris.platform.jalo.order.price.ProductPriceInformations
    getAllPriceInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date, boolean net)
     
    de.hybris.platform.util.PriceValue
    getBasePrice(de.hybris.platform.jalo.order.AbstractOrderEntry entry)
     
    getDiscountValues(de.hybris.platform.jalo.order.AbstractOrder order)
     
    getDiscountValues(de.hybris.platform.jalo.order.AbstractOrderEntry entry)
     
    Get the valid instance of this manager.
    getProductDiscountInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date, boolean net)
     
    getProductPriceInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date, boolean net)
     
    getProductTaxInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date)
     
    getTaxValues(de.hybris.platform.jalo.order.AbstractOrderEntry entry)
     
    void
    Use this method to do some basic work only ONCE in the lifetime of a tenant resp.
    boolean
    isNetUser(de.hybris.platform.jalo.user.User user)
     

    Methods inherited from class de.hybris.platform.sap.sappricing.jalo.GeneratedSappricingManager

    getDefaultAttributeModes, getName

    Methods inherited from class de.hybris.platform.jalo.extension.Extension

    checkBeforeInitialization, checkBeforeItemRemoval, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, isCreatorDisabled, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplace

    Methods inherited from class de.hybris.platform.jalo.Manager

    afterItemCreation, beforeItemCreation, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, setAttribute, setTenant, setTransientObject, wrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SappricingManager

      public SappricingManager()
      Never call the constructor of any manager directly, call getInstance() You can place your business logic here - like registering a jalo session listener. Each manager is created once for each tenant.
  • Method Details

    • getInstance

      public static SappricingManager getInstance()
      Get the valid instance of this manager.
      Returns:
      the current instance of this manager
    • init

      public void init()
      Use this method to do some basic work only ONCE in the lifetime of a tenant resp. "deployment". This method is called after manager creation (for example within startup of a tenant). Note that if you have more than one tenant you have a manager instance for each tenant.
      Overrides:
      init in class de.hybris.platform.jalo.Manager
    • destroy

      public void destroy()
      Use this method as a callback when the manager instance is being destroyed (this happens before system initialization, at redeployment or if you shutdown your VM). Note that if you have more than one tenant you have a manager instance for each tenant.
      Overrides:
      destroy in class de.hybris.platform.jalo.Manager
    • createEssentialData

      public void createEssentialData(Map<String,String> params, de.hybris.platform.util.JspContext jspc)
      Implement this method to create initial objects. This method will be called by system creator during initialization and system update. Be sure that this method can be called repeatedly. An example usage of this method is to create required cronjobs or modifying the type system (setting e.g some default values)
      Overrides:
      createEssentialData in class de.hybris.platform.jalo.extension.Extension
      Parameters:
      params - the parameters provided by user for creation of objects for the extension
      jspc - the jsp context; you can use it to write progress information to the jsp page during creation
    • createProjectData

      public void createProjectData(Map<String,String> params, de.hybris.platform.util.JspContext jspc)
      Implement this method to create data that is used in your project. This method will be called during the system initialization. An example use is to import initial data like currencies or languages for your project from an csv file.
      Overrides:
      createProjectData in class de.hybris.platform.jalo.extension.Extension
      Parameters:
      params - the parameters provided by user for creation of objects for the extension
      jspc - the jsp context; you can use it to write progress information to the jsp page during creation
    • getAllPriceInformations

      public de.hybris.platform.jalo.order.price.ProductPriceInformations getAllPriceInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date, boolean net) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getAllPriceInformations in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • getProductPriceInformations

      public List getProductPriceInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date, boolean net) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getProductPriceInformations in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • getProductTaxInformations

      public List getProductTaxInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getProductTaxInformations in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • getProductDiscountInformations

      public List getProductDiscountInformations(de.hybris.platform.jalo.SessionContext ctx, de.hybris.platform.jalo.product.Product product, Date date, boolean net) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getProductDiscountInformations in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • isNetUser

      public boolean isNetUser(de.hybris.platform.jalo.user.User user)
      Specified by:
      isNetUser in interface de.hybris.platform.jalo.order.price.PriceFactory
    • getTaxValues

      public Collection getTaxValues(de.hybris.platform.jalo.order.AbstractOrderEntry entry) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getTaxValues in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • getBasePrice

      public de.hybris.platform.util.PriceValue getBasePrice(de.hybris.platform.jalo.order.AbstractOrderEntry entry) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getBasePrice in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • getDiscountValues

      public List getDiscountValues(de.hybris.platform.jalo.order.AbstractOrderEntry entry) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getDiscountValues in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException
    • getDiscountValues

      public List getDiscountValues(de.hybris.platform.jalo.order.AbstractOrder order) throws de.hybris.platform.jalo.order.price.JaloPriceFactoryException
      Specified by:
      getDiscountValues in interface de.hybris.platform.jalo.order.price.PriceFactory
      Throws:
      de.hybris.platform.jalo.order.price.JaloPriceFactoryException