Interface Download
-
@ConsumerType public interface Download
The model interface that represents the Download action component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Download.AssetRenditionsGroup
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default List<Download.AssetRenditionsGroup>
getAssetRenditionsGroups()
Collection<AssetModel>
getAssets()
long
getDownloadContentSize()
String
getDownloadContentSizeLabel()
long
getMaxContentSize()
String
getMaxContentSizeLabel()
String
getZipFileName()
boolean
isAsynchronous()
default boolean
isLegacyMode()
Deprecated.
-
-
-
Method Detail
-
getAssets
Collection<AssetModel> getAssets()
- Returns:
- a collection of assets that are to be downloaded.
-
getZipFileName
String getZipFileName()
- Returns:
- the name of the zip file that contains the assets (and their renditions) to download.
-
getMaxContentSize
long getMaxContentSize()
- Returns:
- a long representing the maximum content size limit allowed
-
getDownloadContentSize
long getDownloadContentSize()
- Returns:
- a long representing the size of the contents about to be downloaded
-
getMaxContentSizeLabel
String getMaxContentSizeLabel()
- Returns:
- a string with a human readable label of the max content size limit
-
getDownloadContentSizeLabel
String getDownloadContentSizeLabel()
- Returns:
- a string with a human readable label of the current download size
-
isAsynchronous
boolean isAsynchronous()
- Returns:
- a boolean to indicate whether download behavior will be asynchronous (AEM as a Cloud service) or synchronous (6.x)
-
isLegacyMode
@Deprecated default boolean isLegacyMode()
Deprecated.
-
getAssetRenditionsGroups
default List<Download.AssetRenditionsGroup> getAssetRenditionsGroups()
-
-