atg.projects.store
Class StoreConfiguration

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.projects.store.StoreConfiguration
All Implemented Interfaces:
atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class StoreConfiguration
extends atg.nucleus.GenericService

This class is used for store wide configurations.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string.
protected  boolean mAtgSearchInstalled
          Is ATG search installed.
protected  boolean mDojoDebug
          Is Dojo debug turned on.
protected  java.lang.String mDojoUrl
          Dojo URL.
protected  java.util.List mMandatoryStateCountryList
          Mandatory state country list.
protected  boolean mRequireCreditCardVerification
          Is credit card verification required.
protected  boolean mUseSearchForSubcategoryProductList
           
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
StoreConfiguration()
           
 
Method Summary
 boolean getAtgSearchInstalled()
           
 java.lang.String getDefaultCssFile()
           
 java.lang.String getDefaultResourceBundle()
           
 java.lang.String getDojoUrl()
           
 java.util.List getMandatoryStateCountryList()
           
 java.lang.String getSiteHttpServerName()
           
 int getSiteHttpServerPort()
           
 boolean getUseSearchForSubcategoryProductList()
           
 boolean isDojoDebug()
          Enable dojo debugging?
 boolean isRequireCreditCardVerification()
          This property determines if credit card verification numbers are required by the application.
 void setAtgSearchInstalled(boolean pAtgSearchInstalled)
           
 void setDefaultCssFile(java.lang.String pDefaultCssFile)
          Sets the location of the default css file.
 void setDefaultResourceBundle(java.lang.String pDefaultResourceBundle)
          Sets the location of the default resource bundle.
 void setDojoDebug(boolean pDojoDebug)
          Enables Dojo debug.
 void setDojoUrl(java.lang.String pDojoUrl)
          Sets the DojoUrl - this is the full url that will be used as the src= attribute to include all dojo Javascript within the app.
 void setMandatoryStateCountryList(java.util.List pMandatoryStateCountryList)
           
 void setRequireCreditCardVerification(boolean pRequireCreditCardVerification)
           
 void setSiteHttpServerName(java.lang.String pSiteHttpServerName)
          Sets the name of the HTTP server.
 void setSiteHttpServerPort(int pSiteHttpServerPort)
          Sets the port of the HTTP server.
 void setUseSearchForSubcategoryProductList(boolean pUseSearchForSubcategoryProductList)
           
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string.

See Also:
Constant Field Values

mAtgSearchInstalled

protected boolean mAtgSearchInstalled
Is ATG search installed.


mUseSearchForSubcategoryProductList

protected boolean mUseSearchForSubcategoryProductList

mRequireCreditCardVerification

protected boolean mRequireCreditCardVerification
Is credit card verification required.


mDojoUrl

protected java.lang.String mDojoUrl
Dojo URL.


mDojoDebug

protected boolean mDojoDebug
Is Dojo debug turned on.


mMandatoryStateCountryList

protected java.util.List mMandatoryStateCountryList
Mandatory state country list.

Constructor Detail

StoreConfiguration

public StoreConfiguration()
Method Detail

getAtgSearchInstalled

public boolean getAtgSearchInstalled()
Returns:
true if ATG search is installed, false - otherwise.

setAtgSearchInstalled

public void setAtgSearchInstalled(boolean pAtgSearchInstalled)
Parameters:
pAtgSearchInstalled - - true if ATG search is installed, false - otherwise.

getUseSearchForSubcategoryProductList

public boolean getUseSearchForSubcategoryProductList()
Returns:
true if search for subcategory product list should be used, false - otherwise.

setUseSearchForSubcategoryProductList

public void setUseSearchForSubcategoryProductList(boolean pUseSearchForSubcategoryProductList)
Parameters:
pUseSearchForSubcategoryProductList - - true if search for subcategory product list should be used.

isRequireCreditCardVerification

public boolean isRequireCreditCardVerification()
This property determines if credit card verification numbers are required by the application.

Many credit cards have a card verification number printed, not embossed, on the card. This number is never transferred during card swipes and should be known only by the cardholder. Each card association has its own name for this number. Visa calls it the Card Verification Value (CVV2), and MasterCard calls it the Card Validation Code (CVC2). Visa and MasterCard print the number on the back of the card. American Express and Discover call it the Card Identification Digits (CID).

Returns:
Returns the requireCreditCardVerification.

setRequireCreditCardVerification

public void setRequireCreditCardVerification(boolean pRequireCreditCardVerification)
Parameters:
pRequireCreditCardVerification - - true if credit card verification is required, false - otherwise.

getDojoUrl

public java.lang.String getDojoUrl()
Returns:
the Dojo Url.

setDojoUrl

public void setDojoUrl(java.lang.String pDojoUrl)
Sets the DojoUrl - this is the full url that will be used as the src= attribute to include all dojo Javascript within the app.

Parameters:
pDojoUrl - - the DojoUrl to set.

isDojoDebug

public boolean isDojoDebug()
Enable dojo debugging?

Returns:
true to enable dojo debugging, false otherwise

setDojoDebug

public void setDojoDebug(boolean pDojoDebug)
Enables Dojo debug.

Parameters:
pDojoDebug - - the Dojo debug to set

getMandatoryStateCountryList

public java.util.List getMandatoryStateCountryList()
Returns:
the list of code of mandatory states.

setMandatoryStateCountryList

public void setMandatoryStateCountryList(java.util.List pMandatoryStateCountryList)
Parameters:
pMandatoryStateCountryList - - the List of code of mandatory states.

setSiteHttpServerName

public void setSiteHttpServerName(java.lang.String pSiteHttpServerName)
Sets the name of the HTTP server.


getSiteHttpServerName

public java.lang.String getSiteHttpServerName()
Returns:
The name of the HTTP server.

setSiteHttpServerPort

public void setSiteHttpServerPort(int pSiteHttpServerPort)
Sets the port of the HTTP server.


getSiteHttpServerPort

public int getSiteHttpServerPort()
Returns:
The port of the HTTP server.

setDefaultResourceBundle

public void setDefaultResourceBundle(java.lang.String pDefaultResourceBundle)
Sets the location of the default resource bundle.


getDefaultResourceBundle

public java.lang.String getDefaultResourceBundle()
Returns:
The location of the default resource bundle.

setDefaultCssFile

public void setDefaultCssFile(java.lang.String pDefaultCssFile)
Sets the location of the default css file.


getDefaultCssFile

public java.lang.String getDefaultCssFile()
Returns:
The location of the default css file.