public abstract class AbstractCatalogFilterSearchExpressionCompositor
extends java.lang.Object
AbstractCatalogFilterSearchExpressionCompositor
is a abstract class does the practical building work for
ProductEntitlementExpressionHelper
, the following procedures are what AbstractCatalogFilterSearchExpressionCompositor
does internally:
To change the default relation between buyer contracts and hosting contract, isCompositeOperationAnd
should be overwrite as "OR".
Constructor and Description |
---|
AbstractCatalogFilterSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList,
java.lang.Long memberId)
The AbstractCatalogFilterSearchExpressionCompositor constructor.
|
AbstractCatalogFilterSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList,
java.lang.Long hostingContractId,
java.lang.Long memberId)
The AbstractCatalogFilterSearchExpressionCompositor constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression()
Get product entitlement search expression based on the CatalogFilter Term Conditions
and ProductSet Term Conditions defined in the specified buyer contracts and hosting contract.
|
java.lang.String |
getExpressionByContract(java.lang.Long contractId)
Get product entitlement search expression based on the CatalogFilter Term Conditions
and ProductSet Term Conditions defined contract.
|
abstract boolean |
isCompositeOperationAnd()
This abstract method is adopted to determine what operation should be used to combine
the product entitlement search expression between multiple buyer contracts.
|
public AbstractCatalogFilterSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList, java.lang.Long hostingContractId, java.lang.Long memberId)
buyerContractIdList
- Buyer contract ID list.hostingContractId
- Hosting contract ID list.memberId
- The memberIdpublic AbstractCatalogFilterSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList, java.lang.Long memberId)
buyerContractIdList
- Buyer contract ID list.memberId
- The memberIdpublic java.lang.String getExpression() throws ECException
ECException
- Exception could be thrown during the expression building procedure.public java.lang.String getExpressionByContract(java.lang.Long contractId) throws ECException
contractId
- the contract id.ECException
- Exception could be thrown during the expression building procedure.public abstract boolean isCompositeOperationAnd()