DefaultPostProcessorImpl.java
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* 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) {
}
}