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()
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations()
Returns set of actions executed for anonymous user for current base site. |
java.util.Set<RecalculateAction> |
getActionsForAnonymous(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations(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<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.
|
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()
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations()
Returns number of subsequent requests after which actions for anonymous user should be executed. |
java.lang.Integer |
getMinRequestNumberForAnonymousActions(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations(BaseSiteModel)
Returns number of subsequent requests after which actions for anonymous user should be executed. |
java.lang.Long |
getMinTimeForAnonymousActions()
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations()
Returns time in [ms] between executing actions for anonymous user. |
java.lang.Long |
getMinTimeForAnonymousActions(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations(BaseSiteModel)
Returns time in [ms] between executing actions for anonymous user. |
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
|
java.lang.Boolean |
isIgnoreOtherActionsForAnonymous()
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations()
Checks if actions from other voters should be ignored for anonymous user. |
java.lang.Boolean |
isIgnoreOtherActionsForAnonymous(BaseSiteModel baseSiteModel)
Deprecated.
As of release 1808, use
getPeriodicVoterConfigurations(BaseSiteModel)
Checks if actions from other voters should be ignored for anonymous user. |
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
|
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.Set<java.lang.String> getConsentGivenActions()
BaseSiteService) configuration. If there is no configuration for current base site,
it falls back to *.property file based configuration retrieval.java.util.Set<java.lang.String> getConsentGivenActions(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 site@Deprecated java.lang.Boolean isIgnoreRecalcForAnonymous()
AnonymousVoter which
handled it is not used anymore@Deprecated java.lang.Boolean isIgnoreRecalcForAnonymous(BaseSiteModel baseSiteModel)
AnonymousVoter which
handled it is not used anymorebaseSiteModel - base sitejava.util.Set<RecalculateAction> getDefaultActionsForAnonymous()
java.util.Set<RecalculateAction> getDefaultActionsForAnonymous(BaseSiteModel baseSiteModel)
baseSiteModel - base site@Deprecated java.util.Set<RecalculateAction> getActionsForAnonymous()
getPeriodicVoterConfigurations()
Returns set of actions executed for anonymous user for current base site.@Deprecated java.util.Set<RecalculateAction> getActionsForAnonymous(BaseSiteModel baseSiteModel)
getPeriodicVoterConfigurations(BaseSiteModel)
Returns set of actions executed for anonymous user for given base site.baseSiteModel - base site@Deprecated java.lang.Integer getMinRequestNumberForAnonymousActions()
getPeriodicVoterConfigurations()
Returns number of subsequent requests after which actions for anonymous user should be executed.@Deprecated java.lang.Integer getMinRequestNumberForAnonymousActions(BaseSiteModel baseSiteModel)
getPeriodicVoterConfigurations(BaseSiteModel)
Returns number of subsequent requests after which actions for anonymous user should be executed.baseSiteModel - base site@Deprecated java.lang.Long getMinTimeForAnonymousActions()
getPeriodicVoterConfigurations()
Returns time in [ms] between executing actions for anonymous user.@Deprecated java.lang.Long getMinTimeForAnonymousActions(BaseSiteModel baseSiteModel)
getPeriodicVoterConfigurations(BaseSiteModel)
Returns time in [ms] between executing actions for anonymous user.baseSiteModel - base site@Deprecated java.lang.Boolean isIgnoreOtherActionsForAnonymous()
getPeriodicVoterConfigurations()
Checks if actions from other voters should be ignored for anonymous user.@Deprecated java.lang.Boolean isIgnoreOtherActionsForAnonymous(BaseSiteModel baseSiteModel)
getPeriodicVoterConfigurations(BaseSiteModel)
Checks if actions from other voters should be ignored for anonymous user.baseSiteModel - base siteCxCatalogLookupType getCatalogLookupType()
CxCatalogLookupType getCatalogLookupType(BaseSiteModel baseSiteModel)
baseSiteModel - base sitejava.lang.Boolean isUserSegmentsStoreInSession()
java.lang.Boolean isUserSegmentsStoreInSession(BaseSiteModel baseSite)
baseSite - Base sitejava.util.Set<CxPeriodicVoterConfigModel> getPeriodicVoterConfigurations()
BaseSiteService.java.util.Set<CxPeriodicVoterConfigModel> getPeriodicVoterConfigurations(BaseSiteModel baseSiteModel)
baseSiteModel - base siteCopyright © 2018 SAP SE. All Rights Reserved.