Class CandidateOffers

    • Constructor Detail

      • CandidateOffers

        public CandidateOffers()
    • Method Detail

      • initializeCandidateOfferForProcessing

        public void initializeCandidateOfferForProcessing​(BaseCandidateOffer offer)
        Adds the offer to the relevant collections used by the offer engine.
        Parameters:
        offer -
      • populateCombinabilityStructures

        public void populateCombinabilityStructures()
      • distributeExclusions

        public void distributeExclusions()
        In the admin, a user can specify an exclusion from either side of the offer. The offer engine needs to process the exclusions from either side. This method makes sure that if Offer A excludes B that Offer B also excludes A.
      • isEmpty

        public boolean isEmpty()
      • getOtherTypeOfferIdsList

        public Map<String,​Set<String>> getOtherTypeOfferIdsList()
        For combinability algorithms, it is helpful to know the ids of all other offer types. For example, an order offer needs to know the ids of all item and fulfillment offers to see which ones it can be combined with.
      • getAllOfferIds

        public Set<String> getAllOfferIds()
        Set of ids for all offers that are applicable to a given offer engine execution.
      • getAllCandidateOffers

        public List<BaseCandidateOffer> getAllCandidateOffers()
        A set of all the relevant candidate offers for given offer engine execution
      • setOtherTypeOfferIdsList

        public void setOtherTypeOfferIdsList​(Map<String,​Set<String>> otherTypeOfferIdsList)
        For combinability algorithms, it is helpful to know the ids of all other offer types. For example, an order offer needs to know the ids of all item and fulfillment offers to see which ones it can be combined with.
      • setAllOfferIds

        public void setAllOfferIds​(Set<String> allOfferIds)
        Set of ids for all offers that are applicable to a given offer engine execution.
      • setAllCandidateOffers

        public void setAllCandidateOffers​(List<BaseCandidateOffer> allCandidateOffers)
        A set of all the relevant candidate offers for given offer engine execution
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object