Function searchCategoryConverter

  • Converts search categories provided by the NAE_SEARCH_CATEGORIES injection token in the old (pre 5.6.0) format, to the new format.

    If no search categories are provided converts the default search categories into search categories based on the base filter filter type.

    Parameters

    • categoryResolverService: CategoryResolverService

      service for serialisation and deserialization of search categories

    • baseFilter: BaseFilter

      determines the default categories used if no categories are provided, injected by the NAE_BASE_FILTER injection token

    • defaultCaseSearchCategories: Type<Category<any>>[]

      the default case search categories, injected by the NAE_DEFAULT_CASE_SEARCH_CATEGORIES injection token

    • defaultTaskSearchCategories: Type<Category<any>>[]

      the default task search categories, injected by the NAE_DEFAULT_TASK_SEARCH_CATEGORIES injection token

    • naeSearchCategories: Type<Category<any>>[] | Category<any>[] = null

      optionally the search category instances, or the search category classes. Instances are converted to classes. If no categories are provided the default ones based on the base filter filter type will be returned. Injected by the NAE_SEARCH_CATEGORIES injection token.

    Returns Type<Category<any>>[]