Class SearchFilterServiceImpl
java.lang.Object
ch.tocco.nice2.netui.impl.bind.entity.SearchFilterServiceImpl
- All Implemented Interfaces:
SearchFilterService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.netui.api.bind.entity.SearchFilterService
SearchFilterService.SearchFilter
-
Constructor Summary
ConstructorDescriptionSearchFilterServiceImpl
(Context context, EntityDefaultValueService entityDefaultValueService, BusinessUnitManager businessUnitManager, SearchFilterLoadingService searchFilterLoadingService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSearchFilter
(String entityType, String label, String query, @Nullable String orderBy) void
deleteFilter
(String type, String key) getFilters
(String entityName) String[]
-
Constructor Details
-
SearchFilterServiceImpl
public SearchFilterServiceImpl(Context context, EntityDefaultValueService entityDefaultValueService, BusinessUnitManager businessUnitManager, SearchFilterLoadingService searchFilterLoadingService)
-
-
Method Details
-
getFilters
- Specified by:
getFilters
in interfaceSearchFilterService
- Returns:
- Returns the search filters for the given entity. Empty if none.
At most one of the filters has the
default_search
flag on. - Throws:
PersistException
-
getSearchFilterQuery
- Specified by:
getSearchFilterQuery
in interfaceSearchFilterService
- Throws:
PersistException
InterruptedException
-
addSearchFilter
public void addSearchFilter(String entityType, String label, String query, @Nullable @Nullable String orderBy) throws PersistException, InterruptedException - Specified by:
addSearchFilter
in interfaceSearchFilterService
- Throws:
PersistException
InterruptedException
-
deleteFilter
- Specified by:
deleteFilter
in interfaceSearchFilterService
- Throws:
PersistException
InterruptedException
-