Class PageDataBuilder


  • public final class PageDataBuilder
    extends GenericDataBuilder<T,​K>
    Data layer builder for pages. This builder will produce a valid PageData object.
    • Method Detail

      • withType

        @NotNull
        public T withType​(@NotNull
                          @NotNull Supplier<String> supplier)
        Set the supplier that supplies the component's type.
        Parameters:
        supplier - The type value supplier.
        Returns:
        A new data builder.
        See Also:
        ComponentData.getType()
      • withLastModifiedDate

        @NotNull
        public T 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 data builder.
        See Also:
        ComponentData.getLastModifiedDate()
      • withParentId

        @NotNull
        public T withParentId​(@NotNull
                              @NotNull Supplier<String> supplier)
        Set the supplier that supplies the component's parent ID.
        Parameters:
        supplier - The parent ID value supplier.
        Returns:
        A new data builder.
        See Also:
        ComponentData.getParentId()
      • withTitle

        @NotNull
        public T withTitle​(@NotNull
                           @NotNull Supplier<String> supplier)
        Set the supplier that supplies the component's title.
        Parameters:
        supplier - The title value supplier.
        Returns:
        A new data builder.
        See Also:
        ComponentData.getTitle()
      • withDescription

        @NotNull
        public T withDescription​(@NotNull
                                 @NotNull Supplier<String> supplier)
        Set the supplier that supplies the component's description.
        Parameters:
        supplier - The description value supplier.
        Returns:
        A new data builder.
        See Also:
        ComponentData.getDescription()
      • withText

        @NotNull
        public T withText​(@NotNull
                          @NotNull Supplier<String> supplier)
        Set the supplier that supplies the component's text.
        Parameters:
        supplier - The text value supplier.
        Returns:
        A new data builder.
        See Also:
        ComponentData.getText()
      • withLinkUrl

        @NotNull
        public T withLinkUrl​(@NotNull
                             @NotNull Supplier<String> supplier)
        Sets the supplier that supplies the component's link URL.
        Parameters:
        supplier - The link URL value supplier.
        Returns:
        A new data builder.
        See Also:
        ComponentData.getLinkUrl()