Package com.onec.ui

Record Class UiIdentityLink

java.lang.Object
java.lang.Record
com.onec.ui.UiIdentityLink
Record Components:
javaClass - the catalog class that acts as the user directory
loginField - the catalog field (by fieldName) compared to the login

public record UiIdentityLink(Class<?> javaClass, String loginField) extends Record
Links an authenticated account to a domain catalog record (e.g. an Employee), by matching the principal's login against a catalog field. Lets persona UIs personalize for "the current person" without coupling the framework to any specific domain class.
  • Constructor Details

    • UiIdentityLink

      public UiIdentityLink(Class<?> javaClass, String loginField)
      Creates an instance of a UiIdentityLink record class.
      Parameters:
      javaClass - the value for the javaClass record component
      loginField - the value for the loginField 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. 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.
    • javaClass

      public Class<?> javaClass()
      Returns the value of the javaClass record component.
      Returns:
      the value of the javaClass record component
    • loginField

      public String loginField()
      Returns the value of the loginField record component.
      Returns:
      the value of the loginField record component