public class DefaultCxConfigurationService extends java.lang.Object implements CxConfigurationService
CxConfigurationService.| Constructor and Description |
|---|
DefaultCxConfigurationService() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
actionExist(java.lang.String actionName) |
protected java.util.Set<RecalculateAction> |
actionsForAnonymous() |
protected CxCatalogLookupType |
catalogLookupType() |
protected java.util.Set<RecalculateAction> |
convertActions(java.util.Set<java.lang.String> actions) |
protected java.util.Set<RecalculateAction> |
defaultActionsForAnonymous() |
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()
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations() |
java.util.Set<RecalculateAction> |
getActionsForAnonymous(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel) |
protected BaseSiteService |
getBaseSiteService() |
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
|
protected ConfigurationService |
getConfigurationService() |
java.util.Set<java.lang.String> |
getConsentGivenActions()
Retrieves actions which should be called after user gives all required consents for current base site (returned by
BaseSiteService) configuration. |
java.util.Set<java.lang.String> |
getConsentGivenActions(BaseSiteModel baseSiteModel)
Retrieves actions which should be called after user gives all required consents for 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.
|
protected java.util.Optional<BaseSiteModel> |
getCurrentBaseSite() |
protected CxConfigurationLookupStrategy |
getCxConfigurationLookupStrategy() |
protected java.lang.Integer |
getDefaultActionResultMaxRepeat() |
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.
|
protected java.lang.String |
getDefaultCalculationProcessName() |
protected java.util.Set<java.lang.String> |
getDefaultConsentGivenActions() |
protected java.math.BigDecimal |
getDefaultMinAffinity() |
protected java.util.Set<java.lang.String> |
getDefaultUserChangedActions() |
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()
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations() |
java.lang.Integer |
getMinRequestNumberForAnonymousActions(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel) |
java.lang.Long |
getMinTimeForAnonymousActions()
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations() |
java.lang.Long |
getMinTimeForAnonymousActions(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel) |
java.util.Set<CxPeriodicVoterConfigModel> |
getPeriodicVoterConfigurations()
Retrieves list of periodic configurations with current base site returned by
BaseSiteService. |
java.util.Set<CxPeriodicVoterConfigModel> |
getPeriodicVoterConfigurations(BaseSiteModel baseSiteModel)
Retrieves list of periodic configurations with given base site.
|
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
|
protected java.lang.Boolean |
ignoreOtherActionsForAnonymous() |
protected java.lang.Boolean |
isDefaultIgnoreRecalcForAnonymous() |
java.lang.Boolean |
isIgnoreOtherActionsForAnonymous()
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations() |
java.lang.Boolean |
isIgnoreOtherActionsForAnonymous(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel) |
java.lang.Boolean |
isIgnoreRecalcForAnonymous()
Deprecated.
since 1808 because
AnonymousVoter which
handled it is not used anymore |
java.lang.Boolean |
isIgnoreRecalcForAnonymous(BaseSiteModel baseSiteModel)
Deprecated.
since 1808 because
AnonymousVoter which
handled it is not used anymore |
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
|
protected java.lang.Integer |
minRequestNumberForAnonymousActions() |
protected java.lang.Long |
minTimeForAnonymousActions() |
void |
setBaseSiteService(BaseSiteService baseSiteService) |
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setCxConfigurationLookupStrategy(CxConfigurationLookupStrategy cxConfigurationLookupStrategy) |
protected java.lang.Boolean |
userSegmentsStoreInSession() |
public java.util.Optional<CxConfigModel> getConfiguration()
CxConfigurationServiceBaseSiteService.getConfiguration in interface CxConfigurationServicepublic java.util.Optional<CxConfigModel> getConfiguration(BaseSiteModel baseSiteModel)
CxConfigurationServicegetConfiguration in interface CxConfigurationServicebaseSiteModel - base sitepublic <T> T getValue(CatalogVersionModel catalogVersion, java.util.function.Function<CxConfigModel,T> accessor, T defaultValue)
CxConfigurationServicegetValue in interface CxConfigurationServicecatalogVersion - 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)public java.lang.Integer getActionResultMaxRepeat()
CxConfigurationServiceBaseSiteService). 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.getActionResultMaxRepeat in interface CxConfigurationServicepublic java.lang.Integer getActionResultMaxRepeat(BaseSiteModel baseSiteModel)
CxConfigurationServicegetActionResultMaxRepeat in interface CxConfigurationServicebaseSiteModel - base sitepublic java.math.BigDecimal getMinAffinity()
CxConfigurationServiceBaseSiteService). If there is no configuration for current base site, it falls
back to *.property file based configuration retrieval.getMinAffinity in interface CxConfigurationServicepublic java.math.BigDecimal getMinAffinity(BaseSiteModel baseSiteModel)
CxConfigurationServicegetMinAffinity in interface CxConfigurationServicebaseSiteModel - base sitepublic java.util.Set<java.lang.String> getUserChangedActions()
CxConfigurationServiceBaseSiteService). If there is no configuration for current base site, it
falls back to *.property file based configuration retrieval.getUserChangedActions in interface CxConfigurationServicepublic java.util.Set<java.lang.String> getUserChangedActions(BaseSiteModel baseSiteModel)
CxConfigurationServicegetUserChangedActions in interface CxConfigurationServicebaseSiteModel - base sitepublic java.util.Set<java.lang.String> getConsentGivenActions()
CxConfigurationServiceBaseSiteService) configuration. If there is no configuration for current base site,
it falls back to *.property file based configuration retrieval.getConsentGivenActions in interface CxConfigurationServicepublic java.util.Set<java.lang.String> getConsentGivenActions(BaseSiteModel baseSiteModel)
CxConfigurationServicegetConsentGivenActions in interface CxConfigurationServicebaseSiteModel - base sitepublic java.util.List<CxUrlVoterConfigModel> getUrlVoterConfigurations()
CxConfigurationServiceBaseSiteService.getUrlVoterConfigurations in interface CxConfigurationServicepublic java.util.List<CxUrlVoterConfigModel> getUrlVoterConfigurations(BaseSiteModel baseSiteModel)
CxConfigurationServicegetUrlVoterConfigurations in interface CxConfigurationServicebaseSiteModel - base sitepublic java.lang.String getCalculationProcessName()
CxConfigurationServicegetCalculationProcessName in interface CxConfigurationServicepublic java.lang.String getCalculationProcessName(BaseSiteModel baseSiteModel)
CxConfigurationServicegetCalculationProcessName in interface CxConfigurationServicebaseSiteModel - base sitepublic java.util.Set<ConsentTemplateModel> getConsentTemplates()
CxConfigurationServicegetConsentTemplates in interface CxConfigurationServicepublic java.util.Set<ConsentTemplateModel> getConsentTemplates(BaseSiteModel baseSiteModel)
CxConfigurationServicegetConsentTemplates in interface CxConfigurationServicebaseSiteModel - base site@Deprecated public java.lang.Boolean isIgnoreRecalcForAnonymous()
AnonymousVoter which
handled it is not used anymoreCxConfigurationServiceisIgnoreRecalcForAnonymous in interface CxConfigurationService@Deprecated public java.lang.Boolean isIgnoreRecalcForAnonymous(BaseSiteModel baseSiteModel)
AnonymousVoter which
handled it is not used anymoreCxConfigurationServiceisIgnoreRecalcForAnonymous in interface CxConfigurationServicebaseSiteModel - base sitepublic java.util.Set<RecalculateAction> getDefaultActionsForAnonymous()
CxConfigurationServicegetDefaultActionsForAnonymous in interface CxConfigurationServicepublic java.util.Set<RecalculateAction> getDefaultActionsForAnonymous(BaseSiteModel baseSiteModel)
CxConfigurationServicegetDefaultActionsForAnonymous in interface CxConfigurationServicebaseSiteModel - base site@Deprecated public java.util.Set<RecalculateAction> getActionsForAnonymous()
CxConfigurationService.getPeriodicVoterConfigurations()getActionsForAnonymous in interface CxConfigurationService@Deprecated public java.util.Set<RecalculateAction> getActionsForAnonymous(BaseSiteModel baseSiteModel)
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel)getActionsForAnonymous in interface CxConfigurationServicebaseSiteModel - base site@Deprecated public java.lang.Integer getMinRequestNumberForAnonymousActions()
CxConfigurationService.getPeriodicVoterConfigurations()getMinRequestNumberForAnonymousActions in interface CxConfigurationService@Deprecated public java.lang.Integer getMinRequestNumberForAnonymousActions(BaseSiteModel baseSiteModel)
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel)getMinRequestNumberForAnonymousActions in interface CxConfigurationServicebaseSiteModel - base site@Deprecated public java.lang.Long getMinTimeForAnonymousActions()
CxConfigurationService.getPeriodicVoterConfigurations()getMinTimeForAnonymousActions in interface CxConfigurationService@Deprecated public java.lang.Long getMinTimeForAnonymousActions(BaseSiteModel baseSiteModel)
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel)getMinTimeForAnonymousActions in interface CxConfigurationServicebaseSiteModel - base site@Deprecated public java.lang.Boolean isIgnoreOtherActionsForAnonymous()
CxConfigurationService.getPeriodicVoterConfigurations()isIgnoreOtherActionsForAnonymous in interface CxConfigurationService@Deprecated public java.lang.Boolean isIgnoreOtherActionsForAnonymous(BaseSiteModel baseSiteModel)
CxConfigurationService.getPeriodicVoterConfigurations(BaseSiteModel)isIgnoreOtherActionsForAnonymous in interface CxConfigurationServicebaseSiteModel - base sitepublic CxCatalogLookupType getCatalogLookupType()
CxConfigurationServicegetCatalogLookupType in interface CxConfigurationServicepublic CxCatalogLookupType getCatalogLookupType(BaseSiteModel baseSiteModel)
CxConfigurationServicegetCatalogLookupType in interface CxConfigurationServicebaseSiteModel - base sitepublic java.lang.Boolean isUserSegmentsStoreInSession()
CxConfigurationServiceisUserSegmentsStoreInSession in interface CxConfigurationServicepublic java.lang.Boolean isUserSegmentsStoreInSession(BaseSiteModel baseSite)
CxConfigurationServiceisUserSegmentsStoreInSession in interface CxConfigurationServicebaseSite - Base sitepublic java.util.Set<CxPeriodicVoterConfigModel> getPeriodicVoterConfigurations()
CxConfigurationServiceBaseSiteService.getPeriodicVoterConfigurations in interface CxConfigurationServicepublic java.util.Set<CxPeriodicVoterConfigModel> getPeriodicVoterConfigurations(BaseSiteModel baseSiteModel)
CxConfigurationServicegetPeriodicVoterConfigurations in interface CxConfigurationServicebaseSiteModel - base siteprotected java.lang.String getDefaultCalculationProcessName()
protected java.lang.Integer getDefaultActionResultMaxRepeat()
protected java.math.BigDecimal getDefaultMinAffinity()
protected java.util.Set<java.lang.String> getDefaultUserChangedActions()
protected java.util.Set<java.lang.String> getDefaultConsentGivenActions()
protected java.lang.Boolean isDefaultIgnoreRecalcForAnonymous()
protected java.util.Optional<BaseSiteModel> getCurrentBaseSite()
protected java.util.Set<RecalculateAction> defaultActionsForAnonymous()
protected java.util.Set<RecalculateAction> actionsForAnonymous()
protected java.lang.Integer minRequestNumberForAnonymousActions()
protected java.lang.Long minTimeForAnonymousActions()
protected java.lang.Boolean ignoreOtherActionsForAnonymous()
protected CxCatalogLookupType catalogLookupType()
protected java.util.Set<RecalculateAction> convertActions(java.util.Set<java.lang.String> actions)
protected boolean actionExist(java.lang.String actionName)
protected java.lang.Boolean userSegmentsStoreInSession()
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
protected CxConfigurationLookupStrategy getCxConfigurationLookupStrategy()
public void setCxConfigurationLookupStrategy(CxConfigurationLookupStrategy cxConfigurationLookupStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.