Interface Scene7DAMService


  • @ProviderType
    public interface Scene7DAMService
    The Scene7DAMAssetService is responsible for obtaining S7 related information about already imported DAM assets.
    • Method Detail

      • getS7FileReference

        String getS7FileReference​(Asset asset)
        For a DAM imported Scene7 asset, this method returns the file reference of the asset from Scene7. This is actually the URL used to retrieve the Scene7 asset from the Scene7 public servers. In case a DAM asset cannot be identified as an imported Scene7 asset, this method will return null.
        Parameters:
        asset - the DAM asset
        Returns:
        the URL to the Scene7 asset; null if the asset is not imported from Scene7
      • getS7FileReference

        String getS7FileReference​(Asset asset,
                                  String configPath)
        For a DAM imported Scene7 asset, this method returns the file reference of the asset from Scene7. This is actually the URL used to retrieve the Scene7 asset from the Scene7 public servers. In case a DAM asset cannot be identified as an imported Scene7 asset, this method will return null.
        Parameters:
        asset - the DAM asset
        configPath - Optional path to indicate what cloud configuration to use. If null, an attempt will be made to extract the cloud config from the asset.
        Returns:
        the URL to the Scene7 asset; null if the asset is not imported from Scene7
      • getS7FileReference

        String getS7FileReference​(Asset asset,
                                  String configPath,
                                  boolean isPreview)
        For a DAM imported Scene7 asset, this method returns the file reference of the asset from Scene7. This is actually the URL used to retrieve the Scene7 asset from the Scene7 public or preview servers. In case a DAM asset cannot be identified as an imported Scene7 asset, this method will return null.
        Parameters:
        asset - the DAM asset
        configPath - Optional path to indicate what cloud configuration to use. If null, an attempt will be made to extract the cloud config from the asset.
        isPreview - the Scene7 public or preview server URL
        Returns:
        the URL to the Scene7 asset; null if the asset is not imported from Scene7
      • setS7FileReference

        boolean setS7FileReference​(Resource resource,
                                   String fileReference)
        Update an embedded Scene7 asset URL reference in WCM component
        Parameters:
        resource - Resource object of the WCM component
        fileReference - Scene7 image or video asset source URL
        Returns:
        whether the update operation is successful
      • setS7DMFileReference

        boolean setS7DMFileReference​(Resource resource,
                                     String fileReference)
        Update an embedded Dynamic Media Scene7 asset URL reference in WCM component
        Parameters:
        resource - Resource object of the WCM component
        fileReference - Scene7 image or video asset source URL
        Returns:
        whether the update operation is successful