Class DefaultTmaSubscriptionPricePlanDao

    • Constructor Detail

      • DefaultTmaSubscriptionPricePlanDao

        public DefaultTmaSubscriptionPricePlanDao()
    • Method Detail

      • filterByRequiredProducts

        @Deprecated(since="2007")
        protected java.util.Set<SubscriptionPricePlanModel> filterByRequiredProducts​(java.util.Set<SubscriptionPricePlanModel> poPrices,
                                                                                     java.util.Set<ProductModel> requiredProducts)
        Deprecated.
        since 2007. Use instead filterAfterRequiredProducts(Set, Set)
        Returns the prices on which the required products set match the required products sent as parameter, otherwise returns the prices on which the required price class set match the required price class retrieved from the required products sent
        Parameters:
        poPrices - the prices to be filtered
        requiredProducts - the required products to be compared with the ones set on the prices
        Returns:
        the filtered prices
      • findPriceRows

        protected java.util.Set<PriceRowModel> findPriceRows​(TmaPriceContext priceContext,
                                                             boolean typeExclusive)
        Retrieves all instances of PriceRowModels exclusively if type exclusive is true otherwise all instances of PriceRowModels and subtypes, for the {@param priceContext} provided. In case of BPO with affected product it retrieves only price overrides.
        Parameters:
        priceContext - priceContext to retrieve the configuration from
        typeExclusive - true if exclusive type should be returned, otherwise false
        Returns:
        PriceRowModels having the configuration provided by the {@param priceContext}
      • enhanceQueryWithSortingCondition

        protected void enhanceQueryWithSortingCondition​(de.hybris.platform.core.GenericQuery query)
        Enhance the query with a condition to sort descending after priority
        Parameters:
        query - the query to be enhanced
      • filterAfterRequiredProducts

        protected java.util.Set<PriceRowModel> filterAfterRequiredProducts​(java.util.Set<PriceRowModel> priceRows,
                                                                           java.util.Set<ProductModel> requiredProducts)
        Returns the price rows on which the required products set match the required products sent as parameter, otherwise returns the price rows on which the required price class set match the required price class retrieved from the required products sent
        Parameters:
        priceRows - the price rows to be filtered
        requiredProducts - the required products to be compared with the ones set on the prices
        Returns:
        the filtered prices
      • filterSubscriptionPricePlans

        @Deprecated(since="2003")
        protected java.util.Set<SubscriptionPricePlanModel> filterSubscriptionPricePlans​(TmaPriceContext priceContext)
        Deprecated.
        since 2003. Use instead TmaSubscriptionPricePlanDao#findApplicableSubscriptionPricePlans(priceContext)
      • filterPriceRows

        @Deprecated(since="2003")
        protected java.util.Set<PriceRowModel> filterPriceRows​(TmaPriceContext priceContext)
        Deprecated.
        since 2003. Use instead TmaSubscriptionPricePlanDao#findApplicablePriceRows(priceContext)
      • getGenericSearchService

        protected de.hybris.platform.genericsearch.GenericSearchService getGenericSearchService()
      • setGenericSearchService

        public void setGenericSearchService​(de.hybris.platform.genericsearch.GenericSearchService genericSearchService)
      • setSubscriptionPricePlanProcessor

        public void setSubscriptionPricePlanProcessor​(TmaGenericSearchProcessor subscriptionPricePlanProcessor)
      • setTmaSppFilterSearchProcessor

        public void setTmaSppFilterSearchProcessor​(TmaGenericSearchProcessor tmaSppFilterSearchProcessor)
      • setTmaPriceRowFilterSearchProcessor

        public void setTmaPriceRowFilterSearchProcessor​(TmaGenericSearchProcessor tmaPriceRowFilterSearchProcessor)