Interface FlexibleSearchTypeCacheProvider

  • All Known Implementing Classes:
    DefaultFlexibleSearchTypeCacheProvider

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

      • isNonSearchableType

        boolean isNonSearchableType​(java.lang.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​(java.lang.String type,
                                                                                            java.lang.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

        java.util.Set<PK> getExternalTableTypes​(java.lang.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​(java.lang.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​(java.lang.String typeCode)
        Checks if given type is in abstract root table.
        Parameters:
        typeCode - the type code
        Returns:
        true, if is abstract root table
      • getQueryFilters

        java.util.Collection<AbstractQueryFilter> getQueryFilters​(ParsedQuery query,
                                                                  java.lang.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

        java.util.Collection<java.lang.String> getSearchableSubTypes​(java.lang.String type)
      • getLanguagePkFromIsocode

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

        CachedTypeData getCachedTypeData​(java.lang.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