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.admin
Class RetailerEditorConfiguration

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

public class RetailerEditorConfiguration
extends EditorConfiguration

The JAXB-able Configuration of the RetailerEditor.

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

Nested Class Summary
static class RetailerEditorConfiguration.Countries
          Configures the countriesAvailable for the RetailerEditor.
static class RetailerEditorConfiguration.Exporter
          Configures the exporters for the RetailerEditor.
static class RetailerEditorConfiguration.FilterSizeConfiguration
          Configures the filter-sizes per country.
 
Field Summary
static int DEFAULT_FILTER_SIZE
          16.
 
Constructor Summary
protected RetailerEditorConfiguration()
          Default constructor.
 
Method Summary
 XSLHandle getAjaxRetailerXSLHandle()
          Returns the (main) XSLHandle for the (single) retailer-editor.
 RetailerEditorConfiguration.Countries getCountries()
          Returns the countriesAvailable available for the RetailerEditor.
 AbstractRetailerExporter getExporter(java.lang.String extension)
          Returns an AbstractRetailerExporter for the given extension if exists and enabled.
 java.lang.String getExportFileName()
          Returns the exportFileName.
 java.lang.String getLogoFolderPath()
          Returns the path to the folder containing the retailer-logos.
 int getRetailStoreFilterSize(java.lang.String country)
          Returns the size for the BitSet of the retail-store-filter for the given country.
 int getWebShopFilterSize(java.lang.String country)
          Returns the size for the BitSet of the web-shop-filter-filter for the given country.
 boolean isExistingExporterForExtension(java.lang.String extension)
          Test whether an AbstractRetailerExporter exists for the given extension and is enabled.
 boolean isRequireCustomerNumberCountry(java.lang.String country)
          Checks whether Retailer.
 
Methods inherited from class org.torweg.pulse.component.util.admin.EditorConfiguration
getAjaxXSLHandle, setAjaxXSLHandle
 
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
 

Field Detail

DEFAULT_FILTER_SIZE

public static final int DEFAULT_FILTER_SIZE
16.

See Also:
Constant Field Values
Constructor Detail

RetailerEditorConfiguration

protected RetailerEditorConfiguration()
Default constructor.

Method Detail

getLogoFolderPath

public final java.lang.String getLogoFolderPath()
Returns the path to the folder containing the retailer-logos.

Returns:
the path to the folder containing the retailer-logos.

isRequireCustomerNumberCountry

public final boolean isRequireCustomerNumberCountry(java.lang.String country)
Checks whether Retailer.customerNumber is mandatory for the passed country.

Parameters:
country - the country
Returns:
true if Retailer. customerNumber is mandatory for the passed country, false otherwise

getCountries

public final RetailerEditorConfiguration.Countries getCountries()
Returns the countriesAvailable available for the RetailerEditor.

Returns:
the countriesAvailable

getRetailStoreFilterSize

public final int getRetailStoreFilterSize(java.lang.String country)
Returns the size for the BitSet of the retail-store-filter for the given country.

if the filter is null: RetailerEditorConfiguration.DEFAULT_FILTER_SIZE.

Parameters:
country - the country
Returns:
the retailStoreFilterSize

getWebShopFilterSize

public final int getWebShopFilterSize(java.lang.String country)
Returns the size for the BitSet of the web-shop-filter-filter for the given country.

if the filter is null: RetailerEditorConfiguration.DEFAULT_FILTER_SIZE.

Parameters:
country - the country
Returns:
the webShopFilterSize

getAjaxRetailerXSLHandle

public final XSLHandle getAjaxRetailerXSLHandle()
Returns the (main) XSLHandle for the (single) retailer-editor.

Returns:
an XSLHandle

getExportFileName

public final java.lang.String getExportFileName()
Returns the exportFileName.

Returns:
the exportFileName

isExistingExporterForExtension

public final boolean isExistingExporterForExtension(java.lang.String extension)
Test whether an AbstractRetailerExporter exists for the given extension and is enabled.

Parameters:
extension - the file-extension
Returns:
true if an AbstractRetailerExporter exists for the given extension and is enabled, false otherwise

getExporter

public final AbstractRetailerExporter getExporter(java.lang.String extension)
                                           throws PulseException
Returns an AbstractRetailerExporter for the given extension if exists and enabled.

Parameters:
extension - the file-extension
Returns:
an instance of the AbstractRetailerExporter for the given extension if exists and enabled, null otherwise
Throws:
PulseException - on errors