diff options
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config')
7 files changed, 171 insertions, 171 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigManipulator.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigManipulator.java index befb244b..2a34b440 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigManipulator.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigManipulator.java @@ -171,28 +171,28 @@ public interface ConfigManipulator { */ public void saveCurrentConfiguration() throws IOException; - + /** * Sets whether to use an existing signaturemarker. * QR-Code only - * + * * @param useMarker * whether to use an existing signaturemarker */ public void setUseMarker(boolean useMarker); - + /** - * Sets the use of signature fields as signature marker + * Sets the use of signature fields as signature marker * @param useFields */ public void setUseSignatureFields(boolean useFields); - + /** * @param bool */ public void setEnablePlaceholderUsage(boolean bool); - + /** * @return */ @@ -204,7 +204,7 @@ public interface ConfigManipulator { public void setSignatureProfile(String profile); public void setSaveFilePostFix(String postFix); - + } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigOverlayManipulator.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigOverlayManipulator.java index 9b54f4ee..9c82845d 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigOverlayManipulator.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigOverlayManipulator.java @@ -20,7 +20,7 @@ import at.asit.pdfover.signator.SignaturePosition; /** * An interface for setting the configuration overlay - * + * * This overlay overrides the actual configuration but will not be saved */ public interface ConfigOverlayManipulator { @@ -131,10 +131,10 @@ public interface ConfigOverlayManipulator { * @param configurationFile */ public void setConfigurationFile(String configurationFile); - + /** - * + * * @param profile */ - public void setSignatureProfile(String profile); + public void setSignatureProfile(String profile); } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProvider.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProvider.java index b6935206..38526326 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProvider.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProvider.java @@ -32,11 +32,11 @@ public interface ConfigProvider { /** * RegEx for parsing signature position */ - public static final String SIGN_POS_REGEX = "(x=(\\d\\.?\\d?);y=(\\d\\.?\\d?);p=(\\d))|(auto)|(x=(\\d\\.?\\d?);y=(\\d\\.?\\d?))"; //$NON-NLS-1$ + public static final String SIGN_POS_REGEX = "(x=(\\d\\.?\\d?);y=(\\d\\.?\\d?);p=(\\d))|(auto)|(x=(\\d\\.?\\d?);y=(\\d\\.?\\d?))"; // /** * Loads the configuration from a configuration file - * + * * @param configSource * the configuration file * @throws IOException @@ -45,77 +45,77 @@ public interface ConfigProvider { /** * Gets the configuration file - * + * * @return the configuration file */ public String getConfigurationFile(); /** * Gets the configuration directory - * + * * @return the configuration directory */ public String getConfigurationDirectory(); /** * Gets the default Mobile number - * + * * @return the default mobile number */ public String getDefaultMobileNumber(); /** * Gets the password to use for Mobile BKU - * + * * @return the password */ public String getDefaultMobilePassword(); /** * Gets the filename of the default emblem - * + * * @return the emblem */ public String getDefaultEmblem(); /** * Gets the proxy host - * + * * @return the proxy hostname or ip address */ public String getProxyHost(); /** * Gets the proxy port - * + * * @return the proxy port */ public int getProxyPort(); /** * Gets the proxy username - * + * * @return the proxy username */ public String getProxyUser(); /** * Gets the proxy password - * + * * @return the proxy password */ public String getProxyPass(); /** * Get the default configured BKU - * + * * @return the default configured BKU */ public BKUs getDefaultBKU(); /** * Get the default configured SignaturePosition - * + * * @return the default configured SignaturePosition or null if not * configured */ @@ -123,126 +123,126 @@ public interface ConfigProvider { /** * Get the transparency of the signature placeholder - * + * * @return the transparency of the signature placeholder */ public int getPlaceholderTransparency(); /** * Gets the default output folder for signed documents - * + * * @return the default output folder */ public String getDefaultOutputFolder(); /** * Gets the mobile BKU URL - * + * * @return the mobile BKU URL */ public String getMobileBKUURL(); /** * Gets the mobile BKU type - * + * * @return the mobile BKU type */ public MobileBKUs getMobileBKUType(); /** * Gets the mobile BKU BASE64 setting - * + * * @return the mobile BKU BASE64 setting */ public boolean getMobileBKUBase64(); /** * Get the signature note text to use - * + * * @return the signature note text */ public String getSignatureNote(); /** * Gets the configured locale - * + * * @return the configured locale */ public Locale getLocale(); /** * Gets the configured locale - * + * * @return the configured locale */ public Locale getSignatureLocale(); /** * Get the signature PDF/A compatibility setting - * + * * @return the signature PDF/A compatibility setting */ public boolean getSignaturePdfACompat(); /** * Gets whether keystore signing is enabled - * + * * @return whether keystore signing is enabled */ public Boolean getKeyStoreEnabled(); /** * Gets the keystore file - * + * * @return the keystore file */ public String getKeyStoreFile(); /** * Gets the keystore type - * + * * @return the keystore type */ public String getKeyStoreType(); /** * Gets the keystore alias - * + * * @return the keystore alias */ public String getKeyStoreAlias(); /** * Gets the keystore store password - * + * * @return the keystore store password */ public String getKeyStoreStorePass(); /** * Gets the keystore key password - * + * * @return the keystore key password */ public String getKeyStoreKeyPass(); /** * Gets whether to automatically check for application updates - * + * * @return whether to automatically check for application updates */ public boolean getUpdateCheck(); /** * Gets the configured MainWindow size - * + * * @return the configured MainWindow size */ public Point getMainWindowSize(); /** * Gets whether to skip the finish screen - * + * * @return whether to skip the finish screen */ public boolean getSkipFinish(); @@ -253,14 +253,14 @@ public interface ConfigProvider { * @return whether to use a signature maker */ public boolean getUseMarker(); - + /** * Gets whether to use signature fileds instead of QR code. * * @return boolean */ public boolean getUseSignatureFields(); - + /** * @return */ @@ -270,8 +270,8 @@ public interface ConfigProvider { * @param profile */ public void setSignatureProfile(String profile); - - + + /** * @return */ diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java index a744cf72..6edd7662 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java @@ -59,7 +59,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * An empty property entry */ - private static final String STRING_EMPTY = ""; //$NON-NLS-1$ + private static final String STRING_EMPTY = ""; // private String configurationFile = Constants.DEFAULT_CONFIG_FILENAME; @@ -79,7 +79,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigProvider#loadConfiguration(java.io * .InputStream) @@ -110,13 +110,13 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, setSaveFilePostFix(postFix); String localeString = config.getProperty(Constants.CFG_LOCALE); - + Locale targetLocale = LocaleSerializer.parseFromString(localeString); if (targetLocale != null) setLocale(targetLocale); String signatureLocaleString = config.getProperty(Constants.CFG_SIGNATURE_LOCALE); - + Locale signatureTargetLocale = LocaleSerializer.parseFromString(signatureLocaleString); if (signatureTargetLocale != null) setSignatureLocale(signatureTargetLocale); @@ -124,15 +124,15 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, String useMarker = config.getProperty(Constants.CFG_USE_MARKER); if (useMarker != null) setUseMarker(useMarker.equalsIgnoreCase(Constants.TRUE)); - + String useSignatureFields = config.getProperty(Constants.CFG_USE_SIGNATURE_FIELDS); if (useSignatureFields != null) setUseSignatureFields(useSignatureFields.equalsIgnoreCase(Constants.TRUE)); - + String enablePlaceholder = config.getProperty(Constants.CFG_ENABLE_PLACEHOLDER); if (enablePlaceholder != null) setEnablePlaceholderUsage(enablePlaceholder.equalsIgnoreCase(Constants.TRUE)); - + String signatureProfile = config.getProperty(Constants.SIGNATURE_PROFILE); if (signatureProfile != null) { @@ -143,7 +143,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, this.configurationOverlay.setSignatureProfile(profile); } } - + String compat = config.getProperty(Constants.CFG_SIGNATURE_PDFA_COMPAT); if (compat != null) setSignaturePdfACompat(compat.equalsIgnoreCase(Constants.TRUE)); @@ -162,7 +162,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, this.configuration.setMobileBKUType(MobileBKUs.valueOf( bkuType.trim().toUpperCase())); } catch (IllegalArgumentException e) { - log.error("Invalid BKU type: " + bkuType); //$NON-NLS-1$ + log.error("Invalid BKU type: " + bkuType); // this.configuration.setMobileBKUType(DEFAULT_MOBILE_BKU_TYPE); } } @@ -179,7 +179,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, if (port > 0 && port <= 0xFFFF) setProxyPort(port); else - log.warn("Proxy port is out of range!: " + port); //$NON-NLS-1$ + log.warn("Proxy port is out of range!: " + port); // } // Set Default BKU @@ -189,10 +189,10 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, try { defaultBKU = BKUs.valueOf(bkuString); } catch (IllegalArgumentException ex) { - log.error("Invalid BKU config value " + bkuString + " using none!"); //$NON-NLS-1$ //$NON-NLS-2$ + log.error("Invalid BKU config value " + bkuString + " using none!"); // // defaultBKU = BKUs.NONE; } catch (NullPointerException ex) { - log.error("Invalid BKU config value " + bkuString + " using none!"); //$NON-NLS-1$ //$NON-NLS-2$ + log.error("Invalid BKU config value " + bkuString + " using none!"); // // defaultBKU = BKUs.NONE; } } @@ -205,7 +205,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, try { transparency = Integer.parseInt(trans); } catch (NumberFormatException e) { - log.debug("Couldn't parse placeholder transparency", e); //$NON-NLS-1$ + log.debug("Couldn't parse placeholder transparency", e); // // ignore parsing exception } } @@ -226,7 +226,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, width = Integer.parseInt(size.substring(0, pos).trim()); height = Integer.parseInt(size.substring(pos + 1).trim()); } catch (NumberFormatException e) { - log.debug("Couldn't parse main window size", e); //$NON-NLS-1$ + log.debug("Couldn't parse main window size", e); // // ignore parsing exception } } @@ -257,7 +257,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, position = new SignaturePosition(x, y, p); } catch (NumberFormatException ex) { log.error( - "Signature Position read from config failed: Not a valid number", ex); //$NON-NLS-1$ + "Signature Position read from config failed: Not a valid number", ex); // } } else if (matcher.group(5) != null) { // we have format auto @@ -273,10 +273,10 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, position = new SignaturePosition(x, y); } } else { - log.error("Signature Position read from config failed: wrong group Count!"); //$NON-NLS-1$ + log.error("Signature Position read from config failed: wrong group Count!"); // } } else { - log.error("Signature Position read from config failed: not matching string"); //$NON-NLS-1$ + log.error("Signature Position read from config failed: not matching string"); // } } setDefaultSignaturePosition(position); @@ -300,7 +300,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigManipulator#saveCurrentConfiguration() */ @@ -338,7 +338,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, Integer.toString(getPlaceholderTransparency())); Point size = this.configuration.getMainWindowSize(); - props.setProperty(Constants.CFG_MAINWINDOW_SIZE, size.x + "," + size.y); //$NON-NLS-1$ + props.setProperty(Constants.CFG_MAINWINDOW_SIZE, size.x + "," + size.y); // Locale configLocale = getLocale(); if(configLocale != null) { @@ -352,11 +352,11 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, if (getUseMarker()) props.setProperty(Constants.CFG_USE_MARKER, Constants.TRUE); - + if (getUseSignatureFields()) { props.setProperty(Constants.CFG_USE_SIGNATURE_FIELDS, Constants.TRUE); } - + if (getEnablePlaceholderUsage()) { props.setProperty(Constants.CFG_ENABLE_PLACEHOLDER, Constants.TRUE); } @@ -366,12 +366,12 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, SignaturePosition pos = getDefaultSignaturePositionPersistent(); if (pos == null) { - props.setProperty(Constants.CFG_SIGNATURE_POSITION, ""); //$NON-NLS-1$ + props.setProperty(Constants.CFG_SIGNATURE_POSITION, ""); // } else if (pos.useAutoPositioning()) { - props.setProperty(Constants.CFG_SIGNATURE_POSITION, "auto"); //$NON-NLS-1$ + props.setProperty(Constants.CFG_SIGNATURE_POSITION, "auto"); // } else { props.setProperty(Constants.CFG_SIGNATURE_POSITION, - String.format((Locale) null, "x=%f;y=%f;p=%d", //$NON-NLS-1$ + String.format((Locale) null, "x=%f;y=%f;p=%d", // pos.getX(), pos.getY(), pos.getPage())); } @@ -409,21 +409,21 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, if (!getUpdateCheck()) props.setProperty(Constants.CFG_UPDATE_CHECK, Constants.FALSE); - + props.setProperty(Constants.SIGNATURE_PROFILE, getSignatureProfile()); - + FileOutputStream outputstream = new FileOutputStream(configFile, false); - props.store(outputstream, "Configuration file was generated!"); //$NON-NLS-1$ + props.store(outputstream, "Configuration file was generated!"); // - log.info("Configuration file saved to " + configFile.getAbsolutePath()); //$NON-NLS-1$ + log.info("Configuration file saved to " + configFile.getAbsolutePath()); // } /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigProvider#getConfigurationDirectory() */ @@ -434,7 +434,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigManipulator#setConfigurationFile(java * .lang.String) @@ -446,7 +446,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getConfigurationFile() */ @Override @@ -456,7 +456,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the default bku type - * + * * @param bku * the bku type */ @@ -471,12 +471,12 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, @Override public void setDefaultBKUOverlay(BKUs bku) { this.configurationOverlay.setDefaultBKU(bku); - + } /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getDefaultBKU() */ @Override @@ -497,7 +497,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the default signature position - * + * * @param signaturePosition * the default signature position */ @@ -517,7 +517,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigProvider#getDefaultSignaturePosition() */ @@ -539,7 +539,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the signature placeholder transparency - * + * * @param transparency * the signature placeholder transparency */ @@ -550,7 +550,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigProvider#getPlaceholderTransparency() */ @@ -561,7 +561,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the default mobile number - * + * * @param number * the default mobile number */ @@ -588,7 +588,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getDefaultMobileNumber() */ @Override @@ -612,7 +612,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the default mobile password - * + * * @param password * the default password */ @@ -639,7 +639,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getDefaultPassword() */ @Override @@ -663,7 +663,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the default emblem - * + * * @param emblem * the default emblem */ @@ -676,7 +676,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, this.configuration.setEmblem(emblem); } } catch (InvalidEmblemFile e) { - log.error("Error setting emblem file", e); //$NON-NLS-1$ + log.error("Error setting emblem file", e); // try { this.configuration.setEmblem(STRING_EMPTY); } catch (InvalidEmblemFile e1) { @@ -697,7 +697,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, this.configurationOverlay.setEmblem(emblem); } } catch (InvalidEmblemFile e) { - log.error("Error setting emblem file", e); //$NON-NLS-1$ + log.error("Error setting emblem file", e); // try { this.configurationOverlay.setEmblem(STRING_EMPTY); } catch (InvalidEmblemFile e1) { @@ -708,7 +708,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getDefaultEmblem() */ @Override @@ -729,7 +729,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, emblem = STRING_EMPTY; return emblem; } - + /*@Override public String getDownloadURL() { return Constants.CERTIFICATE_DOWNLOAD_XML_URL; @@ -737,7 +737,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the proxy host - * + * * @param host * the proxy host */ @@ -764,7 +764,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getProxyHost() */ @Override @@ -788,7 +788,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the proxy port - * + * * @param port * the proxy port */ @@ -797,7 +797,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, try { this.configuration.setProxyPort(port); } catch (InvalidPortException e) { - log.error("Error setting proxy port" , e); //$NON-NLS-1$ + log.error("Error setting proxy port" , e); // // ignore } } @@ -810,14 +810,14 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, try { this.configurationOverlay.setProxyPort(port); } catch (InvalidPortException e) { - log.error("Error setting proxy port" , e); //$NON-NLS-1$ + log.error("Error setting proxy port" , e); // // ignore } } /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getProxyPort() */ @Override @@ -838,7 +838,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the proxy username - * + * * @param user * the proxy username */ @@ -887,7 +887,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /** * Sets the proxy password - * + * * @param pass * the proxy password */ @@ -936,7 +936,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigManipulator#setDefaultOutputFolder * (java.lang.String) @@ -964,7 +964,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getDefaultOutputFolder() */ @Override @@ -988,7 +988,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getMobileBKUURL() */ @Override @@ -1015,7 +1015,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.ConfigManipulator#setSignatureNote(java. * lang.String) @@ -1031,7 +1031,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.ConfigProvider#getSignatureNote() */ @Override @@ -1424,14 +1424,14 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.config.ConfigProvider#getUseMarker() */ @Override public boolean getUseMarker() { return this.configurationOverlay.getUseMarker(); } - + /* (non-Javadoc) * @see at.asit.pdfover.gui.workflow.config.PersistentConfigProvider#getUseSignatureFields() */ @@ -1439,13 +1439,13 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, public boolean getUseSignatureFields() { return this.configurationOverlay.getUseSignatureFields(); } - - - + + + /* * (non-Javadoc) - * + * * @see at.asit.pdfover.gui.workflow.config.ConfigManipulator#setUseMarker( * boolean) */ @@ -1460,7 +1460,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, this.configurationOverlay.setUseSignatureFields(useFields); if (useFields) setUseMarker(false); } - + @Override public void setSignatureProfile(String profile) { this.configurationOverlay.setSignatureProfile(Profile.getProfile(profile)); @@ -1480,18 +1480,18 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, public String getSignatureProfile() { return this.configurationOverlay.getSignatureProfile().name(); } - - + + @Override public void setEnablePlaceholderUsage(boolean bool) { this.configurationOverlay.setEnablePlaceholderUsage(bool); } - + @Override public boolean getEnablePlaceholderUsage() { return this.configurationOverlay.getEnablePlaceholderUsage(); } - - - + + + } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java index e2381a6f..70661f3d 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainer.java @@ -50,7 +50,7 @@ public interface ConfigurationContainer { public String getMobileNumber(); /** - * Sets the mobile phone number + * Sets the mobile phone number * @param number the mobile phone number */ public void setMobileNumber(String number); @@ -62,7 +62,7 @@ public interface ConfigurationContainer { public String getMobilePassword(); /** - * Sets the mobile phone password + * Sets the mobile phone password * @param password the mobile phone password */ public void setMobilePassword(String password); @@ -81,18 +81,18 @@ public interface ConfigurationContainer { /** * Gets the proxy port - * + * * if port is -1 no port is selected - * + * * @return the proxy port */ public int getProxyPort(); /** * Sets the proxy port - * + * * set to -1 for no port - * + * * @param port the proxy port * @throws InvalidPortException */ @@ -153,7 +153,7 @@ public interface ConfigurationContainer { public BKUs getDefaultBKU(); /** - * Sets the default BKU + * Sets the default BKU * @param defaultBKU the default BKU */ public void setDefaultBKU(BKUs defaultBKU); @@ -301,7 +301,7 @@ public interface ConfigurationContainer { * @param alias the keystore alias */ public void setKeyStoreAlias(String alias); - + /** * Gets the keystore store password * @return the keystore store password @@ -362,7 +362,7 @@ public interface ConfigurationContainer { */ public void setSkipFinish(boolean skipFinish); - + /** * Gets theCertificate-Download URL * @return the Certificate-Download URL @@ -370,7 +370,7 @@ public interface ConfigurationContainer { public String getDownloadURL(); - + /** * Gets whether to use an existing signature marker. * @@ -385,37 +385,37 @@ public interface ConfigurationContainer { * whether to use an existing signature marker */ public void setUseMarker(boolean useMarker); - - + + /*** * Extension to the standard use marker implementation * @param useFields */ public void setUseSignatureFields(boolean useFields); - - + + /** * @return if the usage of signatureFields is enabled */ public boolean getUseSignatureFields(); - + /** * @param bool */ public void setEnablePlaceholderUsage(boolean bool); - + /** * @return boolean */ public boolean getEnablePlaceholderUsage(); - - + + /** * @param profile set the selected profile */ public void setSignatureProfile(Profile profile); - - + + /** * @return selected signature profile as string */ diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java index c989d59f..c0c84054 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java @@ -131,19 +131,19 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { /** Whether to skip the output state */ protected boolean skipFinish = false; - + /** Default Download URL for certificates*/ protected String downloadURL = null; - + /** describes if the placeholder search is enabled */ - protected boolean enabledPlaceholderUsage = false; - + protected boolean enabledPlaceholderUsage = false; + /** Whether to use an existing signature marker. */ protected boolean useMarker = false; /** Either QR-Code or signature fields as marker */ - protected boolean useSignatureFields = false; - + protected boolean useSignatureFields = false; + /** The Signature Profile */ protected Profile signatureProfile = null; @@ -649,15 +649,15 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { this.skipFinish = skipFinish; } - + /* (non-Javadoc) * @see at.asit.pdfover.gui.workflow.config.ConfigurationContainer#setDownloadURL(java.lang.String) - + @Override public void setDownloadURL(String downloadURL) { this.downloadURL = downloadURL; - - + + }*/ /* (non-Javadoc) @@ -667,10 +667,10 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { public String getDownloadURL() { return this.downloadURL; } - + /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.config.ConfigurationContainer#getUseMarker() */ @@ -681,7 +681,7 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { /* * (non-Javadoc) - * + * * @see * at.asit.pdfover.gui.workflow.config.ConfigurationContainer#setUseMarker( * boolean) @@ -691,16 +691,16 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { this.useMarker = useMarker; if (useMarker) setUseSignatureFields(false); } - - + + @Override public void setUseSignatureFields(boolean useFields) { this.useSignatureFields = useFields; if (useFields) setUseMarker(false); } - - + + @Override public boolean getUseSignatureFields() { return this.useSignatureFields; @@ -711,8 +711,8 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { */ @Override public void setEnablePlaceholderUsage(boolean bool) { - this.enabledPlaceholderUsage = bool; - + this.enabledPlaceholderUsage = bool; + } /* (non-Javadoc) @@ -722,14 +722,14 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { public boolean getEnablePlaceholderUsage() { return this.enabledPlaceholderUsage; } - - - @Override + + + @Override public Profile getSignatureProfile() { if (this.signatureProfile == null) { this.signatureProfile = Profile.SIGNATURBLOCK_SMALL; } - return this.signatureProfile; + return this.signatureProfile; } @Override @@ -747,5 +747,5 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { public void setSignatureProfile(Profile profile) { this.signatureProfile = profile; } - + } diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/PersistentConfigProvider.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/PersistentConfigProvider.java index 1175ca9a..9bf81a05 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/PersistentConfigProvider.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/PersistentConfigProvider.java @@ -25,7 +25,7 @@ import at.asit.pdfover.signator.SignaturePosition; /** * An interface for reading the persistent configuration - * + * * This reads the configuration that will be saved */ public interface PersistentConfigProvider { @@ -79,7 +79,7 @@ public interface PersistentConfigProvider { /** * Gets the default output folder for signed documents - * @return the default output folder + * @return the default output folder */ public String getDefaultOutputFolderPersistent(); @@ -180,29 +180,29 @@ public interface PersistentConfigProvider { * @return the configured MainWindow size */ public Point getMainWindowSize(); - + /** * Gets whether to use an existing singature marker. * * @return whether to use an existing singature marker */ public boolean getUseMarker(); - + /** * Gets whether to use an existing signature fields. * * @return boolean */ public boolean getUseSignatureFields(); - + /** * @return */ public boolean getEnablePlaceholderUsage(); - + /*** - * - * @return the signature profile + * + * @return the signature profile */ public String getSignatureProfile(); |