Record Class NavigationItemDescription

java.lang.Object
java.lang.Record
io.meeds.layout.model.NavigationItemDescription

public record NavigationItemDescription(long nodeId, String name, Map<String,String> labels, String urlName, NavigationItemType type, String pageRef, String url, String target, String icon, boolean visible, ScheduleDescription scheduled, List<String> accessPermissions, String editPermission, List<NavigationItemDescription> children) extends Record
  • Constructor Details

    • NavigationItemDescription

      public NavigationItemDescription(long nodeId, String name, Map<String,String> labels, String urlName, NavigationItemType type, String pageRef, String url, String target, String icon, boolean visible, ScheduleDescription scheduled, List<String> accessPermissions, String editPermission, List<NavigationItemDescription> children)
      Creates an instance of a NavigationItemDescription record class.
      Parameters:
      nodeId - the value for the nodeId record component
      name - the value for the name record component
      labels - the value for the labels record component
      urlName - the value for the urlName record component
      type - the value for the type record component
      pageRef - the value for the pageRef record component
      url - the value for the url record component
      target - the value for the target record component
      icon - the value for the icon record component
      visible - the value for the visible record component
      scheduled - the value for the scheduled record component
      accessPermissions - the value for the accessPermissions record component
      editPermission - the value for the editPermission record component
      children - the value for the children 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 the compare method from their corresponding wrapper classes.
      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.
    • nodeId

      public long nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • labels

      public Map<String,String> labels()
      Returns the value of the labels record component.
      Returns:
      the value of the labels record component
    • urlName

      public String urlName()
      Returns the value of the urlName record component.
      Returns:
      the value of the urlName record component
    • type

      public NavigationItemType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • pageRef

      public String pageRef()
      Returns the value of the pageRef record component.
      Returns:
      the value of the pageRef record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • target

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

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

      public boolean visible()
      Returns the value of the visible record component.
      Returns:
      the value of the visible record component
    • scheduled

      public ScheduleDescription scheduled()
      Returns the value of the scheduled record component.
      Returns:
      the value of the scheduled record component
    • accessPermissions

      public List<String> accessPermissions()
      Returns the value of the accessPermissions record component.
      Returns:
      the value of the accessPermissions record component
    • editPermission

      public String editPermission()
      Returns the value of the editPermission record component.
      Returns:
      the value of the editPermission record component
    • children

      public List<NavigationItemDescription> children()
      Returns the value of the children record component.
      Returns:
      the value of the children record component