pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.util.retailer.imports
Class ImportRetailerConfiguration

java.lang.Object
  extended by org.torweg.pulse.configuration.Configuration
      extended by org.torweg.pulse.component.util.retailer.imports.ImportRetailerConfiguration
All Implemented Interfaces:
java.io.Serializable

public class ImportRetailerConfiguration
extends Configuration

The configuration of ImportRetailer.

Version:
$Revision: 1581 $
Author:
Daniel Dietz
See Also:
Serialized Form

Nested Class Summary
static class ImportRetailerConfiguration.Importer
          Maps a file-name-extension to an AbstractRetailerImporter by full-qualified-class-name.
 
Constructor Summary
protected ImportRetailerConfiguration()
          Default constructor.
 
Method Summary
 java.lang.String getBackupExtension()
          Returns the extension that will be used for creating backup files.
 java.lang.String getFileNamePrefix()
          Returns the String that has to be the first part of the name of every File that shall be imported.
 AbstractRetailerImporter getImporter(java.lang.String extension)
          Returns an AbstractRetailerImporter for the given extension if exists.
 java.lang.String getImportFolderPath()
          Returns the path to the folder that contains the Files to be imported.
 java.lang.String getLogoFolderPath()
          Returns the path to the folder containing the logo Files to be associated with the imported Retailers.
 java.lang.Integer getRetailStoreFilterSize()
          Returns the size for the BitSet of the retail-store-filter.
 java.lang.String getTemporaryExtension()
          Returns the extension that will be used for creating temporary files.
 java.lang.Integer getWebShopFilterSize()
          Returns the size for the BitSet of the web-shop-filter-filter.
 boolean isExistingImporterForExtension(java.lang.String extension)
          Test whether an AbstractRetailerImporter exists for the given extension.
 
Methods inherited from class org.torweg.pulse.configuration.Configuration
getBundle, isBundleConfiguration, isModified, setBundle, setConfigFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportRetailerConfiguration

protected ImportRetailerConfiguration()
Default constructor.

Method Detail

getImportFolderPath

public final java.lang.String getImportFolderPath()
Returns the path to the folder that contains the Files to be imported.

Returns:
the path to the folder that contains the Files to be imported.

getFileNamePrefix

public final java.lang.String getFileNamePrefix()
Returns the String that has to be the first part of the name of every File that shall be imported.

Returns:
the String that has to be the first part of the name of every File that shall be imported.

getBackupExtension

public final java.lang.String getBackupExtension()
Returns the extension that will be used for creating backup files.

Returns:
the extension that will be used for creating backup files.

getTemporaryExtension

public final java.lang.String getTemporaryExtension()
Returns the extension that will be used for creating temporary files.

Returns:
the extension that will be used for creating temporary files.

getLogoFolderPath

public final java.lang.String getLogoFolderPath()
Returns the path to the folder containing the logo Files to be associated with the imported Retailers.

Returns:
the path to the folder containing the logo Files to be associated with the imported Retailers.

isExistingImporterForExtension

public final boolean isExistingImporterForExtension(java.lang.String extension)
Test whether an AbstractRetailerImporter exists for the given extension.

Parameters:
extension - the file-extension
Returns:
true if an AbstractRetailerImporter exists for the given extension, false otherwise

getImporter

public final AbstractRetailerImporter getImporter(java.lang.String extension)
                                           throws RetailerImporterException
Returns an AbstractRetailerImporter for the given extension if exists.

Parameters:
extension - the file-extension
Returns:
an instance of the AbstractRetailerImporter for the given extension if exists, null otherwise
Throws:
RetailerImporterException - on errors

getRetailStoreFilterSize

public final java.lang.Integer getRetailStoreFilterSize()
Returns the size for the BitSet of the retail-store-filter.

Returns:
the retailStoreFilterSize

getWebShopFilterSize

public final java.lang.Integer getWebShopFilterSize()
Returns the size for the BitSet of the web-shop-filter-filter.

Returns:
the webShopFilterSize