Class DeeplinkUrlServiceImpl

java.lang.Object
de.hybris.platform.deeplink.services.impl.DeeplinkUrlServiceImpl
All Implemented Interfaces:
DeeplinkUrlService

public class DeeplinkUrlServiceImpl extends Object implements DeeplinkUrlService
The Class DeeplinkUrlServiceImpl. Default implementation of DeeplinkUrlService.
Spring Bean ID:
deeplinkUrlService
  • Constructor Details

    • DeeplinkUrlServiceImpl

      public DeeplinkUrlServiceImpl()
  • Method Details

    • generateShortUrl

      public String generateShortUrl(DeeplinkUrlModel deeplinkUrlModel, Object contextObject)
      Description copied from interface: DeeplinkUrlService
      Generate short url.
      Specified by:
      generateShortUrl in interface DeeplinkUrlService
      Parameters:
      deeplinkUrlModel - the deeplink url model
      contextObject - the context object
      Returns:
      the string
    • generateUrl

      public DeeplinkUrlService.LongUrlInfo generateUrl(String barcodeToken)
      Description copied from interface: DeeplinkUrlService
      Generate long url.
      Specified by:
      generateUrl in interface DeeplinkUrlService
      Parameters:
      barcodeToken - the barcode token
      Returns:
      the LongUrlInfo object
    • getDeeplinkUrlDao

      public DeeplinkUrlDao getDeeplinkUrlDao()
    • getResolver

      public BarcodeUrlResolver getResolver()
    • getTypeService

      public TypeService getTypeService()
    • parseTemplate

      public String parseTemplate(String template, org.apache.velocity.VelocityContext context)
      Description copied from interface: DeeplinkUrlService
      Parses the template.
      Specified by:
      parseTemplate in interface DeeplinkUrlService
      Parameters:
      template - the template
      context - the context
      Returns:
      the string
    • setDeeplinkUrlDao

      public void setDeeplinkUrlDao(DeeplinkUrlDao deeplinkUrlDao)
    • setResolver

      public void setResolver(BarcodeUrlResolver resolver)
    • setTypeService

      public void setTypeService(TypeService typeService)
    • getDeeplinkUrlRule

      protected DeeplinkUrlRuleModel getDeeplinkUrlRule(String baseUrl, Object contextObject)
      Gets the deeplink url rule.
      Parameters:
      baseUrl - the base url
      contextObject - the context object
      Returns:
      the deeplink url rule
    • getTypeForContextObject

      protected TypeModel getTypeForContextObject(Object contextObject)
      Gets the type for context object.
      Parameters:
      contextObject - the context object
      Returns:
      the type for context object