Package com.onec.ui
Record Class UiLayout
java.lang.Object
java.lang.Record
com.onec.ui.UiLayout
public record UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles, UiIdentityLink identity, ShellConfig shell)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordA named persona bundle: its own navigation (sections), home (widgets), branding (title/theme) and therolesthat resolve into it.static final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionUiLayout(List<UiLayout.Section> sections) UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets) UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles) UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles, UiIdentityLink identity) UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles, UiIdentityLink identity, ShellConfig shell) Creates an instance of aUiLayoutrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe implicit "default" persona: the top-level sections and widgets, served to any user who matches no namedUiLayout.Profile.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.profiles()Returns the value of theprofilesrecord component.sections()Returns the value of thesectionsrecord component.shell()Returns the value of theshellrecord component.final StringtoString()Returns a string representation of this record class.widgets()Returns the value of thewidgetsrecord component.
-
Constructor Details
-
UiLayout
public UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles, UiIdentityLink identity, ShellConfig shell) Creates an instance of aUiLayoutrecord class.- Parameters:
sections- the value for thesectionsrecord componentwidgets- the value for thewidgetsrecord componentprofiles- the value for theprofilesrecord componentidentity- the value for theidentityrecord componentshell- the value for theshellrecord component
-
UiLayout
-
UiLayout
-
UiLayout
public UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles) -
UiLayout
public UiLayout(List<UiLayout.Section> sections, List<UiLayoutBuilder.WidgetConfig> widgets, List<UiLayout.Profile> profiles, UiIdentityLink identity)
-
-
Method Details
-
defaultProfile
The implicit "default" persona: the top-level sections and widgets, served to any user who matches no namedUiLayout.Profile. Curation layer only — access is still enforced per data endpoint regardless of profile. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
sections
Returns the value of thesectionsrecord component.- Returns:
- the value of the
sectionsrecord component
-
widgets
Returns the value of thewidgetsrecord component.- Returns:
- the value of the
widgetsrecord component
-
profiles
Returns the value of theprofilesrecord component.- Returns:
- the value of the
profilesrecord component
-
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
shell
Returns the value of theshellrecord component.- Returns:
- the value of the
shellrecord component
-