DefaultPostProcessorImpl.java 1.74 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.aemds.guide.batch.api.PostProcessor
 *  com.adobe.aemds.guide.batch.api.ProcessResult
 *  com.adobe.aemds.guide.batch.exception.ProcessingException
 *  com.adobe.aemfd.docmanager.Document
 *  org.apache.felix.scr.annotations.Component
 *  org.apache.felix.scr.annotations.Service
 */
package com.adobe.aemds.guide.batch.impl;

import com.adobe.aemds.guide.batch.api.PostProcessor;
import com.adobe.aemds.guide.batch.api.ProcessResult;
import com.adobe.aemds.guide.batch.exception.ProcessingException;
import com.adobe.aemfd.docmanager.Document;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;

@Component(immediate=1, metatype=1, label="Default Post Processor", description="Default post processor service for batch generator.")
@Service(value={PostProcessor.class})
public class DefaultPostProcessorImpl
implements PostProcessor {
    public Document processBatchResult(Document input, Map<String, Object> postProcessorConfig) throws ProcessingException {
        return input;
    }

    public ProcessResult processBatchResult(List<Document> inputs, Map<Document, Map<String, Object>> postProcessorConfigs) {
        ProcessResult processResult = new ProcessResult();
        HashMap<Document, Document> processedDocuments = new HashMap<Document, Document>();
        for (Document input : inputs) {
            processedDocuments.put(input, input);
        }
        processResult.setProcessedDocuments(processedDocuments);
        return processResult;
    }

    public <T> void processStoreResult(Map<String, List<T>> accessControllableResources) {
    }
}