MobileRootPageUpdateHandler.java 1.26 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.day.cq.contentsync.config.ConfigEntry
 *  com.day.cq.wcm.api.Page
 *  javax.jcr.RepositoryException
 *  javax.jcr.Session
 *  org.apache.felix.scr.annotations.Component
 */
package com.adobe.cq.mobile.platform.impl.contentsync.handler;

import com.adobe.cq.mobile.platform.impl.contentsync.handler.MobilePagesUpdateHandler;
import com.day.cq.contentsync.config.ConfigEntry;
import com.day.cq.wcm.api.Page;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import org.apache.felix.scr.annotations.Component;

@Component(metatype=1, factory="com.day.cq.contentsync.handler.ContentUpdateHandler/mobileapprootpage", inherit=1)
public class MobileRootPageUpdateHandler
extends MobilePagesUpdateHandler {
    @Override
    protected boolean isModified(Page page, String uri, Long lastUpdated, ConfigEntry configEntry, String configCacheRoot, Session session) throws RepositoryException {
        boolean modified = true;
        if (this.includeOnlyModifiedPages(configEntry)) {
            if (!session.nodeExists(configCacheRoot + uri)) {
                return true;
            }
            modified = this.isModified(page, lastUpdated, 0, -1);
        }
        return modified;
    }
}