public class DefaultSearchService extends java.lang.Object implements SearchService
SearchService| Constructor and Description |
|---|
DefaultSearchService() |
| Modifier and Type | Method and Description |
|---|---|
SearchParameterDescriptor |
getSearchDescriptor(PropertyDescriptor propDescr)
Gets the search descriptor for the given property descriptor
SearchParameterDescriptor contains the list
of Operator objects. |
SearchParameterDescriptor |
getSearchDescriptor(PropertyDescriptor propDescr,
boolean simpleSearch)
Gets the search descriptor for the given property descriptor
SearchParameterDescriptor contains the list
of Operator objects. |
SearchProvider |
getSearchProvider()
Gets the current search provider of the service implementation.
|
SearchType |
getSearchType(ObjectTemplate objectTemplate)
Gets the search type for the given object template.
|
SearchType |
getSearchType(ObjectType objectType)
Gets the search type for given object type.
|
SearchType |
getSearchType(java.lang.String objectTemplateCode)
Gets the search type for the given object template code.
|
boolean |
isSortable(PropertyDescriptor propDescr)
Checks if given property is sortable, so it can later be used to sort by.
|
void |
setCockpitTypeService(TypeService typeService) |
void |
setSearchProvider(SearchProvider searchProvider) |
void |
setUiConfigurationService(UIConfigurationService uiConfigurationService) |
public SearchType getSearchType(ObjectTemplate objectTemplate)
SearchServicegetSearchType in interface SearchServiceobjectTemplate - the object template to look search type forpublic SearchType getSearchType(ObjectType objectType)
SearchServiceSearchType and in this case it
should be just returned.getSearchType in interface SearchServiceobjectType - the object type to look search type forpublic SearchType getSearchType(java.lang.String objectTemplateCode)
SearchServicegetSearchType in interface SearchServiceobjectTemplateCode - the object template code to look search type forpublic void setCockpitTypeService(TypeService typeService)
public void setUiConfigurationService(UIConfigurationService uiConfigurationService)
public boolean isSortable(PropertyDescriptor propDescr)
SearchServiceisSortable in interface SearchServicepropDescr - the property descriptor to check for beeing sortablepublic SearchParameterDescriptor getSearchDescriptor(PropertyDescriptor propDescr)
SearchServiceSearchParameterDescriptor contains the list
of Operator objects.getSearchDescriptor in interface SearchServicepropDescr - the property descriptor to create search parameter descriptorpublic SearchParameterDescriptor getSearchDescriptor(PropertyDescriptor propDescr, boolean simpleSearch)
SearchServiceSearchParameterDescriptor contains the list
of Operator objects.getSearchDescriptor in interface SearchServicepropDescr - the property descriptor to create search parameter descriptorsimpleSearch - the simple search attribute that will be set on the result objectpublic void setSearchProvider(SearchProvider searchProvider)
public SearchProvider getSearchProvider()
SearchServicegetSearchProvider in interface SearchServiceCopyright © 2018 SAP SE. All Rights Reserved.