Class DefaultItemModelSearchStrategy

java.lang.Object
de.hybris.platform.servicelayer.internal.model.impl.DefaultItemModelSearchStrategy
All Implemented Interfaces:
ModelSearchStrategy

public class DefaultItemModelSearchStrategy extends Object implements ModelSearchStrategy
Default implementation of the model search strategy interface.
  • Constructor Details

    • DefaultItemModelSearchStrategy

      public DefaultItemModelSearchStrategy()
  • Method Details

    • getModelByExample

      public <T> T getModelByExample(ModelConverter conv, T example)
      Description copied from interface: ModelSearchStrategy
      Search for an existing model by a given (not saved) example model. Every modified attribute in this example is used as search parameter.
      Specified by:
      getModelByExample in interface ModelSearchStrategy
      Type Parameters:
      T - the type of the model and the type of the search result. Can be the same type or a subtype.
      Parameters:
      conv - the model converter
      example - the example model
      Returns:
      the search result as object(model)
    • getModelsByExample

      public <T> List<T> getModelsByExample(ModelConverter conv, T example)
      Description copied from interface: ModelSearchStrategy
      Search for an existing models by a given (not saved) example model. Every modified attribute in this example is used as search parameter.
      Specified by:
      getModelsByExample in interface ModelSearchStrategy
      Type Parameters:
      T - the type of the model and the type of the search result. Can be the same type or a subtype.
      Parameters:
      conv - the model converter
      example - the example model
      Returns:
      list containing zero or more models
    • setFlexibleSearchService

      public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
      Parameters:
      flexibleSearchService - the flexibleSearchService to set
    • setI18nService

      public void setI18nService(I18NService i18nService)
      Parameters:
      i18nService - the i18nService to set
    • setTypeService

      public void setTypeService(TypeService typeService)
      Parameters:
      typeService - the typeService to set
    • setSessionService

      public void setSessionService(SessionService sessionService)
      Parameters:
      sessionService - the sessionService to set