Interface SampleUtils


  • @ProviderType
    public interface SampleUtils
    The SampleUtils service provides calls to prepare DM sample assets and presets for DMS7 integration.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void processPresetAssets​(java.lang.String targetFolder)
      Iterate viewer presets in standard location and copy to related CSS and artwork to targetFolder for sync.
      void processSampleAssets​(java.lang.String targetFolder)
      Copy DM sample assets from standard location to targetFolder for sync.
    • Method Detail

      • processSampleAssets

        void processSampleAssets​(java.lang.String targetFolder)
                          throws java.lang.Exception
        Copy DM sample assets from standard location to targetFolder for sync. The standard location is /libs/dam/preview/.
        Parameters:
        targetFolder - target folder path to which the DM sample assets are to be copied to
        Throws:
        java.lang.Exception - error which copying DM sample assets from standard location to targetFolder for sync.
      • processPresetAssets

        void processPresetAssets​(java.lang.String targetFolder)
                          throws java.lang.Exception
        Iterate viewer presets in standard location and copy to related CSS and artwork to targetFolder for sync. Update viewer preset nodes to point to new CSS location. The standard location is /etc/dam/presets/viewer/.
        Parameters:
        targetFolder - target folder path to which the CSS and artwork are to be copied to
        Throws:
        java.lang.Exception - error which iterating and copying data from standard location to targetFolder for sync.