Interface CommonSearchModel
- All Known Subinterfaces:
FulltextSearchModel
,MultiRemoteFieldModel
,RelationSearchModel
,RemoteFieldModel
- All Known Implementing Classes:
AbstractSearchFieldsHolder
,FulltextSearchModelImpl
,MultiRemoteFieldModelImpl
,RelationSearchModelImpl
,RemoteFieldModelImpl
public interface CommonSearchModel
Something that contains a
SearchFieldsModel
, like the RemoteFieldModel
.
It is a reusable subpart model.
It is the common denominator of FulltextSeach, RelationSearch and RemoteFieldSearch.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMaxCharsForField
(String fieldName) Tells the max number of characters to search in this field if defined.getMinCharsForField
(String fieldName) Tells the min number of characters required to search in this field, falls back to default.@Nullable SearchFieldsModel
boolean
Tells if the model is not null, but not if it has content.void
setMinChars
(int minChars) void
-
Method Details
-
getMinChars
Integer getMinChars() -
setMinChars
void setMinChars(int minChars) -
getMinCharsForField
Tells the min number of characters required to search in this field, falls back to default.- Parameters:
fieldName
- The name of the entity field.- Returns:
- Null if field is not used, otherwise
>= 1
.
-
getMaxCharsForField
Tells the max number of characters to search in this field if defined.- Parameters:
fieldName
- The name of the entity field, 0 for no limit.- Returns:
- Null if field is not used.
-
getSearchFieldsModel
-
setSearchFieldsModel
-
hasSearchFieldsModel
boolean hasSearchFieldsModel()Tells if the model is not null, but not if it has content.
-