Class AssetDataBuilder
java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<AssetDataBuilder,AssetData>
com.adobe.cq.wcm.core.components.models.datalayer.builder.AssetDataBuilder
Data builder for a Dam Assets.
This builder will produce a valid
AssetData object.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull AssetDatabuild()Build the data.@NotNull AssetDataBuilderwithFormat(@NotNull Supplier<String> supplier) Sets the supplier that supplies the Asset's format.@NotNull AssetDataBuilderwithLastModifiedDate(@NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.@NotNull AssetDataBuilderwithSmartTags(@NotNull Supplier<Map<String, Object>> supplier) Sets the supplier that supplies the Asset's smart tags.@NotNull AssetDataBuilderSets the supplier that supplies the Asset's tags.@NotNull AssetDataBuilderSets the supplier that supplies the URL.Methods inherited from class com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder
withId
-
Field Details
-
SMARTTAG_NAME_PROP
Name of the property holding the name of smart tag;- See Also:
-
SMARTTAG_CONFIDENCE_PROP
Name of the property holding the confidence of smart tag;- See Also:
-
-
Method Details
-
withUrl
Sets the supplier that supplies the URL.- Parameters:
supplier- The URL value supplier.- Returns:
- A new
AssetDataBuilder. - See Also:
-
withFormat
Sets the supplier that supplies the Asset's format.- Parameters:
supplier- The format value supplier.- Returns:
- A new
AssetDataBuilder. - See Also:
-
withTags
Sets the supplier that supplies the Asset's tags.- Parameters:
supplier- The tags value supplier.- Returns:
- A new
AssetDataBuilder. - See Also:
-
withSmartTags
@NotNull public @NotNull AssetDataBuilder withSmartTags(@NotNull @NotNull Supplier<Map<String, Object>> supplier) Sets the supplier that supplies the Asset's smart tags.- Parameters:
supplier- The smart tags value supplier.- Returns:
- A new
AssetDataBuilder. - See Also:
-
withLastModifiedDate
@NotNull public @NotNull AssetDataBuilder withLastModifiedDate(@NotNull @NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.- Parameters:
supplier- The last modified date value supplier.- Returns:
- A new
AssetDataBuilder. - See Also:
-
build
Description copied from class:GenericDataBuilderBuild the data.- Specified by:
buildin classGenericDataBuilder<AssetDataBuilder,AssetData> - Returns:
- The data object.
-