Interface AMImageConfigurationDemoDataCreator


public interface AMImageConfigurationDemoDataCreator
Provides a class for creating adaptive media configurations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<com.liferay.adaptive.media.image.configuration.AMImageConfigurationEntry>
    create(long companyId)
    Creates a collection of AMImageConfigurationEntry configurations based on the DemoAMImageConfigurationVariant enum
    com.liferay.adaptive.media.image.configuration.AMImageConfigurationEntry
    create(long companyId, DemoAMImageConfigurationVariant demoAMImageConfigurationVariant)
    Creates a AMImageConfigurationEntry for a company
    void
    Deletes the configurations created by this demo data creator
  • Method Details

    • create

      Collection<com.liferay.adaptive.media.image.configuration.AMImageConfigurationEntry> create(long companyId) throws IOException
      Creates a collection of AMImageConfigurationEntry configurations based on the DemoAMImageConfigurationVariant enum
      Parameters:
      companyId - ID of the company where the configurations will be created
      Returns:
      a list of the configurations
      Throws:
      IOException
    • create

      com.liferay.adaptive.media.image.configuration.AMImageConfigurationEntry create(long companyId, DemoAMImageConfigurationVariant demoAMImageConfigurationVariant) throws IOException
      Creates a AMImageConfigurationEntry for a company
      Parameters:
      companyId - ID of the company where the configuration will be created
      demoAMImageConfigurationVariant - the configuration to create
      Returns:
      the configuration
      Throws:
      IOException
    • delete

      void delete() throws IOException
      Deletes the configurations created by this demo data creator
      Throws:
      IOException