Class DefaultItemModelSearchStrategy
java.lang.Object
de.hybris.platform.servicelayer.internal.model.impl.DefaultItemModelSearchStrategy
- All Implemented Interfaces:
ModelSearchStrategy
Default implementation of the model search strategy interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetModelByExample(ModelConverter conv, T example) Search for an existing model by a given (not saved) example model.<T> List<T>getModelsByExample(ModelConverter conv, T example) Search for an existing models by a given (not saved) example model.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetI18nService(I18NService i18nService) voidsetSessionService(SessionService sessionService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DefaultItemModelSearchStrategy
public DefaultItemModelSearchStrategy()
-
-
Method Details
-
getModelByExample
Description copied from interface:ModelSearchStrategySearch for an existing model by a given (not saved) example model. Every modified attribute in this example is used as search parameter.- Specified by:
getModelByExamplein interfaceModelSearchStrategy- 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 converterexample- the example model- Returns:
- the search result as object(model)
-
getModelsByExample
Description copied from interface:ModelSearchStrategySearch for an existing models by a given (not saved) example model. Every modified attribute in this example is used as search parameter.- Specified by:
getModelsByExamplein interfaceModelSearchStrategy- 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 converterexample- the example model- Returns:
- list containing zero or more models
-
setFlexibleSearchService
- Parameters:
flexibleSearchService- the flexibleSearchService to set
-
setI18nService
- Parameters:
i18nService- the i18nService to set
-
setTypeService
- Parameters:
typeService- the typeService to set
-
setSessionService
- Parameters:
sessionService- the sessionService to set
-