Interface FlexibleSearchTypeCacheProvider
-
- All Known Implementing Classes:
DefaultFlexibleSearchTypeCacheProvider
public interface FlexibleSearchTypeCacheProviderProvides methods for accessing persistence data of underlying type system by FlexibleSearch engine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFlexibleSearchTypeCacheProvider.UnkownPropertyInfoInformation object for property attributes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FlexibleSearchTypeCacheProvider.UnkownPropertyInfocheckForUnknownPropertyAttribute(java.lang.String type, java.lang.String qualifier)Checks whether there is a property backed attribute and returns some information about it.CachedTypeDatagetCachedTypeData(java.lang.String typeCode)Gets the cached type data containing all required by FlexibleSearch informations about particular type.java.util.Set<PK>getExternalTableTypes(java.lang.String typeCode)Returns all sub types of given type which are mapped to different deployments.PKgetLanguagePkFromIsocode(java.lang.String isoCode)Gets the language PK from isocode.java.util.Collection<AbstractQueryFilter>getQueryFilters(ParsedQuery query, java.lang.String type, boolean includeSubtypes)Gets the query filters for building possible restrictions.java.util.Collection<java.lang.String>getSearchableSubTypes(java.lang.String type)booleanhasExternalTables(java.lang.String typeCode)Checks whether given type has any external tables.booleanisAbstractRootTable(java.lang.String typeCode)Checks if given type is in abstract root table.booleanisNonSearchableType(java.lang.String code)Tells whether the given type is actually searchable.
-
-
-
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 querytype- the composed typeincludeSubtypes- 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
-
-