com.ibm.commerce.contract.catalogfilter

Class CatalogFilterDefaultSearchExpressionCompositor

    • Constructor Detail

      • CatalogFilterDefaultSearchExpressionCompositor

        public CatalogFilterDefaultSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList,
                                                              java.lang.Long memberId)
        The CatalogFilterDefaultSearchExpressionCompositor constructor.
        Parameters:
        buyerContractIdList - Buyer contract ID list.
        memberId - The member ID.
      • CatalogFilterDefaultSearchExpressionCompositor

        public CatalogFilterDefaultSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList,
                                                              java.lang.Long hostingContractId,
                                                              java.lang.Long memberId)
        The CatalogFilterDefaultSearchExpressionCompositor constructor.
        Parameters:
        buyerContractIdList - Buyer contract ID list.
        hostingContractId - Hosting contract ID list.
        memberId - The member ID.
    • Method Detail

      • isCompositeOperationAnd

        public boolean isCompositeOperationAnd()
        This abstract method is adopted to determine what operation should be used to combine the product entitlement search expression from buyer contracts and hosting contract.

        The default catalog filter relationship between buyer contracts and hosting contract is "AND". It means that the product could be entitled to used/seen only if it is both included in the catalog filter of hosting contract and any of those buyer contracts.

        Specified by:
        isCompositeOperationAnd in class AbstractCatalogFilterSearchExpressionCompositor
        Returns:
        True if the relationship between buyer contracts and hosting contracts is "AND" False if the relationship between buyer contracts and hosting contracts is "OR"