Package com.day.cq.contentsync.handler
Interface ContentUpdateHandler
- All Known Implementing Classes:
AbstractDefaultContentUpdateHandler,AbstractSlingResourceUpdateHandler,HashableContentUpdateHandler
public interface ContentUpdateHandler
Interface for Content Sync cache update handlers. Custom handlers
should implement this interface and register as OSGi component factory.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanupdateCacheEntry(ConfigEntry configEntry, Long lastUpdated, String configCacheRoot, Session admin, Session session) This method should update the content sync cache for the givenConfigEntry.
-
Method Details
-
updateCacheEntry
boolean updateCacheEntry(ConfigEntry configEntry, Long lastUpdated, String configCacheRoot, Session admin, Session session) This method should update the content sync cache for the givenConfigEntry. If the cache entry is missing or the content has changed relative to the given date, the handler should create/update the cache entry and indicate the update by returningtrue.- Parameters:
configEntry- The config entrylastUpdated- The last update cache timestampconfigCacheRoot- The path to cache rootadmin- The admin session for cache updatessession- The user session for personalized content- Returns:
trueif cache was updated,falseotherwise
-