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 Summary
ConstructorsConstructorDescriptionPageDto(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 aPageDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.avatar()Returns the value of theavatarrecord component.badges()Returns the value of thebadgesrecord component.banners()Returns the value of thebannersrecord component.buttons()Returns the value of thebuttonsrecord component.final booleanIndicates whether some other object is "equal to" this one.favicon()Returns the value of thefaviconrecord component.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.icon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.Returns the value of thepageTitlerecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.status()Returns the value of thestatusrecord component.subtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.toolbar()Returns the value of thetoolbarrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aPageDtorecord class.- Parameters:
id- the value for theidrecord componentfavicon- the value for thefaviconrecord componentpageTitle- the value for thepageTitlerecord componenticon- the value for theiconrecord componenttitle- the value for thetitlerecord componentreadOnly- the value for thereadOnlyrecord componentsubtitle- the value for thesubtitlerecord componentstatus- the value for thestatusrecord componentbadges- the value for thebadgesrecord componentbanners- the value for thebannersrecord componentactions- the value for theactionsrecord componenttoolbar- the value for thetoolbarrecord componentbuttons- the value for thebuttonsrecord componentavatar- the value for theavatarrecord componentheader- the value for theheaderrecord componentfooter- the value for thefooterrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
favicon
Returns the value of thefaviconrecord component.- Returns:
- the value of the
faviconrecord component
-
pageTitle
Returns the value of thepageTitlerecord component.- Returns:
- the value of the
pageTitlerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
badges
Returns the value of thebadgesrecord component.- Returns:
- the value of the
badgesrecord component
-
banners
Returns the value of thebannersrecord component.- Returns:
- the value of the
bannersrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
toolbar
Returns the value of thetoolbarrecord component.- Returns:
- the value of the
toolbarrecord component
-
buttons
Returns the value of thebuttonsrecord component.- Returns:
- the value of the
buttonsrecord component
-
avatar
Returns the value of theavatarrecord component.- Returns:
- the value of the
avatarrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-