WatchFolderConfiguration.java 6.84 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.aemfd.watchfolder.config;

import java.util.HashMap;
import java.util.Map;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public class WatchFolderConfiguration {
    public static final long DEFAULT_POLL_INTERVAL = 5;
    private String id;
    private String folderPath;
    private String inputProcessorType;
    private String inputProcessorId;
    private String runModes;
    private String outputFilePattern = null;
    private boolean enabled = true;
    private long pollInterval = 5;
    private String excludeFilePattern;
    private String includeFilePattern = "*";
    private long waitTime = 0;
    private long purgeDuration = -1;
    private String inputFolderName = "input";
    private String stageFolderName = "stage";
    private String failureFolderName = "failure/%Y/%M/%D/";
    private String resultFolderName = "result/%Y/%M/%D/";
    private String preserveFolderName = "preserve/%Y/%M/%D/";
    private int batchSize = 2;
    private boolean throttleOn = true;
    private boolean overwriteDuplicateFilename = false;
    private boolean preserveOnFailure = true;
    private String inputFilePattern = "*.*";
    private boolean asynch = true;
    private Map<String, Object> params = new HashMap<String, Object>();
    private Map<String, Object> customData = new HashMap<String, Object>();
    private long stageFileExpirationDuration = -1;
    private boolean deleteExpiredStageFileOnlyWhenThrottled = true;
    private String payloadMapperFilter = null;

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFolderPath() {
        return this.folderPath;
    }

    public void setFolderPath(String folderPath) {
        this.folderPath = folderPath;
    }

    public String getInputProcessorType() {
        return this.inputProcessorType;
    }

    public void setInputProcessorType(String inputProcessorType) {
        this.inputProcessorType = inputProcessorType;
    }

    public String getInputProcessorId() {
        return this.inputProcessorId;
    }

    public void setInputProcessorId(String inputProcessorId) {
        this.inputProcessorId = inputProcessorId;
    }

    public String getRunModes() {
        return this.runModes;
    }

    public void setRunModes(String runModes) {
        this.runModes = runModes;
    }

    public boolean isEnabled() {
        return this.enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public long getPollInterval() {
        return this.pollInterval;
    }

    public void setPollInterval(Long pollInterval) {
        this.pollInterval = pollInterval;
    }

    public String getExcludeFilePattern() {
        return this.excludeFilePattern;
    }

    public String getIncludeFilePattern() {
        return this.includeFilePattern;
    }

    public long getWaitTime() {
        return this.waitTime;
    }

    public long getPurgeDuration() {
        return this.purgeDuration;
    }

    public String getInputFolderName() {
        return this.inputFolderName;
    }

    public String getStageFolderName() {
        return this.stageFolderName;
    }

    public String getFailureFolderName() {
        return this.failureFolderName;
    }

    public String getResultFolderName() {
        return this.resultFolderName;
    }

    public String getPreserveFolderName() {
        return this.preserveFolderName;
    }

    public int getBatchSize() {
        return this.batchSize;
    }

    public boolean isThrottleOn() {
        return this.throttleOn;
    }

    public boolean isOverwriteDuplicateFilename() {
        return this.overwriteDuplicateFilename;
    }

    public boolean isPreserveOnFailure() {
        return this.preserveOnFailure;
    }

    public String getInputFilePattern() {
        return this.inputFilePattern;
    }

    public String getOutputFilePattern() {
        return this.outputFilePattern;
    }

    public boolean isAsynch() {
        return this.asynch;
    }

    public Map<String, Object> getParams() {
        return this.params;
    }

    public void setExcludeFilePattern(String excludeFilePattern) {
        this.excludeFilePattern = excludeFilePattern;
    }

    public void setIncludeFilePattern(String includeFilePattern) {
        this.includeFilePattern = includeFilePattern;
    }

    public void setWaitTime(Long waitTime) {
        this.waitTime = waitTime;
    }

    public void setPurgeDuration(Long purgeDuration) {
        this.purgeDuration = purgeDuration;
    }

    public void setFailureFolderName(String failureFolderName) {
        this.failureFolderName = failureFolderName;
    }

    public void setResultFolderName(String resultFolderName) {
        this.resultFolderName = resultFolderName;
    }

    public void setPreserveFolderName(String preserveFolderName) {
        this.preserveFolderName = preserveFolderName;
    }

    public void setBatchSize(Long batchSize) {
        this.batchSize = batchSize.intValue();
    }

    public void setThrottleOn(Boolean throttleOn) {
        this.throttleOn = throttleOn;
    }

    public void setOverwriteDuplicateFilename(Boolean overwriteDuplicateFilename) {
        this.overwriteDuplicateFilename = overwriteDuplicateFilename;
    }

    public void setPreserveOnFailure(Boolean preserveOnFailure) {
        this.preserveOnFailure = preserveOnFailure;
    }

    public void setInputFilePattern(String inputFilePattern) {
        this.inputFilePattern = inputFilePattern;
    }

    public void setOutputFilePattern(String outputFilePattern) {
        this.outputFilePattern = outputFilePattern;
    }

    public void setAsynch(Boolean asynch) {
        this.asynch = asynch;
    }

    public void setParam(String key, Object value) {
        this.params.put(key, value);
    }

    public Object getCustomData(String key) {
        return this.customData.get(key);
    }

    public void setCustomData(String key, Object value) {
        this.customData.put(key, value);
    }

    public long getStageFileExpirationDuration() {
        return this.stageFileExpirationDuration;
    }

    public void setStageFileExpirationDuration(Long stageFileExpirationDuration) {
        this.stageFileExpirationDuration = stageFileExpirationDuration;
    }

    public boolean isDeleteExpiredStageFileOnlyWhenThrottled() {
        return this.deleteExpiredStageFileOnlyWhenThrottled;
    }

    public void setDeleteExpiredStageFileOnlyWhenThrottled(Boolean deleteExpiredStageFileOnlyWhenThrottled) {
        this.deleteExpiredStageFileOnlyWhenThrottled = deleteExpiredStageFileOnlyWhenThrottled;
    }

    public String getPayloadMapperFilter() {
        return this.payloadMapperFilter;
    }

    public void setPayloadMapperFilter(String payloadMapperFilter) {
        this.payloadMapperFilter = payloadMapperFilter;
    }
}