Class AbstractStockLevelStatusJob

    • Constructor Detail

      • AbstractStockLevelStatusJob

        public AbstractStockLevelStatusJob()
    • Method Detail

      • perform

        public PerformResult perform​(CronJobModel job)
        Description copied from interface: JobPerformable
        The execution body for a ServicelayerJob. Implement here your execution logic. It can be called synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the execution has reached end and if it was successful.
        Specified by:
        perform in interface JobPerformable<CronJobModel>
        Specified by:
        perform in class AbstractJobPerformable<CronJobModel>
        Parameters:
        job - the related CronJob in whose context the execution will be performed.
        Returns:
        a PerformResult that indicates whether the execution was successfully executed or not and has finished or not.
      • isProductInStock

        protected boolean isProductInStock​(ProductInterestModel productInterest,
                                           java.util.Date now)
      • getProductStockLevel

        protected java.lang.Long getProductStockLevel​(ProductInterestModel productInterest)
      • isProductOnSale

        protected boolean isProductOnSale​(ProductModel product,
                                          java.util.Date now)
      • getStockService

        @Deprecated(since="1905",
                    forRemoval=true)
        protected StockService getStockService()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 1905.
      • setStockService

        @Deprecated(since="1905",
                    forRemoval=true)
        public void setStockService​(StockService stockService)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 1905.
      • setBaseStoreService

        public void setBaseStoreService​(BaseStoreService baseStoreService)
      • getWarehouseSelectionStrategy

        @Deprecated(since="1905",
                    forRemoval=true)
        protected WarehouseSelectionStrategy getWarehouseSelectionStrategy()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 1905.
      • setWarehouseSelectionStrategy

        @Deprecated(since="1905",
                    forRemoval=true)
        public void setWarehouseSelectionStrategy​(WarehouseSelectionStrategy warehouseSelectionStrategy)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 1905.
      • getBackInStockProductInterestDao

        @Deprecated(since="1905",
                    forRemoval=true)
        protected BackInStockProductInterestDao getBackInStockProductInterestDao()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 1905. Use ProductInterestDao instead.
      • setBackInStockProductInterestDao

        @Deprecated(since="1905",
                    forRemoval=true)
        public void setBackInStockProductInterestDao​(BackInStockProductInterestDao backInStockProductInterestDao)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 1905. Use ProductInterestDao instead.
      • getInStockProductInterests

        public java.util.List<ProductInterestModel> getInStockProductInterests()
      • setProductInterestDao

        public void setProductInterestDao​(ProductInterestDao productInterestDao)
      • setCommonI18NService

        public void setCommonI18NService​(CommonI18NService commonI18NService)
      • setCommerceStockService

        public void setCommerceStockService​(CommerceStockService commerceStockService)