public abstract class AbstractCatalogFilterSearchExpressionCompositor
extends java.lang.Object
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 |
---|---|
protected java.lang.String | composite(java.lang.String buyerContractSearchExpression, java.lang.String hostingContractSearchExpression)
Compose the product entitlement search expression with buyer contracts and hosting contract.
|
protected java.lang.String | getBuyerContractSearchExpression()
Get product entitlement search expression based on the CatalogFilter Term Conditions and ProductSet Term Conditions defined in the specified buyer contracts
|
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)
public AbstractCatalogFilterSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList, java.lang.Long memberId)
public java.lang.String getExpression() throws ECException
public java.lang.String getExpressionByContract(java.lang.Long contractId) throws ECException
protected java.lang.String composite(java.lang.String buyerContractSearchExpression, java.lang.String hostingContractSearchExpression)
public abstract boolean isCompositeOperationAnd()
protected java.lang.String getBuyerContractSearchExpression() throws ECException