Package com.day.cq.dam.scene7.api
Interface Scene7FlashTemplatesService
public interface Scene7FlashTemplatesService
The
Scene7FlashTemplatesService provides a way to interact with flash templates (dynamic banners) served by the Scene7 service.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptiongetFlashTemplateAssets(Resource resource, FlashTemplateAssetConstants assetType) Queries the path to a Scene7 dynamic banner asset and retrieves the banner's assets as a JSON object.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.booleanrenderAsHTML(Resource resource) Based on a Resource abstractisation of a flash template will return true only if the selected rendering format is not Flash
-
Field Details
-
MODIFIERS
- See Also:
-
FILE_REFERENCE
- See Also:
-
MANUAL_MODIFIERS
- See Also:
-
OUTPUT_TYPE
- See Also:
-
FLASH_OUTPUT_TYPE
- See Also:
-
SCR_PROP_NAME_URL_FORMAT_PARAMETER
- See Also:
-
SCR_PROP_DEFAULT_URL_FORMAT_PARAMETER
- See Also:
-
SCR_PROP_NAME_REPLACE_TEXT_INSTANCE
- See Also:
-
SCR_PROP_DEFAULT_REPLACE_TEXT_INSTANCE
- See Also:
-
SCR_PROP_NAME_REPLACE_SYMBOL_INSTANCE
- See Also:
-
SCR_PROP_DEFAULT_REPLACE_SYMBOL_INSTANCE
- See Also:
-
SCR_PROP_NAME_REPLACE_BITMAP_INSTANCE
- See Also:
-
SCR_PROP_DEFAULT_REPLACE_BITMAP_INSTANCE
- See Also:
-
SCR_PROP_NAME_REPLACE_URLS
- See Also:
-
SCR_PROP_DEFAULT_REPLACE_URLS
- See Also:
-
-
Method Details
-
getFlashTemplateAssets
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 bannerassetType- the asset type for which the JSON object should be built- Returns:
- a JSON object containing the information about the banner's assets
-
getFlashTemplateModifyURL
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
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
-