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
ConstructorsConstructorDescriptionSearchFilterServiceImpl(Context context, EntityDefaultValueService entityDefaultValueService, BusinessUnitManager businessUnitManager, SearchFilterLoadingService searchFilterLoadingService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchFilter(String entityType, String label, String query, @Nullable String orderBy) voiddeleteFilter(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:
getFiltersin interfaceSearchFilterService- Returns:
- Returns the search filters for the given entity. Empty if none.
At most one of the filters has the
default_searchflag on. - Throws:
PersistException
-
getSearchFilterQuery
- Specified by:
getSearchFilterQueryin interfaceSearchFilterService- Throws:
PersistExceptionInterruptedException
-
addSearchFilter
public void addSearchFilter(String entityType, String label, String query, @Nullable @Nullable String orderBy) throws PersistException, InterruptedException - Specified by:
addSearchFilterin interfaceSearchFilterService- Throws:
PersistExceptionInterruptedException
-
deleteFilter
- Specified by:
deleteFilterin interfaceSearchFilterService- Throws:
PersistExceptionInterruptedException
-