Record Class SiteDescription
java.lang.Object
java.lang.Record
io.meeds.layout.model.SiteDescription
public record SiteDescription(long siteId, String type, String name, String label, String description, boolean bannerPresent, boolean displayed, List<String> accessPermissions, String editPermission, boolean draft, SiteContainerDescription leftSidebar, SiteContainerDescription rightSidebar, List<SiteContainerDescription> topbars, List<SiteContainerDescription> bottomBars)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSiteDescription(long siteId, String type, String name, String label, String description, boolean bannerPresent, boolean displayed, List<String> accessPermissions, String editPermission, boolean draft, SiteContainerDescription leftSidebar, SiteContainerDescription rightSidebar, List<SiteContainerDescription> topbars, List<SiteContainerDescription> bottomBars) Creates an instance of aSiteDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessPermissionsrecord component.booleanReturns the value of thebannerPresentrecord component.Returns the value of thebottomBarsrecord component.Returns the value of thedescriptionrecord component.booleanReturns the value of thedisplayedrecord component.booleandraft()Returns the value of thedraftrecord component.Returns the value of theeditPermissionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of theleftSidebarrecord component.name()Returns the value of thenamerecord component.Returns the value of therightSidebarrecord component.longsiteId()Returns the value of thesiteIdrecord component.topbars()Returns the value of thetopbarsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SiteDescription
public SiteDescription(long siteId, String type, String name, String label, String description, boolean bannerPresent, boolean displayed, List<String> accessPermissions, String editPermission, boolean draft, SiteContainerDescription leftSidebar, SiteContainerDescription rightSidebar, List<SiteContainerDescription> topbars, List<SiteContainerDescription> bottomBars) Creates an instance of aSiteDescriptionrecord class.- Parameters:
siteId- the value for thesiteIdrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentlabel- the value for thelabelrecord componentdescription- the value for thedescriptionrecord componentbannerPresent- the value for thebannerPresentrecord componentdisplayed- the value for thedisplayedrecord componentaccessPermissions- the value for theaccessPermissionsrecord componenteditPermission- the value for theeditPermissionrecord componentdraft- the value for thedraftrecord componentleftSidebar- the value for theleftSidebarrecord componentrightSidebar- the value for therightSidebarrecord componenttopbars- the value for thetopbarsrecord componentbottomBars- the value for thebottomBarsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
siteId
public long siteId()Returns the value of thesiteIdrecord component.- Returns:
- the value of the
siteIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
bannerPresent
public boolean bannerPresent()Returns the value of thebannerPresentrecord component.- Returns:
- the value of the
bannerPresentrecord component
-
displayed
public boolean displayed()Returns the value of thedisplayedrecord component.- Returns:
- the value of the
displayedrecord component
-
accessPermissions
-
editPermission
Returns the value of theeditPermissionrecord component.- Returns:
- the value of the
editPermissionrecord component
-
draft
public boolean draft()Returns the value of thedraftrecord component.- Returns:
- the value of the
draftrecord component
-
leftSidebar
Returns the value of theleftSidebarrecord component.- Returns:
- the value of the
leftSidebarrecord component
-
rightSidebar
Returns the value of therightSidebarrecord component.- Returns:
- the value of the
rightSidebarrecord component
-
topbars
Returns the value of thetopbarsrecord component.- Returns:
- the value of the
topbarsrecord component
-
bottomBars
Returns the value of thebottomBarsrecord component.- Returns:
- the value of the
bottomBarsrecord component
-