public interface CxConfigurationService
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getActionResultMaxRepeat()
Retrieves number of retires in case of action result load error caused by optimistic locking failure from
configuration retrieved with current base site (returned by
BaseSiteService). |
java.lang.Integer |
getActionResultMaxRepeat(BaseSiteModel baseSiteModel)
Retrieves number of retires in case of action result load error caused by optimistic locking failure from
configuration retrieved with given base site.
|
java.util.Set<RecalculateAction> |
getActionsForAnonymous()
Returns set of actions executed for anonymous user for current base site.
|
java.util.Set<RecalculateAction> |
getActionsForAnonymous(BaseSiteModel baseSiteModel)
Returns set of actions executed for anonymous user for given base site.
|
java.lang.String |
getCalculationProcessName()
Retrieves calculation process name for current base site.
|
java.lang.String |
getCalculationProcessName(BaseSiteModel baseSiteModel)
Retrieves calculation process name for given base site.
|
CxCatalogLookupType |
getCatalogLookupType()
Returns Catalog lookup type configured for default base site.
|
CxCatalogLookupType |
getCatalogLookupType(BaseSiteModel baseSiteModel)
Returns Catalog lookup type configured for given base site.
|
java.util.Optional<CxConfigModel> |
getConfiguration()
Retrieves configuration with current base site returned by
BaseSiteService. |
java.util.Optional<CxConfigModel> |
getConfiguration(BaseSiteModel baseSiteModel)
Retrieves configuration with given base site
|
java.util.Set<ConsentTemplateModel> |
getConsentTemplates()
Retrieve ConsentTemplates for personalization for current base site.
|
java.util.Set<ConsentTemplateModel> |
getConsentTemplates(BaseSiteModel baseSiteModel)
Retrieve ConsentTemplates for personalization for for given base site.
|
java.util.Set<RecalculateAction> |
getDefaultActionsForAnonymous()
Returns first set of actions executed for anonymous user for current base site.
|
java.util.Set<RecalculateAction> |
getDefaultActionsForAnonymous(BaseSiteModel baseSiteModel)
Returns first set of actions executed for anonymous user for given base site.
|
java.math.BigDecimal |
getMinAffinity()
Retrieves minimum affinity for user to segment relation from configuration retrieved with current base site
(returned by
BaseSiteService). |
java.math.BigDecimal |
getMinAffinity(BaseSiteModel baseSiteModel)
Retrieves minimum affinity for user to segment relation from configuration retrieved with given base site.
|
java.lang.Integer |
getMinRequestNumberForAnonymousActions()
Returns number of subsequent requests after which actions for anonymous user should be executed.
|
java.lang.Integer |
getMinRequestNumberForAnonymousActions(BaseSiteModel baseSiteModel)
Returns number of subsequent requests after which actions for anonymous user should be executed.
|
java.lang.Long |
getMinTimeForAnonymousActions()
Returns time in [ms] between executing actions for anonymous user.
|
java.lang.Long |
getMinTimeForAnonymousActions(BaseSiteModel baseSiteModel)
Returns time in [ms] between executing actions for anonymous user.
|
java.util.List<CxUrlVoterConfigModel> |
getUrlVoterConfigurations()
Retrieves list of url voter configurations with current base site returned by
BaseSiteService. |
java.util.List<CxUrlVoterConfigModel> |
getUrlVoterConfigurations(BaseSiteModel baseSiteModel)
Retrieves list of url voter configurations with given base site.
|
java.util.Set<java.lang.String> |
getUserChangedActions()
Retrieves actions which should be called after user changed event from configuration retrieved with current base
site (returned by
BaseSiteService). |
java.util.Set<java.lang.String> |
getUserChangedActions(BaseSiteModel baseSiteModel)
Retrieves actions which should be called after user changed event from configuration retrieved with given base
site.
|
<T> T |
getValue(CatalogVersionModel catalogVersion,
java.util.function.Function<CxConfigModel,T> accessor,
T defaultValue)
Retrieves configuration attribute value
|
java.lang.Boolean |
isIgnoreOtherActionsForAnonymous()
Checks if actions from other voters should be ignored for anonymous user.
|
java.lang.Boolean |
isIgnoreOtherActionsForAnonymous(BaseSiteModel baseSiteModel)
Checks if actions from other voters should be ignored for anonymous user.
|
java.lang.Boolean |
isIgnoreRecalcForAnonymous()
Checks if experience recalculation should be ignored for anonymous user for current base site.
|
java.lang.Boolean |
isIgnoreRecalcForAnonymous(BaseSiteModel baseSiteModel)
Checks if experience recalculation should be ignored for anonymous user for given base site.
|
java.lang.Boolean |
isUserSegmentsStoreInSession()
Checks if user segments should be stored in session and save to database after session ends
|
java.lang.Boolean |
isUserSegmentsStoreInSession(BaseSiteModel baseSite)
Checks if user segments should be stored in session and save to database after session ends
|
java.util.Optional<CxConfigModel> getConfiguration()
BaseSiteService.java.util.Optional<CxConfigModel> getConfiguration(BaseSiteModel baseSiteModel)
baseSiteModel - base site<T> T getValue(CatalogVersionModel catalogVersion, java.util.function.Function<CxConfigModel,T> accessor, T defaultValue)
catalogVersion - Catalog versionaccessor - Function which returns attribute value from configuration objectdefaultValue - Default value of attribute which will be returned in case attribute is not set in configuration or there
are conflicting values in configurations related to catalog version (because in current model there can
be more than one configuration related to catalog version)java.lang.Integer getActionResultMaxRepeat()
BaseSiteService). If
there is no current base site in session or there is no configuration for current base site, it falls back to
*.property file based configuration retrieval.java.lang.Integer getActionResultMaxRepeat(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.math.BigDecimal getMinAffinity()
BaseSiteService). If there is no configuration for current base site,
it falls back to *.property file based configuration retrieval.java.math.BigDecimal getMinAffinity(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.util.Set<java.lang.String> getUserChangedActions()
BaseSiteService). If there is no configuration for current base
site, it falls back to *.property file based configuration retrieval.java.util.Set<java.lang.String> getUserChangedActions(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.util.List<CxUrlVoterConfigModel> getUrlVoterConfigurations()
BaseSiteService.java.util.List<CxUrlVoterConfigModel> getUrlVoterConfigurations(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.String getCalculationProcessName()
java.lang.String getCalculationProcessName(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.util.Set<ConsentTemplateModel> getConsentTemplates()
java.util.Set<ConsentTemplateModel> getConsentTemplates(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.Boolean isIgnoreRecalcForAnonymous()
java.lang.Boolean isIgnoreRecalcForAnonymous(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.util.Set<RecalculateAction> getDefaultActionsForAnonymous()
java.util.Set<RecalculateAction> getDefaultActionsForAnonymous(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.util.Set<RecalculateAction> getActionsForAnonymous()
java.util.Set<RecalculateAction> getActionsForAnonymous(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.Integer getMinRequestNumberForAnonymousActions()
java.lang.Integer getMinRequestNumberForAnonymousActions(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.Long getMinTimeForAnonymousActions()
java.lang.Long getMinTimeForAnonymousActions(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.Boolean isIgnoreOtherActionsForAnonymous()
java.lang.Boolean isIgnoreOtherActionsForAnonymous(BaseSiteModel baseSiteModel)
baseSiteModel - base siteCxCatalogLookupType getCatalogLookupType()
CxCatalogLookupType getCatalogLookupType(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.Boolean isUserSegmentsStoreInSession()
java.lang.Boolean isUserSegmentsStoreInSession(BaseSiteModel baseSite)
baseSite - Base siteCopyright © 2018 SAP SE. All Rights Reserved.