Record Class DynamicViewDefinition

java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicViewDefinition
Record Components:
type - view type
viewId - view identifier
viewRoute - route segment for dynamic views
viewTitle - localized or literal title
templateParams - template parameters
resourceRoles - view resource-role grants
menuItem - optional menu item definition
descriptor - descriptor declaration
lookupComponentId - lookup component identifier for list views
editedEntityContainerId - edited entity container identifier for detail views

public record DynamicViewDefinition(@Nullable DynamicViewType type, @Nullable String viewId, @Nullable String viewRoute, @Nullable LocalizedValue viewTitle, @Nullable Map<String,Object> templateParams, @Nullable DynamicViewAccessDefinition resourceRoles, @Nullable MenuItemDefinition menuItem, @Nullable DynamicViewDescriptorDefinition descriptor, @Nullable String lookupComponentId, @Nullable String editedEntityContainerId) extends Record
Defines a dynamic view owned by a model entity.
  • Constructor Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • type

      public @Nullable DynamicViewType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • viewId

      public @Nullable String viewId()
      Returns the value of the viewId record component.
      Returns:
      the value of the viewId record component
    • viewRoute

      public @Nullable String viewRoute()
      Returns the value of the viewRoute record component.
      Returns:
      the value of the viewRoute record component
    • viewTitle

      public @Nullable LocalizedValue viewTitle()
      Returns the value of the viewTitle record component.
      Returns:
      the value of the viewTitle record component
    • templateParams

      public @Nullable Map<String,Object> templateParams()
      Returns the value of the templateParams record component.
      Returns:
      the value of the templateParams record component
    • resourceRoles

      public @Nullable DynamicViewAccessDefinition resourceRoles()
      Returns the value of the resourceRoles record component.
      Returns:
      the value of the resourceRoles record component
    • descriptor

      public @Nullable DynamicViewDescriptorDefinition descriptor()
      Returns the value of the descriptor record component.
      Returns:
      the value of the descriptor record component
    • lookupComponentId

      public @Nullable String lookupComponentId()
      Returns the value of the lookupComponentId record component.
      Returns:
      the value of the lookupComponentId record component
    • editedEntityContainerId

      public @Nullable String editedEntityContainerId()
      Returns the value of the editedEntityContainerId record component.
      Returns:
      the value of the editedEntityContainerId record component