public class CatalogFilterDefaultSearchExpressionCompositor extends AbstractCatalogFilterSearchExpressionCompositor
CatalogFilterDefaultSearchExpressionCompositor
the default compositor
to build and compose the product entitlement expression with buyer contracts
and hosting contract.The default relation between buyer contracts and hosting contract is "AND".
Constructor and Description |
---|
CatalogFilterDefaultSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList,
java.lang.Long memberId)
The CatalogFilterDefaultSearchExpressionCompositor constructor.
|
CatalogFilterDefaultSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList,
java.lang.Long hostingContractId,
java.lang.Long memberId)
The CatalogFilterDefaultSearchExpressionCompositor constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getExpression, getExpressionByContract
public CatalogFilterDefaultSearchExpressionCompositor(java.util.List<java.lang.Long> buyerContractIdList, java.lang.Long memberId)
buyerContractIdList
- Buyer contract ID list.memberId
- The member ID.public CatalogFilterDefaultSearchExpressionCompositor(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 member ID.public boolean isCompositeOperationAnd()
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.
isCompositeOperationAnd
in class AbstractCatalogFilterSearchExpressionCompositor