Interface AsSearchProfileService

All Known Implementing Classes:
DefaultAsSearchProfileService

public interface AsSearchProfileService
Service that provides basic functionality for search profiles.
  • Method Details

    • getAllSearchProfiles

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

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

      <T extends AbstractAsSearchProfileModel> List<T> getSearchProfilesForCatalogVersion(CatalogVersionModel catalogVersion)
      Returns all search profiles for a specific catalog version.
      Parameters:
      catalogVersion - - the catalog version
      Returns:
      list of search profiles or empty list if no profile is found
    • getSearchProfileForCode

      <T extends AbstractAsSearchProfileModel> Optional<T> getSearchProfileForCode(CatalogVersionModel catalogVersion, String code)
      Returns the search profile 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)
      Returns search profiles.
      Parameters:
      query - query parameter for filtering
      filters - parameters for filtering
      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)
      Returns paginated search profiles.
      Parameters:
      query - query parameter for filtering
      filters - parameters for filtering
      pagination - holder of pagination data and sort options
      Returns:
      list of search profiles or empty list if no profile is found
    • cloneSearchProfile

      <T extends AbstractAsSearchProfileModel> T cloneSearchProfile(T original)
      Creates a deep copy of the given search profile. The resulting object is not persisted yet in order to allow modifications like unique key adjustments etc.
      Parameters:
      original - - the original search profile
      Returns:
      the deep copy of the search profile