public class ProductEntitlementExpressionHelper
extends java.lang.Object
ProductEntitlementExpressionHelper is used to build search engine specific query expression
for contracts that contains CatalogFilter Term Conditions and ProductSet Term Conditions.
ProductEntitlementExpressionHelper expose the API to external components, other components can instantiate
it directly with passing a contract list as the input or not, if contract list passed,
ProductEntitlementExpressionHelper will build the search expression against those contracts
instead of fetch contract from context, if there is no contract passed as parameter,
ProductEntitlementExpressionHelper will fetch the current eligible contracts and build
search expression against them.
Constructor and Description |
---|
ProductEntitlementExpressionHelper()
The constructor with no arguments input.
|
ProductEntitlementExpressionHelper(java.lang.Long[] contractIds,
java.lang.Long memberId,
boolean isAdminMode)
The constructor
|
ProductEntitlementExpressionHelper(java.lang.Long memberId,
boolean isAdminMode)
The constructor.
|
ProductEntitlementExpressionHelper(TradingAgreementAccessBean[] tradingAgreements,
java.lang.Long memberId,
boolean isAdminMode)
The constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSearchExpression()
Get search expression.
|
public ProductEntitlementExpressionHelper() throws ECException
ECException
- E-commerce exception could be thrown if any system runtime error occurred.public ProductEntitlementExpressionHelper(java.lang.Long memberId, boolean isAdminMode) throws ECException
memberId
- The member Id.isAdminMode
- Whether run instance in admin mode.ECException
- E-commerce exception could be thrown if any system runtime error occurred.public ProductEntitlementExpressionHelper(TradingAgreementAccessBean[] tradingAgreements, java.lang.Long memberId, boolean isAdminMode) throws ECException
tradingAgreements
- The determined trading agreement access bean array the expression build on.memberId
- The member Id.isAdminMode
- Whether run instance in admin mode.ECException
- E-commerce exception could be thrown if any system runtime error occurred.public ProductEntitlementExpressionHelper(java.lang.Long[] contractIds, java.lang.Long memberId, boolean isAdminMode) throws ECException
contractIds
- the contract id list the expression build on.memberId
- The member Id.isAdminMode
- Whether run instance in admin mode.ECException
- E-commerce exception could be thrown if any system runtime error occurred.public java.lang.String getSearchExpression() throws ECException
ECException
- E-commerce exception could be thrown if any system runtime error occurred.