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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
updateCacheEntry(ConfigEntry configEntry, java.lang.Long lastUpdated, java.lang.String configCacheRoot, Session admin, Session session)
This method should update the content sync cache for the givenConfigEntry
.
-
-
-
Method Detail
-
updateCacheEntry
boolean updateCacheEntry(ConfigEntry configEntry, java.lang.Long lastUpdated, java.lang.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:
true
if cache was updated,false
otherwise
-
-