Class AdditionalSearchServiceParameter<T>

java.lang.Object
org.ametys.web.frontoffice.search.metamodel.AdditionalSearchServiceParameter<T>
Type Parameters:
T - Type of the parameter

public final class AdditionalSearchServiceParameter<T> extends Object
This class is a wrapper of an additional parameter for a search service instance (brought by a Searchable or a Returnable, throuh AbstractParameterAdderSearchable or AbstractParameterAdderReturnable for instance).
It holds the actual ServiceParameter, and a boolean indicating if in client-side, the change of the field of this parameter must lead to a reload of the search criteria.
  • Constructor Details

    • AdditionalSearchServiceParameter

      public AdditionalSearchServiceParameter(ServiceParameter<T> serviceParameter, boolean reloadCriteriaOnChange)
      Constructs the AdditionalSearchServiceParameter
      Parameters:
      serviceParameter - the actual search service additional parameter
      reloadCriteriaOnChange - Set this to true if in client-side, the change of the field of this parameter must lead to a reload of the search criteria
  • Method Details

    • getParameter

      Gets the additional service parameter
      Returns:
      the additional service parameter
    • reloadCriteriaOnChange

      public boolean reloadCriteriaOnChange()
      Returns true if in client-side, the change of the field of this parameter must lead to a reload of the search criteria
      Returns:
      true if in client-side, the change of the field of this parameter must lead to a reload of the search criteria