Interface AsSearchProfileDao

All Known Implementing Classes:
DefaultAsSearchProfileDao

public interface AsSearchProfileDao
  • Method Details

    • findAllSearchProfiles

      <T extends AbstractAsSearchProfileModel> List<T> findAllSearchProfiles()
      Finds all search profiles.
      Returns:
      list of search profiles or empty list if no profile is found
    • findSearchProfilesByIndexTypesAndCatalogVersions

      <T extends AbstractAsSearchProfileModel> List<T> findSearchProfilesByIndexTypesAndCatalogVersions(List<String> indexTypes, List<CatalogVersionModel> catalogVersions)
      Finds all search profiles for a list of index types and catalog versions.
      Returns:
      list of search profiles or empty list if no profile is found
    • findSearchProfilesByCatalogVersion

      <T extends AbstractAsSearchProfileModel> List<T> findSearchProfilesByCatalogVersion(CatalogVersionModel catalogVersion)
      Finds all search profiles for a specific catalog version.
      Returns:
      list of search profiles or empty list if no profile is found
    • findSearchProfileByCode

      <T extends AbstractAsSearchProfileModel> Optional<T> findSearchProfileByCode(CatalogVersionModel catalogVersion, String code)
      Finds the search profile for a specific catalog version and code.
      Parameters:
      catalogVersion - - the catalog version
      code - - the code
      Returns:
      the search profile
    • getSearchProfiles

      <T extends AbstractAsSearchProfileModel> List<T> getSearchProfiles(String query, Map<String,Object> filters)
      Search for search profiles with filters.
      Parameters:
      query - query parameter for filtering
      filters - parameters for search
      Returns:
      list of search profiles or empty list if no profile is found
    • getSearchProfiles

      <T extends AbstractAsSearchProfileModel> SearchPageData<T> getSearchProfiles(String query, Map<String,Object> filters, SearchPageData<?> pagination)
      Search for search profiles with filters.
      Parameters:
      query - query parameter for filtering
      filters - parameters for search
      pagination - holder of pagination data and sort options
      Returns:
      list of search profiles or empty list if no profile is found