Class DefaultOverridePreCacheServiceImpl
java.lang.Object
org.broadleafcommerce.common.cache.DefaultOverridePreCacheServiceImpl
- All Implemented Interfaces:
OverridePreCacheService
@Service("blOverridePreCacheService")
public class DefaultOverridePreCacheServiceImpl
extends Object
implements OverridePreCacheService
Default implementation of
OverridePreCacheService
. Simply contains no-ops methods.- Author:
- Jeff Fischer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindElements
(String... cacheKeys) Find any cached items matching the passed keysvoid
groomCacheBySiteOverride
(String entityType, Long cloneId, boolean isRemove) Add or remove from the cache based on an override declaration.void
groomCacheByTargetEntity
(String entityType, Serializable id) Update an overridden entity value in the cacheboolean
isActiveForType
(String type) Whether or not the cache is active for the specified typeboolean
isActiveIsolatedSiteForType
(Long siteId, String entityType) Assuming the passed in site is a standard site, determine whether or not the standard site has any isolated values (i.e. not inherited) for the given type.void
Refresh the entire cache structure.
-
Constructor Details
-
DefaultOverridePreCacheServiceImpl
public DefaultOverridePreCacheServiceImpl()
-
-
Method Details
-
findElements
Description copied from interface:OverridePreCacheService
Find any cached items matching the passed keys- Specified by:
findElements
in interfaceOverridePreCacheService
- Parameters:
cacheKeys
- the keys to check- Returns:
-
isActiveForType
Description copied from interface:OverridePreCacheService
Whether or not the cache is active for the specified type- Specified by:
isActiveForType
in interfaceOverridePreCacheService
- Parameters:
type
- the entity type to check- Returns:
-
isActiveIsolatedSiteForType
Description copied from interface:OverridePreCacheService
Assuming the passed in site is a standard site, determine whether or not the standard site has any isolated values (i.e. not inherited) for the given type. This information is generally useful when making optimized query determinations for whether or not the standard site should be included in the query.- Specified by:
isActiveIsolatedSiteForType
in interfaceOverridePreCacheService
- Returns:
-
groomCacheBySiteOverride
Description copied from interface:OverridePreCacheService
Add or remove from the cache based on an override declaration.- Specified by:
groomCacheBySiteOverride
in interfaceOverridePreCacheService
-
groomCacheByTargetEntity
Description copied from interface:OverridePreCacheService
Update an overridden entity value in the cache- Specified by:
groomCacheByTargetEntity
in interfaceOverridePreCacheService
-
refreshCache
public void refreshCache()Description copied from interface:OverridePreCacheService
Refresh the entire cache structure. Presumably, this will clear and rebuild the structure.- Specified by:
refreshCache
in interfaceOverridePreCacheService
-