Class BaseAMImageCounter

java.lang.Object
com.liferay.adaptive.media.image.counter.BaseAMImageCounter
All Implemented Interfaces:
AMImageCounter

public abstract class BaseAMImageCounter extends Object implements AMImageCounter
  • Field Details

    • amImageMimeTypeProvider

      protected AMImageMimeTypeProvider amImageMimeTypeProvider
    • amImageValidator

      protected AMImageValidator amImageValidator
    • dlFileEntryConfigurationProvider

      protected com.liferay.document.library.configuration.DLFileEntryConfigurationProvider dlFileEntryConfigurationProvider
  • Constructor Details

    • BaseAMImageCounter

      public BaseAMImageCounter()
  • Method Details

    • countExpectedAMImageEntries

      public int countExpectedAMImageEntries(long companyId)
      Description copied from interface: AMImageCounter
      Returns the number of images in the application that should have an adaptive media image in a particular company, including images that are not generated yet.
      Specified by:
      countExpectedAMImageEntries in interface AMImageCounter
      Returns:
      the number of images in the application that should have an adaptive media image in a particular company
    • forEachFileEntry

      protected abstract void forEachFileEntry(long companyId, Consumer<com.liferay.document.library.kernel.model.DLFileEntry> consumer) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMimeTypes

      protected String[] getMimeTypes()