Class PageDataBuilder
java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<PageDataBuilder,PageData>
com.adobe.cq.wcm.core.components.models.datalayer.builder.PageDataBuilder
Data layer builder for pages.
This builder will produce a valid
PageData object.-
Method Summary
Modifier and TypeMethodDescription@NotNull PageDatabuild()Build the data.withDescription(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's description.@NotNull PageDataBuilderwithLanguage(@NotNull Supplier<String> supplier) Set the supplier that supplies the page's language data.withLastModifiedDate(@NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.withLinkUrl(@NotNull Supplier<String> supplier) Sets the supplier that supplies the component's link URL.withParentId(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's parent ID.@NotNull PageDataBuilderSet the supplier that supplies the page's tags data.@NotNull PageDataBuilderwithTemplatePath(@NotNull Supplier<String> supplier) Set the supplier that supplies the page's template path data.Set the supplier that supplies the component's text.Set the supplier that supplies the component's title.Set the supplier that supplies the component's type.@NotNull PageDataBuilderSet the supplier that supplies the page's URL data.Methods inherited from class com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder
withId
-
Method Details
-
withTags
Set the supplier that supplies the page's tags data.- Parameters:
supplier- The tags data value supplier.- Returns:
- A new
PageDataBuilder. - See Also:
-
withUrl
Set the supplier that supplies the page's URL data.- Parameters:
supplier- The URL data value supplier.- Returns:
- A new
PageDataBuilder. - See Also:
-
withTemplatePath
@NotNull public @NotNull PageDataBuilder withTemplatePath(@NotNull @NotNull Supplier<String> supplier) Set the supplier that supplies the page's template path data.- Parameters:
supplier- The template path data value supplier.- Returns:
- A new
PageDataBuilder. - See Also:
-
withLanguage
Set the supplier that supplies the page's language data.- Parameters:
supplier- The language data value supplier.- Returns:
- A new
PageDataBuilder. - See Also:
-
build
Description copied from class:GenericDataBuilderBuild the data.- Specified by:
buildin classGenericDataBuilder<PageDataBuilder,PageData> - Returns:
- The data object.
-
withType
Set the supplier that supplies the component's type.- Parameters:
supplier- The type value supplier.- Returns:
- A new data builder.
- See Also:
-
withLastModifiedDate
Set the supplier that supplies the component's last modified date.- Parameters:
supplier- The last modified date value supplier.- Returns:
- A new data builder.
- See Also:
-
withParentId
Set the supplier that supplies the component's parent ID.- Parameters:
supplier- The parent ID value supplier.- Returns:
- A new data builder.
- See Also:
-
withTitle
Set the supplier that supplies the component's title.- Parameters:
supplier- The title value supplier.- Returns:
- A new data builder.
- See Also:
-
withDescription
Set the supplier that supplies the component's description.- Parameters:
supplier- The description value supplier.- Returns:
- A new data builder.
- See Also:
-
withText
Set the supplier that supplies the component's text.- Parameters:
supplier- The text value supplier.- Returns:
- A new data builder.
- See Also:
-
withLinkUrl
Sets the supplier that supplies the component's link URL.- Parameters:
supplier- The link URL value supplier.- Returns:
- A new data builder.
- See Also:
-