Interface AMImageCounter
- All Known Implementing Classes:
BaseAMImageCounter
public interface AMImageCounter
Provides an interface that returns the number of images that can use Adaptive
Media for a particular use case. The number of images returned must include
the images that are already adapted and the ones that are not adapted.
This interface should be implemented by applications that store images and want to generate adaptive media images. The application's images are then considered when showing the total number of Adaptive Media images.
Each use case or application that stores images and uses Adaptive Media
should create a new implementation of this class and register it as an OSGi
component with the property adaptive.media.key and a key that
represents the use case or application.
-
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.
-
Method Details
-
countExpectedAMImageEntries
int countExpectedAMImageEntries(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.- Returns:
- the number of images in the application that should have an adaptive media image in a particular company
-