From 00894355450179bea4b56e0abcf16243964ff286 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 15 Oct 2014 18:53:34 +0200 Subject: added Preprocessor Arguments --- .../at/gv/egiz/pdfas/lib/api/PdfAsParameter.java | 26 ++++++++++++++++++++++ .../gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java | 13 +++++++++++ 2 files changed, 39 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsParameter.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsParameter.java index 02779ff1..c2368255 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsParameter.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsParameter.java @@ -23,6 +23,8 @@ ******************************************************************************/ package at.gv.egiz.pdfas.lib.api; +import java.util.Map; + import javax.activation.DataSource; public interface PdfAsParameter { @@ -51,7 +53,31 @@ public interface PdfAsParameter { */ public void setDataSource(DataSource dataSource); + /** + * Gets the transaction id. + * + * @return the transaction id + */ public String getTransactionId(); + /** + * Sets the transaction id. + * + * @param id the new transaction id + */ public void setTransactionId(String id); + + /** + * Gets the preprocessor arguments. + * + * @return the preprocessor arguments + */ + public Map getPreprocessorArguments(); + + /** + * Sets the preprocessor arguments. + * + * @param map the map + */ + public void setPreprocessorArguments(Map map); } diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java index 7a141525..fb737c13 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java @@ -23,6 +23,8 @@ ******************************************************************************/ package at.gv.egiz.pdfas.lib.impl; +import java.util.Map; + import javax.activation.DataSource; import at.gv.egiz.pdfas.lib.api.Configuration; @@ -33,6 +35,7 @@ protected Configuration configuration; protected DataSource dataSource; protected String transactionId; + protected Map preProcessorProps; public PdfAsParameterImpl(Configuration configuration, DataSource dataSource) { @@ -64,4 +67,14 @@ protected Configuration configuration; public void setTransactionId(String id) { this.transactionId = id; } + + @Override + public Map getPreprocessorArguments() { + return preProcessorProps; + } + + @Override + public void setPreprocessorArguments(Map map) { + this.preProcessorProps = map; + } } -- cgit v1.2.3