Class DefaultFlexibleSearchTypeCacheProvider
java.lang.Object
de.hybris.platform.persistence.flexiblesearch.typecache.impl.DefaultFlexibleSearchTypeCacheProvider
- All Implemented Interfaces:
FlexibleSearchTypeCacheProvider
public class DefaultFlexibleSearchTypeCacheProvider
extends Object
implements FlexibleSearchTypeCacheProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.persistence.flexiblesearch.typecache.FlexibleSearchTypeCacheProvider
FlexibleSearchTypeCacheProvider.UnkownPropertyInfo -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFlexibleSearchTypeCacheProvider(FlexibleSearch flexibleSearch) DefaultFlexibleSearchTypeCacheProvider(PersistenceManager persistenceManager, TypeManager typeManager, C2LManager c2lManager, FlexibleSearch flexibleSearch) -
Method Summary
Modifier and TypeMethodDescriptioncheckForUnknownPropertyAttribute(String type, String qualifier) Checks whether there is a property backed attribute and returns some information about it.protected C2LManagergetCachedTypeData(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.protected FlexibleSearchgetLanguagePkFromIsocode(String isoCode) Gets the language PK from isocode.protected PersistenceManagergetQueryFilters(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.
-
Constructor Details
-
DefaultFlexibleSearchTypeCacheProvider
public DefaultFlexibleSearchTypeCacheProvider() -
DefaultFlexibleSearchTypeCacheProvider
-
DefaultFlexibleSearchTypeCacheProvider
public DefaultFlexibleSearchTypeCacheProvider(PersistenceManager persistenceManager, TypeManager typeManager, C2LManager c2lManager, FlexibleSearch flexibleSearch)
-
-
Method Details
-
isNonSearchableType
Description copied from interface:FlexibleSearchTypeCacheProviderTells whether the given type is actually searchable.- Specified by:
isNonSearchableTypein interfaceFlexibleSearchTypeCacheProvider- Returns:
- false in case of being a ViewType or Jalo-only
-
getSearchableSubTypes
- Specified by:
getSearchableSubTypesin interfaceFlexibleSearchTypeCacheProvider
-
checkForUnknownPropertyAttribute
public FlexibleSearchTypeCacheProvider.UnkownPropertyInfo checkForUnknownPropertyAttribute(String type, String qualifier) Description copied from interface:FlexibleSearchTypeCacheProviderChecks whether there is a property backed attribute and returns some information about it.- Specified by:
checkForUnknownPropertyAttributein interfaceFlexibleSearchTypeCacheProvider- Returns:
- info object if that attribute exists, null otherwise
-
hasExternalTables
Description copied from interface:FlexibleSearchTypeCacheProviderChecks whether given type has any external tables.- Specified by:
hasExternalTablesin interfaceFlexibleSearchTypeCacheProvider- Parameters:
typeCode- the type code of type for which external tables should be checked- Returns:
- true, if successful
-
getExternalTableTypes
Description copied from interface:FlexibleSearchTypeCacheProviderReturns all sub types of given type which are mapped to different deployments.- Specified by:
getExternalTableTypesin interfaceFlexibleSearchTypeCacheProvider- Parameters:
typeCode- the type code of type for which external tables should be checked
-
isAbstractRootTable
Description copied from interface:FlexibleSearchTypeCacheProviderChecks if given type is in abstract root table.- Specified by:
isAbstractRootTablein interfaceFlexibleSearchTypeCacheProvider- Parameters:
typeCode- the type code- Returns:
- true, if is abstract root table
-
getCachedTypeData
Description copied from interface:FlexibleSearchTypeCacheProviderGets the cached type data containing all required by FlexibleSearch informations about particular type.- Specified by:
getCachedTypeDatain interfaceFlexibleSearchTypeCacheProvider- Parameters:
typeCode- the type code- Returns:
- the cached type data
-
getLanguagePkFromIsocode
Description copied from interface:FlexibleSearchTypeCacheProviderGets the language PK from isocode.- Specified by:
getLanguagePkFromIsocodein interfaceFlexibleSearchTypeCacheProvider- Parameters:
isoCode- the iso code- Returns:
- the language pk from isocode
-
getQueryFilters
public Collection<AbstractQueryFilter> getQueryFilters(ParsedQuery query, String type, boolean includeSubtypes) Description copied from interface:FlexibleSearchTypeCacheProviderGets the query filters for building possible restrictions.- Specified by:
getQueryFiltersin interfaceFlexibleSearchTypeCacheProvider- Parameters:
query- the original querytype- the composed typeincludeSubtypes- the include subtypes- Returns:
- the query filters
-
getPersistenceManager
-
getFlexibleSearch
-
getC2LManager
-