Class BaseAMImageCounter
java.lang.Object
com.liferay.adaptive.media.image.counter.BaseAMImageCounter
- All Implemented Interfaces:
AMImageCounter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AMImageMimeTypeProviderprotected AMImageValidatorprotected com.liferay.document.library.configuration.DLFileEntryConfigurationProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountExpectedAMImageEntries(long companyId) 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.protected abstract voidforEachFileEntry(long companyId, Consumer<com.liferay.document.library.kernel.model.DLFileEntry> consumer) protected String[]
-
Field Details
-
amImageMimeTypeProvider
-
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:AMImageCounterReturns 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:
countExpectedAMImageEntriesin interfaceAMImageCounter- 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
-