Class DefaultCxOccAttributesStrategy
- java.lang.Object
-
- de.hybris.platform.personalizationservices.occ.impl.DefaultCxOccAttributesStrategy
-
- All Implemented Interfaces:
CxOccAttributesStrategy
@Deprecated(since="2005", forRemoval=true) public class DefaultCxOccAttributesStrategy extends java.lang.Object implements CxOccAttributesStrategyDeprecated, for removal: This API element is subject to removal in a future version.since 2005 - use CxOccAttributesFromHeaderStrategy class instead
-
-
Constructor Summary
Constructors Constructor Description DefaultCxOccAttributesStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ConfigurationServicegetConfigurationService()Deprecated, for removal: This API element is subject to removal in a future version.protected CxConfigurationServicegetCxConfigurationService()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetPersonalizationIdCookie()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetPersonalizationIdHeader()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetPersonalizationTimeCookie()Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.StringgetPersonalizationTimeHeader()Deprecated, for removal: This API element is subject to removal in a future version.protected TimeServicegetTimeService()Deprecated, for removal: This API element is subject to removal in a future version.protected booleanisPersonalizationCookieEnabled()Deprecated, for removal: This API element is subject to removal in a future version.java.util.Optional<java.lang.Long>readPersonalizationCalculationTime(javax.servlet.http.HttpServletRequest request)Deprecated, for removal: This API element is subject to removal in a future version.Read personalization calculation timejava.util.Optional<java.lang.String>readPersonalizationId(javax.servlet.http.HttpServletRequest request)Deprecated, for removal: This API element is subject to removal in a future version.Read personalization identifierprotected <T> java.util.Optional<T>readValueFromRequest(javax.servlet.http.HttpServletRequest request, java.util.function.Supplier<java.lang.String> headerNameSupplier, java.util.function.Supplier<java.lang.String> cookieNameSupplier, java.util.function.Function<java.lang.String,T> valueMaper)Deprecated, for removal: This API element is subject to removal in a future version.protected java.lang.LongsafeValueOf(java.lang.String value)Deprecated, for removal: This API element is subject to removal in a future version.voidsetConfigurationService(ConfigurationService configurationService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetCxConfigurationService(CxConfigurationService cxConfigurationService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetPersonalizationCalculationTime(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated, for removal: This API element is subject to removal in a future version.Set personalization calculation timevoidsetPersonalizationId(java.lang.String personalizationId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated, for removal: This API element is subject to removal in a future version.Set personalization identifiervoidsetTimeService(TimeService timeService)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
setPersonalizationId
public void setPersonalizationId(java.lang.String personalizationId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CxOccAttributesStrategySet personalization identifier- Specified by:
setPersonalizationIdin interfaceCxOccAttributesStrategy- Parameters:
personalizationId- personalization identifier to setrequest- Http requestresponse- Http reponse
-
readPersonalizationId
public java.util.Optional<java.lang.String> readPersonalizationId(javax.servlet.http.HttpServletRequest request)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CxOccAttributesStrategyRead personalization identifier- Specified by:
readPersonalizationIdin interfaceCxOccAttributesStrategy- Parameters:
request- Http request- Returns:
- personalization identifier
-
setPersonalizationCalculationTime
public void setPersonalizationCalculationTime(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CxOccAttributesStrategySet personalization calculation time- Specified by:
setPersonalizationCalculationTimein interfaceCxOccAttributesStrategy- Parameters:
request- Http requestresponse- Http response
-
readPersonalizationCalculationTime
public java.util.Optional<java.lang.Long> readPersonalizationCalculationTime(javax.servlet.http.HttpServletRequest request)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CxOccAttributesStrategyRead personalization calculation time- Specified by:
readPersonalizationCalculationTimein interfaceCxOccAttributesStrategy- Parameters:
request- Http request- Returns:
- personalization calculation time as epoch time
-
readValueFromRequest
protected <T> java.util.Optional<T> readValueFromRequest(javax.servlet.http.HttpServletRequest request, java.util.function.Supplier<java.lang.String> headerNameSupplier, java.util.function.Supplier<java.lang.String> cookieNameSupplier, java.util.function.Function<java.lang.String,T> valueMaper)Deprecated, for removal: This API element is subject to removal in a future version.
-
safeValueOf
protected java.lang.Long safeValueOf(java.lang.String value)
Deprecated, for removal: This API element is subject to removal in a future version.
-
isPersonalizationCookieEnabled
protected boolean isPersonalizationCookieEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPersonalizationIdHeader
protected java.lang.String getPersonalizationIdHeader()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPersonalizationIdCookie
protected java.lang.String getPersonalizationIdCookie()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPersonalizationTimeHeader
protected java.lang.String getPersonalizationTimeHeader()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPersonalizationTimeCookie
protected java.lang.String getPersonalizationTimeCookie()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getTimeService
protected TimeService getTimeService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setTimeService
public void setTimeService(TimeService timeService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getConfigurationService
protected ConfigurationService getConfigurationService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCxConfigurationService
protected CxConfigurationService getCxConfigurationService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCxConfigurationService
public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-