Package de.espirit.firstspirit.agency
Interface PreviewUrlAgent.MediaPreviewUrlBuilder
- All Superinterfaces:
PreviewUrlAgent.PreviewUrlBuilder<PreviewUrlAgent.MediaPreviewUrlBuilder>
- Enclosing interface:
- PreviewUrlAgent
public static interface PreviewUrlAgent.MediaPreviewUrlBuilder
extends PreviewUrlAgent.PreviewUrlBuilder<PreviewUrlAgent.MediaPreviewUrlBuilder>
The preview url builder for
Media nodes.- Since:
- 5.2.190105
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the URL-String for the Media.resolution(@Nullable Resolution resolution) Selects an alternative resolution instead of the defaultResolution.ORIGINAL_RESOLUTION_NAMEfor rendering of typeMedia.PICTURE.Methods inherited from interface de.espirit.firstspirit.agency.PreviewUrlAgent.PreviewUrlBuilder
forWebedit, fullQualified, language
-
Method Details
-
resolution
@Contract("_ -> this") @NotNull @NotNull PreviewUrlAgent.MediaPreviewUrlBuilder resolution(@Nullable @Nullable Resolution resolution) Selects an alternative resolution instead of the defaultResolution.ORIGINAL_RESOLUTION_NAMEfor rendering of typeMedia.PICTURE. For theMedia.FILEtype the resolution will be ignored.- Parameters:
resolution- The resolution to use.- Returns:
- The builder itself.
- Since:
- 5.2.190105
-
getUrl
Returns the URL-String for the Media.- Parameters:
media- The media to return a url for- Returns:
- The url as String.
- Since:
- 5.2.190105
-