Record Class OptionSourcePolicy
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.options.OptionSourcePolicy
public record OptionSourcePolicy(boolean excludeSelfField, boolean allowSearch, String searchMode, int minSearchChars, int defaultPageSize, int maxPageSize, boolean allowIncludeIds, boolean cacheable, String defaultSort)
extends Record
Public execution policy for a registered option source.
-
Constructor Summary
ConstructorsConstructorDescriptionOptionSourcePolicy(boolean excludeSelfField, boolean allowSearch, String searchMode, int minSearchChars, int defaultPageSize, int maxPageSize, boolean allowIncludeIds, boolean cacheable, String defaultSort) Creates an instance of aOptionSourcePolicyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowIncludeIdsrecord component.booleanReturns the value of theallowSearchrecord component.booleanReturns the value of thecacheablerecord component.intReturns the value of thedefaultPageSizerecord component.static OptionSourcePolicydefaults()Returns the value of thedefaultSortrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexcludeSelfFieldrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxPageSizerecord component.intReturns the value of theminSearchCharsrecord component.Returns the value of thesearchModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OptionSourcePolicy
public OptionSourcePolicy(boolean excludeSelfField, boolean allowSearch, String searchMode, int minSearchChars, int defaultPageSize, int maxPageSize, boolean allowIncludeIds, boolean cacheable, String defaultSort) Creates an instance of aOptionSourcePolicyrecord class.- Parameters:
excludeSelfField- the value for theexcludeSelfFieldrecord componentallowSearch- the value for theallowSearchrecord componentsearchMode- the value for thesearchModerecord componentminSearchChars- the value for theminSearchCharsrecord componentdefaultPageSize- the value for thedefaultPageSizerecord componentmaxPageSize- the value for themaxPageSizerecord componentallowIncludeIds- the value for theallowIncludeIdsrecord componentcacheable- the value for thecacheablerecord componentdefaultSort- the value for thedefaultSortrecord component
-
-
Method Details
-
defaults
-
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. -
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. -
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 '=='. -
excludeSelfField
public boolean excludeSelfField()Returns the value of theexcludeSelfFieldrecord component.- Returns:
- the value of the
excludeSelfFieldrecord component
-
allowSearch
public boolean allowSearch()Returns the value of theallowSearchrecord component.- Returns:
- the value of the
allowSearchrecord component
-
searchMode
Returns the value of thesearchModerecord component.- Returns:
- the value of the
searchModerecord component
-
minSearchChars
public int minSearchChars()Returns the value of theminSearchCharsrecord component.- Returns:
- the value of the
minSearchCharsrecord component
-
defaultPageSize
public int defaultPageSize()Returns the value of thedefaultPageSizerecord component.- Returns:
- the value of the
defaultPageSizerecord component
-
maxPageSize
public int maxPageSize()Returns the value of themaxPageSizerecord component.- Returns:
- the value of the
maxPageSizerecord component
-
allowIncludeIds
public boolean allowIncludeIds()Returns the value of theallowIncludeIdsrecord component.- Returns:
- the value of the
allowIncludeIdsrecord component
-
cacheable
public boolean cacheable()Returns the value of thecacheablerecord component.- Returns:
- the value of the
cacheablerecord component
-
defaultSort
Returns the value of thedefaultSortrecord component.- Returns:
- the value of the
defaultSortrecord component
-