1 13 14 package org.ejbca.core.model.hardtoken.profiles; 15 16 import java.awt.print.Printable ; 17 import java.awt.print.PrinterException ; 18 import java.io.IOException ; 19 20 import org.ejbca.core.model.ra.UserDataVO; 21 22 23 24 25 26 27 34 35 public interface IReceiptSettings { 36 37 38 41 public static int RECEIPTTYPE_NONE = 0; 42 46 public static int RECEIPTTYPE_GENERAL = 1; 47 48 49 52 public abstract int getReceiptType(); 53 54 57 public abstract void setReceiptType(int type); 58 59 62 public abstract String getReceiptTemplateFilename(); 63 64 67 public abstract void setReceiptTemplateFilename(String filename); 68 69 72 public abstract String getReceiptData(); 73 74 75 78 public abstract void setReceiptData(String templatedata); 79 80 83 public abstract int getNumberOfReceiptCopies(); 84 85 88 public abstract void setNumberOfReceiptCopies(int copies); 89 90 91 95 public abstract Printable printReceipt(UserDataVO userdata, 96 String [] pincodes, String [] pukcodes, 97 String hardtokensn, String copyoftokensn) 98 throws IOException , PrinterException ; 99 } 100 101 | Popular Tags |