Class DefaultUrlEncoderFacade
java.lang.Object
de.hybris.platform.acceleratorfacades.urlencoder.impl.DefaultUrlEncoderFacade
- All Implemented Interfaces:
UrlEncoderFacade
Facade implementation for UrlEncoding attributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateAndUpdateUrlEncodingData(String uri, String contextPath) Gets the urlEncoding pattern that has to be injected into the URL.protected StringextractEncodingPattern(List<UrlEncoderData> urlEncodingAttributes) Gets the list of attributes and it's values that has to be encoded in the url.protected SessionServiceprotected UrlEncoderServicebooleanChecks if the given urlEncodingAttribute holds a valid value for injection into the URL.voidsetSessionService(SessionService sessionService) voidsetUrlEncoderService(UrlEncoderService urlEncoderService) voidUpdates the Store/Site based on the change in value of the urlEncodingAttributes.protected voidwriteDebugLog(String message)
-
Constructor Details
-
DefaultUrlEncoderFacade
public DefaultUrlEncoderFacade()
-
-
Method Details
-
isValid
Description copied from interface:UrlEncoderFacadeChecks if the given urlEncodingAttribute holds a valid value for injection into the URL.- Specified by:
isValidin interfaceUrlEncoderFacade- Parameters:
attributeName- encodoing attribute name to checkvalue- encoding attribute value to check- Returns:
- boolean
-
extractEncodingPattern
-
getCurrentUrlEncodingData
Description copied from interface:UrlEncoderFacadeGets the list of attributes and it's values that has to be encoded in the url. The list of attributes for each site will be configured inCMSSiteModeland the data objects that holds the attributes and it's values will be set in SessionService attributes.- Specified by:
getCurrentUrlEncodingDatain interfaceUrlEncoderFacade- Returns:
- List of
UrlEncoderDataobjects that holds the encoding attribute's values.
-
updateSiteFromUrlEncodingData
public void updateSiteFromUrlEncodingData()Description copied from interface:UrlEncoderFacadeUpdates the Store/Site based on the change in value of the urlEncodingAttributes. Only specific encoding attributes are allowed to change the site.- Specified by:
updateSiteFromUrlEncodingDatain interfaceUrlEncoderFacade
-
calculateAndUpdateUrlEncodingData
Description copied from interface:UrlEncoderFacadeGets the urlEncoding pattern that has to be injected into the URL. This pattern is calculated based on the input URL and encoding attributes configured for specific site. This method will also update the url encoding values stored in the session.- Specified by:
calculateAndUpdateUrlEncodingDatain interfaceUrlEncoderFacade- Parameters:
uri- input URL to build patterncontextPath- context with encoding attributes- Returns:
- the pattern
-
writeDebugLog
-
getSessionService
-
setSessionService
-
getUrlEncoderService
-
setUrlEncoderService
-