PDFFormRenderSpec.java 6.85 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.livecycle.SinceLC
 */
package com.adobe.livecycle.formsservice.client;

import com.adobe.livecycle.SinceLC;
import com.adobe.livecycle.formsservice.client.AcrobatVersion;
import com.adobe.livecycle.formsservice.client.FormModel;
import com.adobe.livecycle.formsservice.client.PDFVersion;
import com.adobe.livecycle.formsservice.client.RenderAtClient;
import com.adobe.livecycle.formsservice.utils.FormsServiceClientUtils;
import java.io.Serializable;
import java.util.HashMap;

public class PDFFormRenderSpec
implements Serializable {
    private static final long serialVersionUID = 2155387699890123154L;
    private Boolean cacheEnabled = null;
    private PDFVersion pDFVersion = null;
    private boolean taggedPDF = true;
    private boolean linearizedPDF = false;
    private String seedPDF = null;
    private AcrobatVersion acrobatVersion = null;
    private String xCIURI = null;
    private String charset = null;
    private RenderAtClient renderAtClient = null;
    private String locale = null;
    private boolean standAlone = false;
    private FormModel formModel = FormModel.auto;
    private boolean xMLData = false;
    private boolean debugEnabled = false;
    private boolean clientCache = false;
    private Boolean generateServerAppearance = false;
    @SinceLC(value="10.0.0.0")
    private boolean enableViewerPreferences = false;
    @SinceLC(value="10.0.0.0")
    private boolean logPerformance = false;
    private HashMap internalOptionMap;
    private int auditLog = 0;

    public PDFFormRenderSpec() {
    }

    public PDFFormRenderSpec(Boolean cacheEnabled, PDFVersion pDFVersion, boolean taggedPDF, boolean linearizedPDF, String seedPDF, AcrobatVersion acrobatVersion, String xCIURI, String charset, RenderAtClient renderAtClient, String locale, boolean standAlone, FormModel formModel, boolean xMLData) {
        this.cacheEnabled = cacheEnabled;
        this.pDFVersion = pDFVersion;
        this.taggedPDF = taggedPDF;
        this.linearizedPDF = linearizedPDF;
        this.seedPDF = seedPDF;
        this.acrobatVersion = acrobatVersion;
        this.xCIURI = xCIURI;
        this.charset = charset;
        this.renderAtClient = renderAtClient;
        this.locale = locale;
        this.standAlone = standAlone;
        this.formModel = formModel;
        this.xMLData = xMLData;
    }

    @SinceLC(value="10.0.0.0")
    public boolean isLogPerformance() {
        return this.logPerformance;
    }

    @SinceLC(value="10.0.0.0")
    public void setLogPerformance(boolean logPerformance) {
        this.logPerformance = logPerformance;
    }

    public Boolean isCacheEnabled() {
        return this.cacheEnabled;
    }

    public Boolean getCacheEnabled() {
        return this.cacheEnabled;
    }

    @SinceLC(value="10.0.0.0")
    public boolean isEnableViewerPreferences() {
        return this.enableViewerPreferences;
    }

    @SinceLC(value="10.0.0.0")
    public void setEnableViewerPreferences(boolean enableViewerPreferences) {
        this.enableViewerPreferences = enableViewerPreferences;
    }

    public void setCacheEnabled(Boolean cacheEnabled) {
        this.cacheEnabled = cacheEnabled;
    }

    public PDFVersion getPDFVersion() {
        return this.pDFVersion;
    }

    public void setPDFVersion(PDFVersion pDFVersion) {
        this.pDFVersion = pDFVersion;
    }

    public boolean isTaggedPDF() {
        return this.taggedPDF;
    }

    public void setTaggedPDF(boolean taggedPDF) {
        this.taggedPDF = taggedPDF;
    }

    public boolean isLinearizedPDF() {
        return this.linearizedPDF;
    }

    public void setLinearizedPDF(boolean linearizedPDF) {
        this.linearizedPDF = linearizedPDF;
    }

    public String getSeedPDF() {
        return this.seedPDF;
    }

    public void setSeedPDF(String seedPDF) {
        this.seedPDF = seedPDF;
    }

    public AcrobatVersion getAcrobatVersion() {
        return this.acrobatVersion;
    }

    public void setAcrobatVersion(AcrobatVersion acrobatVersion) {
        this.acrobatVersion = acrobatVersion;
    }

    public String getXCIURI() {
        return this.decodeURL(this.xCIURI);
    }

    public void setXCIURI(String xCIURI) {
        this.xCIURI = xCIURI;
    }

    public String getCharset() {
        return this.charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public RenderAtClient getRenderAtClient() {
        return this.renderAtClient;
    }

    public void setRenderAtClient(RenderAtClient renderAtClient) {
        this.renderAtClient = renderAtClient;
    }

    public String getLocale() {
        return this.locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public boolean isStandAlone() {
        return this.standAlone;
    }

    public void setStandAlone(boolean standAlone) {
        this.standAlone = standAlone;
    }

    public FormModel getFormModel() {
        return this.formModel;
    }

    public void setFormModel(FormModel formModel) {
        this.formModel = formModel;
    }

    public boolean isXMLData() {
        return this.xMLData;
    }

    public void setXMLData(boolean xMLData) {
        this.xMLData = xMLData;
    }

    private String decodeURL(String sURLEncoded) {
        if (sURLEncoded != null && sURLEncoded.indexOf(37) != -1) {
            byte[] cDecoded = FormsServiceClientUtils.URLDecode(sURLEncoded);
            sURLEncoded = new String(cDecoded);
        }
        return sURLEncoded;
    }

    @SinceLC(value="8.2.1")
    public boolean isDebugEnabled() {
        return this.debugEnabled;
    }

    public void setDebugEnabled(boolean debugEnabled) {
        this.debugEnabled = debugEnabled;
    }

    @SinceLC(value="8.2.1")
    public boolean isClientCache() {
        return this.clientCache;
    }

    public void setClientCache(boolean clientCache) {
        this.clientCache = clientCache;
    }

    @SinceLC(value="9.0.0")
    public Boolean getGenerateServerAppearance() {
        return this.generateServerAppearance;
    }

    public void setGenerateServerAppearance(Boolean generateServerAppearance) {
        this.generateServerAppearance = generateServerAppearance;
    }

    public void setInternalOption(String key, String val) {
        if (key != null) {
            if (this.internalOptionMap == null) {
                this.internalOptionMap = new HashMap();
            }
            this.internalOptionMap.put(key.toLowerCase(), val);
        }
    }

    public String getInternalOption(String key) {
        if (this.internalOptionMap != null && key != null) {
            return (String)this.internalOptionMap.get(key.toLowerCase());
        }
        return null;
    }

    @SinceLC(value="11.0.1")
    public int getAuditLog() {
        return this.auditLog;
    }

    public void setAuditLog(int auditLog) {
        this.auditLog = auditLog;
    }
}