Interface Scene7FlashTemplatesService


  • public interface Scene7FlashTemplatesService
    The Scene7FlashTemplatesService provides a way to interact with flash templates (dynamic banners) served by the Scene7 service.
    • Method Detail

      • getFlashTemplateAssets

        JSONObject getFlashTemplateAssets​(Resource resource,
                                          FlashTemplateAssetConstants assetType)
        Queries the path to a Scene7 dynamic banner asset and retrieves the banner's assets as a JSON object.
        Parameters:
        resource - the resource identifying the dynamic banner
        assetType - the asset type for which the JSON object should be built
        Returns:
        a JSON object containing the information about the banner's assets
      • getFlashTemplateModifyURL

        String getFlashTemplateModifyURL​(Resource resource)
        Given a Resource representing an abstractization of a flash template's elements, this method will return the URL needed for dynamically modifying the template using the S7 services.
        Parameters:
        resource - the Resource representing the flash template
        Returns:
        the parametrised URL used for modifying the template
      • renderAsHTML

        boolean renderAsHTML​(Resource resource)
        Based on a Resource abstractisation of a flash template will return true only if the selected rendering format is not Flash
        Parameters:
        resource - the Resource representing the flash template
        Returns:
        true if the rendering format is not Flash, false otherwise