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 Type
    Method
    Description
    boolean
    updateCacheEntry(ConfigEntry configEntry, Long lastUpdated, String configCacheRoot, Session admin, Session session)
    This method should update the content sync cache for the given ConfigEntry.
  • 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 given ConfigEntry. 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 returning true.
      Parameters:
      configEntry - The config entry
      lastUpdated - The last update cache timestamp
      configCacheRoot - The path to cache root
      admin - The admin session for cache updates
      session - The user session for personalized content
      Returns:
      true if cache was updated, false otherwise