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.
  • Method Details Link icon

    • getMinChars Link icon

      Integer getMinChars()
    • setMinChars Link icon

      void setMinChars(int minChars)
    • getMinCharsForField Link icon

      Integer getMinCharsForField(String fieldName)
      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 Link icon

      Integer getMaxCharsForField(String fieldName)
      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 Link icon

      @Nullable @Nullable SearchFieldsModel getSearchFieldsModel()
    • setSearchFieldsModel Link icon

      void setSearchFieldsModel(SearchFieldsModel model)
    • hasSearchFieldsModel Link icon

      boolean hasSearchFieldsModel()
      Tells if the model is not null, but not if it has content.