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.shop
Class StockUpdaterJobletConfig.LocaleConfig

java.lang.Object
  extended by org.torweg.pulse.component.shop.StockUpdaterJobletConfig.LocaleConfig
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
StockUpdaterJobletConfig

public static final class StockUpdaterJobletConfig.LocaleConfig
extends java.lang.Object
implements java.io.Serializable

The configuration for a certain Locale.

Version:
$Revision: 1478 $
Author:
Christian Schatt
See Also:
Serialized Form

Constructor Summary
protected StockUpdaterJobletConfig.LocaleConfig()
          The no-argument constructor.
  StockUpdaterJobletConfig.LocaleConfig(java.util.Locale pLocale, java.lang.String pDataFile, boolean pDeleteDataFile, int pActivationValue, java.util.Collection<StockUpdaterJobletConfig.ExtraActivationValue> pExtraAxctivationValues, java.util.Collection<java.lang.String> pExcludeItems, java.util.Collection<java.lang.String> pActivateItems, java.util.Collection<java.lang.String> pDeactivateItems, EmailConfiguration pReportEmailConfig)
          The constructor that sets the Locale, the path to the data file, the flag indicating whether the data file is to be deleted after processing, the activation value, the extra activation values, the items to be excluded, the items to be activated, the items to be deactivated and the EmailConfiguration.
 
Method Summary
 java.util.Set<java.lang.String> getActivateItems()
          Returns the items to be activated.
 int getActivationValue()
          Returns the value of the available number of a shop item needed to activate the shop item or leave it active.
 java.lang.String getDataFile()
          Returns the path to the data file used by the StockUpdaterJoblet.
 java.util.Set<java.lang.String> getDeactivateItems()
          Returns the items to be deactivated.
 java.util.Set<java.lang.String> getExcludeItems()
          Returns the items to be excluded from activation/deactivation.
 java.util.Set<StockUpdaterJobletConfig.ExtraActivationValue> getExtraActivationValues()
          Returns the extra activation values.
 java.util.Locale getLocale()
          Returns the Locale.
 EmailConfiguration getReportEmailConfig()
          Returns the EmailConfiguration used to send the report e-mails.
 boolean isDeleteDataFile()
          Returns the flag indicating whether the data file is to be deleted after processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StockUpdaterJobletConfig.LocaleConfig

protected StockUpdaterJobletConfig.LocaleConfig()
The no-argument constructor.


StockUpdaterJobletConfig.LocaleConfig

public StockUpdaterJobletConfig.LocaleConfig(java.util.Locale pLocale,
                                             java.lang.String pDataFile,
                                             boolean pDeleteDataFile,
                                             int pActivationValue,
                                             java.util.Collection<StockUpdaterJobletConfig.ExtraActivationValue> pExtraAxctivationValues,
                                             java.util.Collection<java.lang.String> pExcludeItems,
                                             java.util.Collection<java.lang.String> pActivateItems,
                                             java.util.Collection<java.lang.String> pDeactivateItems, EmailConfiguration pReportEmailConfig)
The constructor that sets the Locale, the path to the data file, the flag indicating whether the data file is to be deleted after processing, the activation value, the extra activation values, the items to be excluded, the items to be activated, the items to be deactivated and the EmailConfiguration.

Parameters:
pLocale - the Locale to set
pDataFile - the the path to the data file to set
pDeleteDataFile - the flag indicating whether the data file is to be deleted after processing
pActivationValue - the activation value to set
pExtraAxctivationValues - the extra activation values to set. May be null
pExcludeItems - the items to be excluded to set. May be null
pActivateItems - the items to be activated to set. May be null
pDeactivateItems - the items to be deactivated to set. May be null
pReportEmailConfig - the EmailConfiguration to set
Throws:
java.lang.NullPointerException - if the given Locale, the given path to the data file or the given EmailConfiguration is null
java.lang.IllegalArgumentException - if the given path to the data file is an empty String
Method Detail

getLocale

public java.util.Locale getLocale()
Returns the Locale.

Returns:
the Locale

getDataFile

public java.lang.String getDataFile()
Returns the path to the data file used by the StockUpdaterJoblet.

Returns:
the path to the data file

isDeleteDataFile

public boolean isDeleteDataFile()
Returns the flag indicating whether the data file is to be deleted after processing.

Returns:
the flag indicating whether the data file is to be deleted after processing

getActivationValue

public int getActivationValue()
Returns the value of the available number of a shop item needed to activate the shop item or leave it active.

Returns:
the activation value

getExtraActivationValues

public java.util.Set<StockUpdaterJobletConfig.ExtraActivationValue> getExtraActivationValues()
Returns the extra activation values.

Returns:
the extra activation values

getExcludeItems

public java.util.Set<java.lang.String> getExcludeItems()
Returns the items to be excluded from activation/deactivation.

Returns:
the items to be excluded

getActivateItems

public java.util.Set<java.lang.String> getActivateItems()
Returns the items to be activated.

Returns:
the items to be activated

getDeactivateItems

public java.util.Set<java.lang.String> getDeactivateItems()
Returns the items to be deactivated.

Returns:
the items to be deactivated

getReportEmailConfig

public EmailConfiguration getReportEmailConfig()
Returns the EmailConfiguration used to send the report e-mails.

Returns:
the EmailConfiguration