Interface FlexibleSearchTypeCacheProvider

All Known Implementing Classes:
DefaultFlexibleSearchTypeCacheProvider

public interface FlexibleSearchTypeCacheProvider
Provides methods for accessing persistence data of underlying type system by FlexibleSearch engine.
  • Method Details

    • isNonSearchableType

      boolean isNonSearchableType(String code)
      Tells whether the given type is actually searchable.
      Returns:
      false in case of being a ViewType or Jalo-only
    • checkForUnknownPropertyAttribute

      FlexibleSearchTypeCacheProvider.UnkownPropertyInfo checkForUnknownPropertyAttribute(String type, String qualifier)
      Checks whether there is a property backed attribute and returns some information about it.
      Returns:
      info object if that attribute exists, null otherwise
    • getExternalTableTypes

      Set<PK> getExternalTableTypes(String typeCode)
      Returns all sub types of given type which are mapped to different deployments.
      Parameters:
      typeCode - the type code of type for which external tables should be checked
    • hasExternalTables

      boolean hasExternalTables(String typeCode)
      Checks whether given type has any external tables.
      Parameters:
      typeCode - the type code of type for which external tables should be checked
      Returns:
      true, if successful
    • isAbstractRootTable

      boolean isAbstractRootTable(String typeCode)
      Checks if given type is in abstract root table.
      Parameters:
      typeCode - the type code
      Returns:
      true, if is abstract root table
    • getQueryFilters

      Collection<AbstractQueryFilter> getQueryFilters(ParsedQuery query, String type, boolean includeSubtypes)
      Gets the query filters for building possible restrictions.
      Parameters:
      query - the original query
      type - the composed type
      includeSubtypes - the include subtypes
      Returns:
      the query filters
    • getSearchableSubTypes

      Collection<String> getSearchableSubTypes(String type)
    • getLanguagePkFromIsocode

      PK getLanguagePkFromIsocode(String isoCode)
      Gets the language PK from isocode.
      Parameters:
      isoCode - the iso code
      Returns:
      the language pk from isocode
    • getCachedTypeData

      CachedTypeData getCachedTypeData(String typeCode)
      Gets the cached type data containing all required by FlexibleSearch informations about particular type.
      Parameters:
      typeCode - the type code
      Returns:
      the cached type data