DPSSubPagesUpdateHandler.java 1.1 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.day.cq.contentsync.config.ConfigEntry
 *  org.apache.felix.scr.annotations.Component
 *  org.apache.sling.api.resource.ResourceResolver
 */
package com.adobe.cq.mobile.dps.impl.contentsync;

import com.adobe.cq.mobile.dps.impl.contentsync.DPSPagesUpdateHandler;
import com.adobe.cq.mobile.dps.impl.rewriter.PathRewriterOptions;
import com.day.cq.contentsync.config.ConfigEntry;
import org.apache.felix.scr.annotations.Component;
import org.apache.sling.api.resource.ResourceResolver;

@Component(metatype=1, factory="com.day.cq.contentsync.handler.ContentUpdateHandler/publish-subpages", inherit=1)
public class DPSSubPagesUpdateHandler
extends DPSPagesUpdateHandler {
    @Override
    protected void createPathRewritingOptions(boolean isClassic, ConfigEntry configEntry, ResourceResolver resolver) {
        super.createPathRewritingOptions(isClassic, configEntry, resolver);
        this.pageType = PathRewriterOptions.PageType.SUB_PAGE;
    }

    @Override
    protected String getTargetPath(String path) {
        return path;
    }
}