Class DeeplinkUrlServiceImpl

    • Constructor Detail

      • DeeplinkUrlServiceImpl

        public DeeplinkUrlServiceImpl()
    • Method Detail

      • generateShortUrl

        public java.lang.String generateShortUrl​(DeeplinkUrlModel deeplinkUrlModel,
                                                 java.lang.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
      • parseTemplate

        public java.lang.String parseTemplate​(java.lang.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)
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getDeeplinkUrlRule

        protected DeeplinkUrlRuleModel getDeeplinkUrlRule​(java.lang.String baseUrl,
                                                          java.lang.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​(java.lang.Object contextObject)
        Gets the type for context object.
        Parameters:
        contextObject - the context object
        Returns:
        the type for context object