All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.day.cq.contentsync.handler.ContentUpdateHandler Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
/*
 * Copyright 1997-2010 Day Management AG
 * Barfuesserplatz 6, 4001 Basel, Switzerland
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Day Management AG, ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Day.
 */
package com.day.cq.contentsync.handler;

import javax.jcr.Session;

import com.day.cq.contentsync.config.ConfigEntry;

/**
 * Interface for Content Sync cache update handlers. Custom handlers
 * should implement this interface and register as OSGi component factory.
 */
public interface ContentUpdateHandler {
    /**
     * This method should update the content sync cache for
     * the given {@code 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 {@code true}.
     *
     * @param configEntry     The config entry
     * @param lastUpdated     The last update cache timestamp
     * @param configCacheRoot The path to cache root
     * @param admin           The admin session for cache updates
     * @param session         The user session for personalized content
     * @return {@code true} if cache was updated, {@code false} otherwise
     */
    public boolean updateCacheEntry(ConfigEntry configEntry, Long lastUpdated, String configCacheRoot, Session admin, Session session);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy