Class DeeplinkUrlServiceImpl
java.lang.Object
de.hybris.platform.deeplink.services.impl.DeeplinkUrlServiceImpl
- All Implemented Interfaces:
DeeplinkUrlService
The Class DeeplinkUrlServiceImpl. Default implementation of
DeeplinkUrlService.- Spring Bean ID:
- deeplinkUrlService
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.deeplink.services.DeeplinkUrlService
DeeplinkUrlService.LongUrlInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateShortUrl(DeeplinkUrlModel deeplinkUrlModel, Object contextObject) Generate short url.generateUrl(String barcodeToken) Generate long url.protected DeeplinkUrlRuleModelgetDeeplinkUrlRule(String baseUrl, Object contextObject) Gets the deeplink url rule.protected TypeModelgetTypeForContextObject(Object contextObject) Gets the type for context object.parseTemplate(String template, org.apache.velocity.VelocityContext context) Parses the template.voidsetDeeplinkUrlDao(DeeplinkUrlDao deeplinkUrlDao) voidsetResolver(BarcodeUrlResolver resolver) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DeeplinkUrlServiceImpl
public DeeplinkUrlServiceImpl()
-
-
Method Details
-
generateShortUrl
Description copied from interface:DeeplinkUrlServiceGenerate short url.- Specified by:
generateShortUrlin interfaceDeeplinkUrlService- Parameters:
deeplinkUrlModel- the deeplink url modelcontextObject- the context object- Returns:
- the string
-
generateUrl
Description copied from interface:DeeplinkUrlServiceGenerate long url.- Specified by:
generateUrlin interfaceDeeplinkUrlService- Parameters:
barcodeToken- the barcode token- Returns:
- the LongUrlInfo object
-
getDeeplinkUrlDao
-
getResolver
-
getTypeService
-
parseTemplate
Description copied from interface:DeeplinkUrlServiceParses the template.- Specified by:
parseTemplatein interfaceDeeplinkUrlService- Parameters:
template- the templatecontext- the context- Returns:
- the string
-
setDeeplinkUrlDao
-
setResolver
-
setTypeService
-
getDeeplinkUrlRule
Gets the deeplink url rule.- Parameters:
baseUrl- the base urlcontextObject- the context object- Returns:
- the deeplink url rule
-
getTypeForContextObject
Gets the type for context object.- Parameters:
contextObject- the context object- Returns:
- the type for context object
-