Interface AMImageQueryBuilder

All Superinterfaces:
com.liferay.adaptive.media.finder.AMQueryBuilder<com.liferay.portal.kernel.repository.model.FileVersion,com.liferay.adaptive.media.processor.AMProcessor<com.liferay.portal.kernel.repository.model.FileVersion>>

public interface AMImageQueryBuilder extends com.liferay.adaptive.media.finder.AMQueryBuilder<com.liferay.portal.kernel.repository.model.FileVersion,com.liferay.adaptive.media.processor.AMProcessor<com.liferay.portal.kernel.repository.model.FileVersion>>
Provides a specialized interface to build a query to fetch adaptive media images. This builder lets you specify the requirements for the adaptive media images using the given methods.

It's recommended that you use this interface by chaining those methods to create the query with the requirements. These methods can either be

  • Initial: must be invoked as the first method in the chain. They can be chained by other methods to add more requirements.
  • Intermediate: can be chained to an initial method or to another intermediate method to add more requirements.
  • Terminal: can be chained to both initial or intermediate methods, but they don't accept additional chaining.
  • Method Details

    • forFileEntry

      AMImageQueryBuilder.InitialStep forFileEntry(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
      An initial method that specifies that only adaptive media images that belong to a specific file entry should be returned.
      Parameters:
      fileEntry - the adaptive media images' file entry
    • forFileVersion

      AMImageQueryBuilder.InitialStep forFileVersion(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
      An initial method that specifies the file version of the adaptive media images.
      Parameters:
      fileVersion - the adaptive media images' file version