aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-15 18:53:34 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-15 18:53:34 +0200
commit00894355450179bea4b56e0abcf16243964ff286 (patch)
tree4faea46075e031f77188f90375d84224556ab5c1 /pdf-as-lib/src/main
parentf471f8da55137d49ae0c7215ebf2a3a29b2e1504 (diff)
downloadpdf-as-4-00894355450179bea4b56e0abcf16243964ff286.tar.gz
pdf-as-4-00894355450179bea4b56e0abcf16243964ff286.tar.bz2
pdf-as-4-00894355450179bea4b56e0abcf16243964ff286.zip
added Preprocessor Arguments
Diffstat (limited to 'pdf-as-lib/src/main')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsParameter.java26
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsParameterImpl.java13
2 files changed, 39 insertions, 0 deletions
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<String, String> getPreprocessorArguments();
+
+ /**
+ * Sets the preprocessor arguments.
+ *
+ * @param map the map
+ */
+ public void setPreprocessorArguments(Map<String, String> 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<String, String> 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<String, String> getPreprocessorArguments() {
+ return preProcessorProps;
+ }
+
+ @Override
+ public void setPreprocessorArguments(Map<String, String> map) {
+ this.preProcessorProps = map;
+ }
}