Class DefaultTmaCompatibilityPolicyEngine

    • Constructor Detail

      • DefaultTmaCompatibilityPolicyEngine

        public DefaultTmaCompatibilityPolicyEngine()
    • Method Detail

      • getInvalidCompatibilityPolicies

        public java.util.List<TmaPolicyActionModel> getInvalidCompatibilityPolicies​(java.util.List<TmaPolicyContext> productOfferingRequestParams)
        Description copied from interface: TmaCompatibilityPolicyEngine
        Verifies the compatibility policies found for a list of product offerings and returns the ones that are invalid. Policies considered during evaluation are the ones that have conditions corresponding to given request parameters together with the ones without conditions but with actions corresponding to request parameters.
        Specified by:
        getInvalidCompatibilityPolicies in interface TmaCompatibilityPolicyEngine
        Parameters:
        productOfferingRequestParams - list containing the details for the product offerings to ve verified (product offering, product offering group, quantity)
        Returns:
        returns the list of invalid policy statements
      • verifyCompatibilityPolicies

        public void verifyCompatibilityPolicies​(AbstractOrderModel orderModel,
                                                EntryGroup entryGroup)
        Description copied from interface: TmaCompatibilityPolicyEngine
        Verifies compatibility policies identified for the product offerings within a given entry group from an order. In case of any invalid compatibility policy found, the actions are applied by either setting an error message on the entry group or adding a new auto picked entry.
        Specified by:
        verifyCompatibilityPolicies in interface TmaCompatibilityPolicyEngine
        Parameters:
        orderModel - the current order
        entryGroup - the group whose product offerings entries are verified
      • getInvalidActions

        @Deprecated(since="1911",
                    forRemoval=true)
        protected java.util.List<TmaPolicyActionModel> getInvalidActions​(java.util.List<TmaPolicyContext> contexts)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1911
      • invalidateErrorMessages

        @Deprecated(since="1911",
                    forRemoval=true)
        protected void invalidateErrorMessages​(AbstractOrderModel orderModel,
                                               EntryGroup entryGroup)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1911
      • getEntryGroupService

        protected de.hybris.platform.order.EntryGroupService getEntryGroupService()
      • setEntryGroupService

        public void setEntryGroupService​(de.hybris.platform.order.EntryGroupService entryGroupService)
      • setPoService

        public void setPoService​(TmaPoService poService)
      • getModelService

        protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      • setModelService

        public void setModelService​(de.hybris.platform.servicelayer.model.ModelService modelService)
      • getUserService

        protected de.hybris.platform.servicelayer.user.UserService getUserService()
      • setUserService

        public void setUserService​(de.hybris.platform.servicelayer.user.UserService userService)
      • setTmaPolicyEngine

        public void setTmaPolicyEngine​(TmaPolicyEngine tmaPolicyEngine)
      • setTmaEntryGroupService

        public void setTmaEntryGroupService​(TmaEntryGroupService tmaEntryGroupService)