Record Class RegistrationFieldEntity

java.lang.Object
java.lang.Record
io.meeds.social.security.rest.model.RegistrationFieldEntity
Record Components:
id - the attribute's id
propertyName - the attribute's name, the field's name
propertyType - the attribute's type, null for an attribute stored without one
dropdownList - whether the value is one of the attribute's options
multiValued - whether the attribute holds several values
required - whether the registration requires a value
order - the attribute's order among the profile's attributes, which sorts the listed ones
labels - the attribute's labels, in every language
propertyOptions - the attribute's options, translated in the request's locale

public record RegistrationFieldEntity(Long id, String propertyName, String propertyType, boolean dropdownList, boolean multiValued, boolean required, Long order, List<org.exoplatform.social.core.model.ProfileLabel> labels, List<ProfilePropertyOptionEntity> propertyOptions) extends Record
The definition of a profile attribute the registration form lists, as an anonymous registrant reads it: what the form needs to draw and check the field, and none of the attribute's other settings
  • Constructor Details

    • RegistrationFieldEntity

      public RegistrationFieldEntity(Long id, String propertyName, String propertyType, boolean dropdownList, boolean multiValued, boolean required, Long order, List<org.exoplatform.social.core.model.ProfileLabel> labels, List<ProfilePropertyOptionEntity> propertyOptions)
      Creates an instance of a RegistrationFieldEntity record class.
      Parameters:
      id - the value for the id record component
      propertyName - the value for the propertyName record component
      propertyType - the value for the propertyType record component
      dropdownList - the value for the dropdownList record component
      multiValued - the value for the multiValued record component
      required - the value for the required record component
      order - the value for the order record component
      labels - the value for the labels record component
      propertyOptions - the value for the propertyOptions 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.
    • id

      public Long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • propertyName

      public String propertyName()
      Returns the value of the propertyName record component.
      Returns:
      the value of the propertyName record component
    • propertyType

      public String propertyType()
      Returns the value of the propertyType record component.
      Returns:
      the value of the propertyType record component
    • multiValued

      public boolean multiValued()
      Returns the value of the multiValued record component.
      Returns:
      the value of the multiValued record component
    • required

      public boolean required()
      Returns the value of the required record component.
      Returns:
      the value of the required record component
    • order

      public Long order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • labels

      public List<org.exoplatform.social.core.model.ProfileLabel> labels()
      Returns the value of the labels record component.
      Returns:
      the value of the labels record component
    • propertyOptions

      public List<ProfilePropertyOptionEntity> propertyOptions()
      Returns the value of the propertyOptions record component.
      Returns:
      the value of the propertyOptions record component