public class DefaultItemModelSearchStrategy extends java.lang.Object implements ModelSearchStrategy
| Constructor and Description |
|---|
DefaultItemModelSearchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getModelByExample(ModelConverter conv,
T example)
Search for an existing model by a given (not saved) example model.
|
<T> java.util.List<T> |
getModelsByExample(ModelConverter conv,
T example)
Search for an existing models by a given (not saved) example model.
|
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setI18nService(I18NService i18nService) |
void |
setSessionService(SessionService sessionService) |
void |
setTypeService(TypeService typeService) |
public <T> T getModelByExample(ModelConverter conv, T example)
ModelSearchStrategygetModelByExample in interface ModelSearchStrategyT - the type of the model and the type of the search result. Can be the same type or a subtype.conv - the model converterexample - the example modelpublic <T> java.util.List<T> getModelsByExample(ModelConverter conv, T example)
ModelSearchStrategygetModelsByExample in interface ModelSearchStrategyT - the type of the model and the type of the search result. Can be the same type or a subtype.conv - the model converterexample - the example modelpublic void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
flexibleSearchService - the flexibleSearchService to setpublic void setI18nService(I18NService i18nService)
i18nService - the i18nService to setpublic void setTypeService(TypeService typeService)
typeService - the typeService to setpublic void setSessionService(SessionService sessionService)
sessionService - the sessionService to setCopyright © 2018 SAP SE. All Rights Reserved.