|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElasticPath
ElasticPath
provides configuration and context information to a number of clients across the system.
Method Summary | |
---|---|
void |
clearAllAttributeRanges()
Clears all attribute range information, including bottom level attribute ranges. |
void |
clearAllAttributeSimpleValues()
Clears all attribute simple value information. |
void |
clearAllPriceRanges()
Clears all price range information, including bottom level price ranges. |
java.lang.String |
get(java.lang.String name)
Return the value of a given property name. |
java.lang.String |
get(java.lang.String name,
java.lang.String defaultValue)
Return the value of a given property name. |
float |
getAccuracy()
Returns the degree of similarity that a word must have to the original word in order to be suggested. |
java.util.Map |
getAll()
Return name and values of all properties as a map. |
java.util.Map |
getAllAttributeRanges()
Returns all defined attribute ranges as a Map . |
java.util.Map |
getAllAttributeSimpleValues()
Returns all defined attribute simple value filters as a Map . |
java.util.Map |
getAllAttributesMap()
This map contains all the attribute defined in the guided-navigation.xml. |
java.util.Map |
getAllCurrencies()
Return all supported currencies. |
java.util.Map |
getAllLocales()
Get a map of all supported locales. |
java.util.Map |
getAllPriceRanges()
Returns all defined price ranges as a Map . |
java.util.List |
getAllShipmentCarriers()
Return all supported shipment carrier. |
java.util.SortedMap |
getAttributeSimpleValuesMap(java.lang.String attributeCode)
Returns attribute values of the given attributeCode, which are defined at the attribute section. |
java.lang.Object |
getBean(java.lang.String name)
Get the bean with the given id from spring application context. |
java.util.Map |
getBoolMap()
Returns a map used by Spring/Velocity for checkboxes. |
java.util.SortedMap |
getBottomLevelAttributeRanges(java.lang.String attributeCode)
Returns attribute ranges of the given attributeCode, which are defined at bottom level of the attribute-range-tree. |
java.util.SortedMap |
getBottomLevelPriceRanges(java.util.Currency currency)
Returns price ranges of the given currency, which are defined at bottom level of the price-range-tree. |
java.lang.String |
getCatalogAssetPath()
Return the absolute asset directory path. |
int |
getCatalogViewPagination()
Return the catalog view pagination. |
CheckoutTransactionBehaviour |
getCheckoutTransactionBehaviour()
Return the CheckoutTransactionBehaviour object that defines how a
checkout transaction is to be processed. |
java.lang.String |
getCmContextUrl()
Return the commerce manager context URL. |
java.lang.String |
getContentEncoding()
Returns the content encoding. |
Geography |
getCountries()
Return a Geography that provides geographical information. |
java.util.Map |
getCustomerProfileAttributes()
Returns a map of all customer profile attributes. |
java.sql.DatabaseMetaData |
getDatabaseMetaData()
Return database meta data. |
java.lang.String |
getDatabaseProductName()
Return the database product name in use. |
java.lang.String |
getDataFileEncoding()
Returns the data file encoding. |
java.lang.String |
getDefaultCountry()
Returns the default country. |
java.util.Currency |
getDefaultCurrency()
Returns the default currency. |
java.text.SimpleDateFormat |
getDefaultDateFormat()
Returns the default date format. |
java.util.Locale |
getDefaultLocale()
Returns the system default locale. |
java.lang.String |
getEmailCmUrl()
Return the URL of the Commerce Manager to be used only in email messages. |
java.lang.String |
getEmailStoreUrl()
Return the URL of the store to be used only in email messages. |
java.lang.String |
getEpBuildNo()
Returns the Elastic Path build number. |
java.lang.String |
getEpVersion()
Returns the Elastic Path version number. |
java.lang.String |
getFileAssetPath()
Return the file asset directory path. |
java.lang.String |
getFileAssetSubFolder()
Return the file asset sub folder name. |
Geography |
getGeography()
Return a Geography that provides geographical information. |
java.lang.String |
getImageAssetSubFolder()
Return the image asset sub folder name. |
java.lang.String |
getImagePath()
Return the absolute images directory path. |
java.lang.String |
getImageUrl()
Return the image URL. |
float |
getJPEGQuality()
Returns the jpeg quality. |
java.util.Map |
getLocaleToLanguageMap()
Get a map of supported locales mapped to their language names. |
int |
getMaximumSuggestions()
Returns the maximum number of suggestions that will be returned with the search results. |
int |
getMaximumSuggestionsPerWord()
Returns the maximum number of suggestions per word that will be generated when generating search suggestions. |
int |
getMaxReturnNumber()
Returns the number of maximum results to return to the search client as the search result. |
java.lang.String |
getMessage(java.lang.String code,
java.lang.Object[] args,
java.lang.String defaultMessage,
java.util.Locale locale)
Gets the localized message. |
java.lang.String |
getMessageDefaultLocale(java.lang.String code,
java.lang.Object[] args,
java.lang.String defaultMessage)
Gets the localized message. |
int |
getMinimumResultsThreshold()
Returns the number of search results that, if not exceeded will trigger the generation of search suggestions. |
float |
getMinimumSimilarity()
Returns the minimum similarity fuzzy search setting, value should be between 0 and 1. |
java.lang.String |
getNoImage()
Returns the default image. |
PaymentGateway |
getPaymentGateway(PaymentType paymentType)
Get the payment gateway for the given payment type (e.g. |
int |
getPowerReviewsMerchantId()
Returns the PowerReviews merchant id. |
int |
getPrefixLength()
Returns the fuzzy search setting for the length of common non-fuzzy prefix. |
java.util.Map |
getPropertiesWithNameStartsWith(java.lang.String prefix)
Return name and values of those properties that start with the given string. |
java.lang.String |
getSecureAssetPath()
Return the absolute secure asset (digital goods) directory path. |
java.lang.String |
getSecureAssetSubFolder()
Return the secure asset (digital goods) sub folder name. |
java.lang.String |
getSfContextUrl()
Return the store front context URL. |
int |
getTopSellerCount()
Returns the number of top seller products to display. |
java.lang.String |
getUnitsLength()
Returns the unit measurement of length. |
java.lang.String |
getUnitsWeight()
Returns the unit measurement of weigth. |
int |
getUserIdMode()
Return the mode to generate user Id. |
int |
getUserMaintainMode()
Return the user maintenance mode. |
Utility |
getUtility()
Returns the Utility instance. |
org.springframework.web.context.WebApplicationContext |
getWebApplicationContext()
Return the web application context. |
java.lang.String |
getWebInfPath()
Return the absolute WEB-INF directory path. |
boolean |
isAttributeFilterEnabled()
check the attributeFilter is enabled. |
boolean |
isPowerReviewsEnabled()
Returns true if PowerReviews has been enabled, otherwise, false . |
boolean |
isSeoEnabled()
Returns true if SEO(Search Engine Optimization) has been enabled, otherwise, false . |
void |
setAccuracy(float accuracy)
Sets the degree of similarity that a word must have to the original word in order to be suggested. |
void |
setCheckoutTransactionBehaviour(CheckoutTransactionBehaviour behaviour)
Sets the checkoutTransactionBehaviour that defines how a checkout
transaction is processed. |
void |
setCustomerProfileAttributes(java.util.Map customerProfileAttributes)
Sets the customer profile attribute map. |
void |
setDatabaseMetaData(java.sql.DatabaseMetaData databaseMetaData)
Called in EPContextListener to set the DatabaseMetaData at the start up time. |
void |
setMaximumSuggestions(int suggestions)
Sets the maximum number of suggestions that will be returned with the search results. |
void |
setMaximumSuggestionsPerWord(int maximumSuggestionsPerWord)
Sets the maximum number of suggestions per word that will be generated when generating search suggestions. |
void |
setMaxReturnNumber(int number)
Sets the number of maximum results to return to the search client as the search result. |
void |
setMinimumResultsThreshold(int minimumResultsThreshold)
Sets the number of search results that, if not exceeded will trigger the generation of search suggestions. |
void |
setMinimumSimilarity(float minimumSimilarity)
Sets the minimum similarity fuzzy search setting, value should be between 0 and 1. |
void |
setPaymentGatewayMap(java.util.Map paymentGatewayMap)
Set the payment gateway map, keyed by the payment type (e.g. |
void |
setPrefixLength(int prefixLength)
Sets fuzzy search setting for the length of common non-fuzzy prefix. |
void |
setProperties(java.util.Map properties)
Set the properties. |
void |
setWebApplicationContext(org.springframework.web.context.WebApplicationContext context)
Set the web application context. |
void |
setWebInfPath(java.lang.String webInfPath)
Set the absolute path to the WEB-INF directory. |
Method Detail |
---|
void clearAllAttributeRanges()
void clearAllAttributeSimpleValues()
void clearAllPriceRanges()
java.lang.String get(java.lang.String name)
name
- the property name to retrieve
java.lang.String get(java.lang.String name, java.lang.String defaultValue)
name
- the property name to retrievedefaultValue
- the default value to return if the given property is not defined
float getAccuracy()
java.util.Map getAll()
java.util.Map getAllAttributeRanges()
Map
.
The attribute code will be used as the map key .
And the value will be a AttributeRangeFilter
.
Map
.java.util.Map getAllAttributeSimpleValues()
Map
.
The filter id will be used as the map key .
And the value will be a AttributeFilter
.
Map
.java.util.Map getAllAttributesMap()
Attribute
.
java.util.Map getAllCurrencies()
java.util.Map getAllLocales()
Locale
objectjava.util.Map getAllPriceRanges()
Map
.
The key will be like : "price-between-USD-90-and-100".
And the value will be a PriceFilter
.
Map
.java.util.List getAllShipmentCarriers()
java.util.SortedMap getAttributeSimpleValuesMap(java.lang.String attributeCode)
AttributeValueFilter
.
attributeCode
- the attributeCode
java.lang.Object getBean(java.lang.String name)
name
- bean id
java.util.Map getBoolMap()
java.util.SortedMap getBottomLevelAttributeRanges(java.lang.String attributeCode)
Product
to decide which attribute range it should belongs to.
The key and the value will be the same AttributeRangeFilter
.
attributeCode
- the attributeCode
java.util.SortedMap getBottomLevelPriceRanges(java.util.Currency currency)
Product
to decide which price range it should belongs to.
The key and the value will be the same PriceFilter
.
currency
- the currency
java.lang.String getCatalogAssetPath()
int getCatalogViewPagination()
CheckoutTransactionBehaviour getCheckoutTransactionBehaviour()
CheckoutTransactionBehaviour
object that defines how a
checkout transaction is to be processed.
CheckoutTransactionBehaviour
objectjava.lang.String getCmContextUrl()
java.lang.String getContentEncoding()
Geography getCountries()
Geography
that provides geographical information.
Geography
objectjava.util.Map getCustomerProfileAttributes()
java.sql.DatabaseMetaData getDatabaseMetaData()
java.lang.String getDatabaseProductName()
java.lang.String getDataFileEncoding()
java.lang.String getDefaultCountry()
java.util.Currency getDefaultCurrency()
java.text.SimpleDateFormat getDefaultDateFormat()
java.util.Locale getDefaultLocale()
java.lang.String getEmailCmUrl()
java.lang.String getEmailStoreUrl()
java.lang.String getEpBuildNo()
java.lang.String getEpVersion()
java.lang.String getFileAssetPath()
java.lang.String getFileAssetSubFolder()
Geography getGeography()
Geography
that provides geographical information.
Geography
objectjava.lang.String getImageAssetSubFolder()
java.lang.String getImagePath()
java.lang.String getImageUrl()
float getJPEGQuality()
java.util.Map getLocaleToLanguageMap()
int getMaximumSuggestions()
int getMaximumSuggestionsPerWord()
int getMaxReturnNumber()
java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage, java.util.Locale locale)
code
- - the message key.args
- - the args for the message if needed.defaultMessage
- - the default message to display if the given message key does not exist.locale
- - the locale that message needs to be in.
java.lang.String getMessageDefaultLocale(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage)
code
- - the message key.args
- - the args for the message if needed.defaultMessage
- - the default message to display if the given message key does not exists.
int getMinimumResultsThreshold()
float getMinimumSimilarity()
java.lang.String getNoImage()
PaymentGateway getPaymentGateway(PaymentType paymentType)
paymentType
- the payment type
int getPowerReviewsMerchantId()
int getPrefixLength()
java.util.Map getPropertiesWithNameStartsWith(java.lang.String prefix)
prefix
- the prefix of the name
java.lang.String getSecureAssetPath()
java.lang.String getSecureAssetSubFolder()
java.lang.String getSfContextUrl()
int getTopSellerCount()
java.lang.String getUnitsLength()
java.lang.String getUnitsWeight()
int getUserIdMode()
int getUserMaintainMode()
Utility getUtility()
Utility
instance.
org.springframework.web.context.WebApplicationContext getWebApplicationContext()
java.lang.String getWebInfPath()
boolean isAttributeFilterEnabled()
boolean isPowerReviewsEnabled()
true
if PowerReviews has been enabled, otherwise, false
.
true
if PowerReviews has been enabled, otherwise, false
boolean isSeoEnabled()
true
if SEO(Search Engine Optimization) has been enabled, otherwise, false
.
true
if SEO(Search Engine Optimization) has been enabled, otherwise, false
void setAccuracy(float accuracy)
accuracy
- the similarityvoid setCheckoutTransactionBehaviour(CheckoutTransactionBehaviour behaviour)
checkoutTransactionBehaviour
that defines how a checkout
transaction is processed.
behaviour
- the behaviour enum objectvoid setCustomerProfileAttributes(java.util.Map customerProfileAttributes)
customerProfileAttributes
- the customer profile attributes mapvoid setDatabaseMetaData(java.sql.DatabaseMetaData databaseMetaData) throws EpSystemException
EPContextListener
to set the DatabaseMetaData at the start up time.
databaseMetaData
- Database metadata.
EpSystemException
- in case of any errorvoid setMaximumSuggestions(int suggestions)
suggestions
- the maximum number of suggestionsvoid setMaximumSuggestionsPerWord(int maximumSuggestionsPerWord)
maximumSuggestionsPerWord
- the maximum number of suggestions per wordvoid setMaxReturnNumber(int number)
number
- the number of maximum results to return, set it to 0 for no limit.void setMinimumResultsThreshold(int minimumResultsThreshold)
minimumResultsThreshold
- the minimum results thresholdvoid setMinimumSimilarity(float minimumSimilarity)
minimumSimilarity
- the minimum similarity fuzzy search settingvoid setPaymentGatewayMap(java.util.Map paymentGatewayMap)
paymentGatewayMap
- the payment gateway map.void setPrefixLength(int prefixLength)
prefixLength
- length of common non-fuzzy prefixvoid setProperties(java.util.Map properties)
properties
- the propertiesvoid setWebApplicationContext(org.springframework.web.context.WebApplicationContext context)
context
- the web application context to set.void setWebInfPath(java.lang.String webInfPath)
webInfPath
- the absolute path
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |