Class BasecommerceManager

All Implemented Interfaces:
ItemLifecycleListener, Serializable

public class BasecommerceManager extends GeneratedBasecommerceManager
This is the extension manager of the Basecommerce extension.
See Also:
  • Constructor Details

    • BasecommerceManager

      public BasecommerceManager()
      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 BasecommerceManager getInstance()
      Get the valid instance of this manager.
      Returns:
      the current instance of this manager
    • createGeocodingCronJob

      protected void createGeocodingCronJob()
    • createProjectData

      public void createProjectData(Map<String,String> params, 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 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
    • createGeocodeAddressesCronJob

      public GeocodeAddressesCronJob createGeocodeAddressesCronJob(Integer batchSize, Integer internalDelay, int triggerInterval) throws JaloTypeException
      Throws:
      JaloTypeException
    • createGeocodeAddressesCronJob

      public GeocodeAddressesCronJob createGeocodeAddressesCronJob(String code, Integer batchSize, Integer internalDelay, int triggerInterval) throws JaloTypeException
      Throws:
      JaloTypeException
    • getGeocodeAddressesJob

      public ServicelayerJob getGeocodeAddressesJob()
    • getBarcodes

      public Collection<BarcodeMedia> getBarcodes(SessionContext ctx, Product item)
      Description copied from class: GeneratedBasecommerceManager
      Generated method - Getter of the Product.barcodes attribute.
      Specified by:
      getBarcodes in class GeneratedBasecommerceManager
      Returns:
      the barcodes
    • createOrderCancelConfig

      protected void createOrderCancelConfig(int queueLength)
    • getCreatorParameterNames

      public Collection<String> getCreatorParameterNames()
      Description copied from class: Extension
      Override this method to provide parameters for the system creator.
      Overrides:
      getCreatorParameterNames in class Extension
      Returns:
      parameter names for the creator
    • getCreatorParameterPossibleValues

      public List<String> getCreatorParameterPossibleValues(String param)
      Description copied from class: Extension
      Override this method to provide a list of all possible values for the given creator parameter. If not null the list of these values will be shown to the user of system creator and no other values will be possible to set.
      Overrides:
      getCreatorParameterPossibleValues in class Extension
      Parameters:
      param - the name of the parameter
      Returns:
      list of all possible values for the given creator parameter; use null when this parameter should have no restriction of possible values