Record Class RegistrationFieldEntity
java.lang.Object
java.lang.Record
io.meeds.social.security.rest.model.RegistrationFieldEntity
- Record Components:
id- the attribute's idpropertyName- the attribute's name, the field's namepropertyType- the attribute's type, null for an attribute stored without onedropdownList- whether the value is one of the attribute's optionsmultiValued- whether the attribute holds several valuesrequired- whether the registration requires a valueorder- the attribute's order among the profile's attributes, which sorts the listed oneslabels- the attribute's labels, in every languagepropertyOptions- 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 Summary
ConstructorsConstructorDescriptionRegistrationFieldEntity(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 aRegistrationFieldEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedropdownListrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.List<org.exoplatform.social.core.model.ProfileLabel> labels()Returns the value of thelabelsrecord component.booleanReturns the value of themultiValuedrecord component.order()Returns the value of theorderrecord component.Returns the value of thepropertyNamerecord component.Returns the value of thepropertyOptionsrecord component.Returns the value of thepropertyTyperecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRegistrationFieldEntityrecord class.- Parameters:
id- the value for theidrecord componentpropertyName- the value for thepropertyNamerecord componentpropertyType- the value for thepropertyTyperecord componentdropdownList- the value for thedropdownListrecord componentmultiValued- the value for themultiValuedrecord componentrequired- the value for therequiredrecord componentorder- the value for theorderrecord componentlabels- the value for thelabelsrecord componentpropertyOptions- the value for thepropertyOptionsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
propertyName
Returns the value of thepropertyNamerecord component.- Returns:
- the value of the
propertyNamerecord component
-
propertyType
Returns the value of thepropertyTyperecord component.- Returns:
- the value of the
propertyTyperecord component
-
dropdownList
public boolean dropdownList()Returns the value of thedropdownListrecord component.- Returns:
- the value of the
dropdownListrecord component
-
multiValued
public boolean multiValued()Returns the value of themultiValuedrecord component.- Returns:
- the value of the
multiValuedrecord component
-
required
-
order
-
labels
-
propertyOptions
Returns the value of thepropertyOptionsrecord component.- Returns:
- the value of the
propertyOptionsrecord component
-