Package io.mateu.dtos

Record Class PageDto

java.lang.Object
java.lang.Record
io.mateu.dtos.PageDto
All Implemented Interfaces:
ComponentMetadataDto

public record PageDto(String id, String favicon, String pageTitle, String icon, String title, boolean readOnly, String subtitle, StatusDto status, List<BadgeDto> badges, List<BannerDto> banners, List<ActionDto> actions, List<ButtonDto> toolbar, List<ButtonDto> buttons, ComponentDto avatar, List<ComponentDto> header, List<ComponentDto> footer) extends Record implements ComponentMetadataDto
Page metadata
  • Constructor Details

    • PageDto

      public PageDto(String id, String favicon, String pageTitle, String icon, String title, boolean readOnly, String subtitle, StatusDto status, List<BadgeDto> badges, List<BannerDto> banners, List<ActionDto> actions, List<ButtonDto> toolbar, List<ButtonDto> buttons, ComponentDto avatar, List<ComponentDto> header, List<ComponentDto> footer)
      Creates an instance of a PageDto record class.
      Parameters:
      id - the value for the id record component
      favicon - the value for the favicon record component
      pageTitle - the value for the pageTitle record component
      icon - the value for the icon record component
      title - the value for the title record component
      readOnly - the value for the readOnly record component
      subtitle - the value for the subtitle record component
      status - the value for the status record component
      badges - the value for the badges record component
      banners - the value for the banners record component
      actions - the value for the actions record component
      toolbar - the value for the toolbar record component
      buttons - the value for the buttons record component
      avatar - the value for the avatar record component
      header - the value for the header record component
      footer - the value for the footer record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • favicon

      public String favicon()
      Returns the value of the favicon record component.
      Returns:
      the value of the favicon record component
    • pageTitle

      public String pageTitle()
      Returns the value of the pageTitle record component.
      Returns:
      the value of the pageTitle record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • readOnly

      public boolean readOnly()
      Returns the value of the readOnly record component.
      Returns:
      the value of the readOnly record component
    • subtitle

      public String subtitle()
      Returns the value of the subtitle record component.
      Returns:
      the value of the subtitle record component
    • status

      public StatusDto status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • badges

      public List<BadgeDto> badges()
      Returns the value of the badges record component.
      Returns:
      the value of the badges record component
    • banners

      public List<BannerDto> banners()
      Returns the value of the banners record component.
      Returns:
      the value of the banners record component
    • actions

      public List<ActionDto> actions()
      Returns the value of the actions record component.
      Returns:
      the value of the actions record component
    • toolbar

      public List<ButtonDto> toolbar()
      Returns the value of the toolbar record component.
      Returns:
      the value of the toolbar record component
    • buttons

      public List<ButtonDto> buttons()
      Returns the value of the buttons record component.
      Returns:
      the value of the buttons record component
    • avatar

      public ComponentDto avatar()
      Returns the value of the avatar record component.
      Returns:
      the value of the avatar record component
    • header

      public List<ComponentDto> header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • footer

      public List<ComponentDto> footer()
      Returns the value of the footer record component.
      Returns:
      the value of the footer record component