public class CatalogRefineElementMap
extends atg.repository.dp.DerivationMethodImpl
<property name="catalogRefineElementMap" data-type="map" queryable="false"
writable="false" component-data-type="list">
<derivation user-method="atg.commerce.search.refinement.CatalogRefineElementMap">
<expression>catalogs</expression>
</derivation>
<attribute name="catalogRefineElementsProperty" value="derivedRefineElements"/>
<attribute name="categoryRefineElementsProperty" value="derivedRefineElements"/>
</property>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CAN_INHERIT_FROM_CATALOG_PROPERTY_ATTRIBUTE_NAME |
protected static java.lang.String |
CATALOG_REFINE_ELEMENTS_PROPERTY_ATTRIBUTE_NAME |
protected static java.lang.String |
CATEGORY_REFINE_ELEMENTS_PROPERTY_ATTRIBUTE_NAME |
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static java.lang.String |
DEBUG_ATTRIBUTE_NAME |
protected static java.lang.String |
DERIVATION_NAME |
protected static java.lang.String |
DISPLAY_NAME |
protected static java.lang.String |
SHORT_DESCRIPTION |
protected static java.lang.String |
sResourceName |
COMPARISON_QUERY, INCLUDES_ALL_QUERY, INCLUDES_ANY_QUERY, INCLUDES_ITEM_QUERY, INCLUDES_QUERY, IS_NULL_QUERY, PATTERN_MATCH_QUERY, sZero, TEXT_SEARCH_QUERYBUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAMEATTR_METHOD, ATTR_OVERRIDE_PROPERTY, ATTR_USER_METHOD, DEFAULT_METHOD_NAME, DEFAULT_RECURSION_DEPTH, DP_COUNT_ATTR_NAME, ERR_BAD_ENUMERATION_TYPE, ERR_COLLECTION_EXPRESSION_TYPE, ERR_COLLECTION_ITEM_TYPE, ERR_DP_EXP_NOT_ARRAY, ERR_DP_EXP_NOT_COLLECTION, ERR_DP_EXP_NOT_MAP, ERR_DP_EXP_NOT_SET_LIST, ERR_DP_EXP_NOT_SET_LIST_MAP, ERR_DP_EXP_REFERENCES_DP, ERR_DP_EXP_TYPE_MISMATCH, ERR_DP_NOT_SET_LIST_MAP, ERR_DP_QUERYABLE_OP_NOT, ERR_DP_READABLE_OP_NOT, ERR_DP_WRITABLE_OP_NOT, ERR_DP_WRITABLE_WITH_NULL_OP, ERR_EMPTY_EXPRESSION, ERR_EXACTLY_ONE_EXPRESSION, ERR_INCOMPATIBLE_DP_EXP, ERR_INCOMPATIBLE_OP, ERR_INVALID_OVERRIDE_PROPERTY_NAME, ERR_INVALID_PROPERTY, ERR_METHOD_AND_USER_METHOD, ERR_MISSING_DERIVATION, ERR_NO_ATTRIBUTE, ERR_NO_DP, ERR_NO_EXP, ERR_NO_EXPRESSION, ERR_NO_METHOD, ERR_NO_PROPERTY_FOR_LOCALE, ERR_NO_PROPERTY_TYPE, ERR_NO_SET_LIST, ERR_NULL_ITEM_DESCRIPTOR, ERR_OP_SAME_AS_DP, ERR_PROP_COLLECTION_TYPE, ERR_SET_NOT_WRITABLE, PROPERTY_SEPARATOR, RECURSION_DEPTH_ATTR_NAME, RESOURCE_BUNDLE_NAME, TAG_DERIVATION, TAG_EXPRESSION| Constructor and Description |
|---|
CatalogRefineElementMap()
Set the derivation method's name and description.
|
| Modifier and Type | Method and Description |
|---|---|
protected Query |
createQuery(int pQueryType,
boolean pDerivedPropertyOnLeft,
boolean pCountDerivedProperty,
QueryExpression pOther,
int pOperator,
boolean pIgnoreCase,
QueryExpression pMinScore,
QueryExpression pSearchStringFormat,
Query pItemQuery,
QueryBuilder pBuilder,
atg.repository.query.PropertyQueryExpression pParentProperty,
java.util.List pChildPropertyList)
Create a query for this derivation.
|
java.lang.Object |
derivePropertyValue(java.lang.Object pBean)
Derive the value of the property for the given object, using the algorithm
described in the class documentation above.
|
java.lang.Object |
derivePropertyValue(RepositoryItemImpl pItem) |
protected boolean |
getCanInheritFromCatalog(java.lang.Object pBean) |
protected java.lang.String |
getCatalogRefineElementsPropertyAttribute()
Returns the name of the catalog property that contains refinement elements.
|
protected java.lang.String |
getCategoryRefineElementsPropertyAttribute()
Returns the name of the category property that contains refinement elements.
|
protected boolean |
isLoggingDebug()
Returns the value of the debug attribute.
|
boolean |
isQueryable()
Properties that use this derivation method are not queryable.
|
protected void |
logDebug(java.lang.String pDebug)
Log a debug message to System.out
|
createComparisonQuery, createExpression, createIncludesAllQuery, createIncludesAnyQuery, createIncludesItemQuery, createIncludesQuery, createIsNullQuery, createPatternMatchQuery, createQuery, createReferencedByQuery, createTextSearchQuery, getAllowNoExpressions, getDerivation, getFeatureDescriptor, getOtherUnderlyingExpressions, getPropertyDescriptor, getPropertyOrigin, getPropertyOrigin, getPropertyOrigin, getPropertyOrigin, isEmpty, isWritable, rebuildExpression, setDerivation, setFrom, setPropertyDescriptor, setPropertyValue, setPropertyValue, validate, wrapcopyFeatureDescriptor, getDisplayName, getDisplayNameResource, getDisplaySortString, getLocalizedResourceBundle, getResourceBundle, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource, toStringpublic static java.lang.String CLASS_VERSION
protected static final java.lang.String sResourceName
protected static final java.lang.String DERIVATION_NAME
protected static final java.lang.String DISPLAY_NAME
protected static final java.lang.String SHORT_DESCRIPTION
protected static final java.lang.String CATALOG_REFINE_ELEMENTS_PROPERTY_ATTRIBUTE_NAME
protected static final java.lang.String CATEGORY_REFINE_ELEMENTS_PROPERTY_ATTRIBUTE_NAME
protected static final java.lang.String CAN_INHERIT_FROM_CATALOG_PROPERTY_ATTRIBUTE_NAME
protected static final java.lang.String DEBUG_ATTRIBUTE_NAME
public CatalogRefineElementMap()
protected java.lang.String getCatalogRefineElementsPropertyAttribute()
protected java.lang.String getCategoryRefineElementsPropertyAttribute()
protected boolean isLoggingDebug()
protected boolean getCanInheritFromCatalog(java.lang.Object pBean)
throws PropertyNotFoundException,
RepositoryException
protected Query createQuery(int pQueryType, boolean pDerivedPropertyOnLeft, boolean pCountDerivedProperty, QueryExpression pOther, int pOperator, boolean pIgnoreCase, QueryExpression pMinScore, QueryExpression pSearchStringFormat, Query pItemQuery, QueryBuilder pBuilder, atg.repository.query.PropertyQueryExpression pParentProperty, java.util.List pChildPropertyList) throws RepositoryException
createQuery in class atg.repository.dp.DerivationMethodImplRepositoryExceptionpublic boolean isQueryable()
public java.lang.Object derivePropertyValue(RepositoryItemImpl pItem) throws RepositoryException
RepositoryExceptionderivePropertyValue(Object)public java.lang.Object derivePropertyValue(java.lang.Object pBean)
throws RepositoryException
RepositoryExceptionprotected void logDebug(java.lang.String pDebug)