public class StoreContextDerivation
extends atg.repository.dp.DerivationMethodImpl
<property name="imagePath"> <derivation user-method="atg.projects.store.dp.StoreContextDerivation"> <expression>image</expression> </derivation> </property>;
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static java.lang.String |
DEFAULT_LANGUAGE_ATTR |
protected static java.lang.String |
DEFAULT_SITE_ATTR |
protected static java.lang.String |
DERIVATION_NAME |
protected static java.lang.String |
DISPLAY_NAME |
protected static java.lang.String |
KEY_SERVICE_PATH |
protected static java.lang.String |
LANGUAGE_TAG |
protected static java.lang.String |
SHORT_DESCRIPTION |
protected static java.lang.String |
SITE_TAG |
COMPARISON_QUERY, INCLUDES_ALL_QUERY, INCLUDES_ANY_QUERY, INCLUDES_ITEM_QUERY, INCLUDES_QUERY, IS_NULL_QUERY, PATTERN_MATCH_QUERY, sZero, TEXT_SEARCH_QUERY
BUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME
ATTR_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_OVERRIDE_NOT_SUPPORTED, ERR_PROP_COLLECTION_TYPE, ERR_SET_NOT_WRITABLE, PROPERTY_SEPARATOR, RECURSION_DEPTH_ATTR_NAME, RESOURCE_BUNDLE_NAME, TAG_DERIVATION, TAG_EXPRESSION
Constructor and Description |
---|
StoreContextDerivation()
Set the name, display name and short description properties.
|
Modifier and Type | Method and Description |
---|---|
protected atg.repository.Query |
createQuery(int pQueryType,
boolean pDerivedPropertyOnLeft,
boolean pCountDerivedProperty,
atg.repository.QueryExpression pOther,
int pOperator,
boolean pIgnoreCase,
atg.repository.QueryExpression pMinScore,
atg.repository.QueryExpression pSearchStringFormat,
atg.repository.Query pItemQuery,
atg.repository.QueryBuilder pBuilder,
atg.repository.query.PropertyQueryExpression pParentProperty,
java.util.List pChildPropertyList)
We do not support query for this derivation implementation
|
java.lang.Object |
derivePropertyValue(java.lang.Object pBean)
Determine the derived property value using the specified bean.
|
java.lang.Object |
derivePropertyValue(atg.repository.RepositoryItemImpl pItem)
Determine the derived property value.
|
java.lang.String |
getDefaultLanguageAttribute()
Gets the mDefaultLanguageAttribute
|
java.lang.String |
getDefaultSiteAttribute()
Gets the mDefaultSiteAttribute
|
atg.repository.dp.RepositoryKeyService |
getKeyService()
Returns LocaleKeyService service.
|
boolean |
isQueryable()
Determine whether the specified property can be used in a query.
|
createComparisonQuery, createExpression, createIncludesAllQuery, createIncludesAnyQuery, createIncludesItemQuery, createIncludesQuery, createIsEmptyQuery, createIsNotEmptyQuery, createIsNullQuery, createPatternMatchQuery, createQuery, createReferencedByQuery, createTextSearchQuery, getAllowNoExpressions, getDerivation, getFeatureDescriptor, getOtherUnderlyingExpressions, getPropertyDescriptor, getPropertyOrigin, getPropertyOrigin, getPropertyOrigin, getPropertyOrigin, getSupportsOverrideExpression, isEmpty, isWritable, rebuildExpression, setDerivation, setFrom, setPropertyDescriptor, setPropertyValue, setPropertyValue, validate, wrap
copyFeatureDescriptor, getCurrentLocale, getDisplayName, getDisplayName, getDisplayNameResource, getDisplaySortString, getLocalizedDisplayName, getLocalizedResourceBundle, getLocalizedResourceBundle, getResourceBundle, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource, toString
public static final java.lang.String CLASS_VERSION
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 KEY_SERVICE_PATH
protected static final java.lang.String SITE_TAG
protected static final java.lang.String LANGUAGE_TAG
protected static final java.lang.String DEFAULT_LANGUAGE_ATTR
protected static final java.lang.String DEFAULT_SITE_ATTR
public StoreContextDerivation()
public java.lang.String getDefaultSiteAttribute()
public java.lang.String getDefaultLanguageAttribute()
protected atg.repository.Query createQuery(int pQueryType, boolean pDerivedPropertyOnLeft, boolean pCountDerivedProperty, atg.repository.QueryExpression pOther, int pOperator, boolean pIgnoreCase, atg.repository.QueryExpression pMinScore, atg.repository.QueryExpression pSearchStringFormat, atg.repository.Query pItemQuery, atg.repository.QueryBuilder pBuilder, atg.repository.query.PropertyQueryExpression pParentProperty, java.util.List pChildPropertyList) throws atg.repository.RepositoryException
createQuery
in class atg.repository.dp.DerivationMethodImpl
atg.repository.RepositoryException
public java.lang.Object derivePropertyValue(atg.repository.RepositoryItemImpl pItem) throws atg.repository.RepositoryException
pItem
- the item whose property value is desiredatg.repository.RepositoryException
- if there is a problem deriving the valuepublic java.lang.Object derivePropertyValue(java.lang.Object pBean) throws atg.repository.RepositoryException
pBean
- the bean representing a repository item whose property
value is desiredatg.repository.RepositoryException
- if there is a problem deriving the valuepublic boolean isQueryable()
public atg.repository.dp.RepositoryKeyService getKeyService()