@DemoTest public class DefaultFlexibleSearchServiceDemoTest extends ServicelayerBaseTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
DefaultFlexibleSearchServiceDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
searchModelByExample()
Demonstrates how to use the flexible search service to get any item model by example model.
|
void |
searchModelsByExample()
Demonstrates how to use the flexible search service to get list of item models by example model.
|
void |
searchWithStandardFlexibleSearchQueryString()
Demonstrates how to do search with usage of standard FlexibleSearch query string.
From security point of view this methods is not recommended when you have to use search parameters - in such case please use FlexibleSearchService.search(String, Map). |
void |
searchWithStandardFlexibleSearchQueryStringAndMapOfParameters()
Demonstrates how to do search with usage of standard FlexibleSearch query string with map of search parameters.
Test scenario: - prepare FlexibleSearch query string and map of parameters - search for list of models with usage of method FlexibleSearchService#search(String, Map) |
void |
searchWithUseOfFlexibleSearchQueryObjectAndCachingDisabled() |
void |
searchWithUsingFlexibleSearchQueryObject()
Demonstrates how to do search with usage of
FlexibleSearchQuery object. |
void |
setUp() |
void |
translateFlexibleSearchQueryIntoTranslationResult()
Demonstrates how to translate
FlexibleSearchQuery object into TranslationResult which
contains translated SQL query and list of parameters. |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic DefaultFlexibleSearchServiceDemoTest()
public void setUp()
public void searchModelByExample()
FlexibleSearchService#getModelByExample(Object)public void searchModelsByExample()
FlexibleSearchService#getModelsByExample(Object)public void translateFlexibleSearchQueryIntoTranslationResult()
FlexibleSearchQuery object into TranslationResult which
contains translated SQL query and list of parameters.
Test scenario:FlexibleSearchService#getModelsByExample(Object)public void searchWithUsingFlexibleSearchQueryObject()
FlexibleSearchQuery object.
Test scenario:FlexibleSearchService#search(FlexibleSearchQuery)public void searchWithStandardFlexibleSearchQueryString()
FlexibleSearchService.search(String, Map).
Test scenario:FlexibleSearchService#search(String)public void searchWithStandardFlexibleSearchQueryStringAndMapOfParameters()
FlexibleSearchService#search(String, Map)Copyright © 2017 SAP SE. All Rights Reserved.