Interface FlexibleSearchTypeCacheProvider
- All Known Implementing Classes:
DefaultFlexibleSearchTypeCacheProvider
public interface FlexibleSearchTypeCacheProvider
Provides methods for accessing persistence data of underlying type system by FlexibleSearch engine.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classInformation object for property attributes. -
Method Summary
Modifier and TypeMethodDescriptioncheckForUnknownPropertyAttribute(String type, String qualifier) Checks whether there is a property backed attribute and returns some information about it.getCachedTypeData(String typeCode) Gets the cached type data containing all required by FlexibleSearch informations about particular type.getExternalTableTypes(String typeCode) Returns all sub types of given type which are mapped to different deployments.getLanguagePkFromIsocode(String isoCode) Gets the language PK from isocode.getQueryFilters(ParsedQuery query, String type, boolean includeSubtypes) Gets the query filters for building possible restrictions.getSearchableSubTypes(String type) booleanhasExternalTables(String typeCode) Checks whether given type has any external tables.booleanisAbstractRootTable(String typeCode) Checks if given type is in abstract root table.booleanisNonSearchableType(String code) Tells whether the given type is actually searchable.
-
Method Details
-
isNonSearchableType
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
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
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
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 querytype- the composed typeincludeSubtypes- the include subtypes- Returns:
- the query filters
-
getSearchableSubTypes
-
getLanguagePkFromIsocode
Gets the language PK from isocode.- Parameters:
isoCode- the iso code- Returns:
- the language pk from isocode
-
getCachedTypeData
Gets the cached type data containing all required by FlexibleSearch informations about particular type.- Parameters:
typeCode- the type code- Returns:
- the cached type data
-