|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.csr.util.CSRConfigurator
public class CSRConfigurator
This class is used to maintain global configuration values for the CSR application.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected CommerceTypeConfiguration[] |
mPaymentGroupTypeConfigurations
|
protected java.util.Map |
mPaymentGroupTypeConfigurationsAsMap
|
protected java.lang.String |
mPaymentGroupTypesToBeInitialized
|
protected CommerceTypeConfiguration[] |
mShippingGroupTypeConfigurations
|
protected java.util.Map |
mShippingGroupTypeConfigurationsAsMap
|
protected java.lang.String |
mShippingGroupTypesToBeInitialized
|
protected boolean |
mUsingScheduledOrders
|
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 | |
---|---|
CSRConfigurator()
|
Method Summary | |
---|---|
protected java.util.Map |
convertArraysToMapByType(CommerceTypeConfiguration[] pTypeConfigurations)
This method converts an array into Map. |
atg.commerce.catalog.CatalogTools |
getCatalogTools()
Returns The catalog tools |
java.lang.String |
getContextRoot()
Returns the contextRoot |
java.lang.String |
getDefaultCatalogId()
Returns the catalog that's assigned whenever a new anonymous user profile is created and custom catalog is enabled in the CSRConfigurator |
int |
getMaximumAlmostQualifiedForPromotionsInShortList()
|
CommerceTypeConfiguration[] |
getPaymentGroupTypeConfigurations()
Returns the paymentGroupTypeConfigurations This property is used to configure all payment group type configurations. |
java.util.Map |
getPaymentGroupTypeConfigurationsAsMap()
Returns the paymentGroupTypeConfigurationsAsMap This method converts getPaymentGroupTypeConfigurations() into a map. |
java.lang.String |
getPaymentGroupTypesToBeInitialized()
Returns the paymentGroupTypesToBeInitialized This property is used to provide list of payment group types to be initialized by the PaymentGroupDroplet . |
int |
getQuantityInputTagMaxlength()
Item quantity input tag's 'maxlength' attribute |
int |
getQuantityInputTagSize()
Item quantity input tag's 'size' attribute |
CommerceTypeConfiguration[] |
getShippingGroupTypeConfigurations()
Returns the shippingGroupTypeConfigurations This property is used to configure all shipping group type configurations. |
java.util.Map |
getShippingGroupTypeConfigurationsAsMap()
Returns the shippingGroupTypeConfigurationsAsMap This method converts getShippingGroupTypeConfigurations() into a map. |
java.lang.String |
getShippingGroupTypesToBeInitialized()
Returns the shippingGroupTypesToBeInitialized This property is used to provide list of shipping group types to be initialized by the ShippingGroupDroplet . |
boolean |
isCustomCatalogs()
Returns boolean indicating if custom catalogs are in use |
boolean |
isProcessReturnRequestImmediately()
The default value is false. |
boolean |
isUsingPriceLists()
Returns boolean indicating whether price lists are being used |
boolean |
isUsingSalePriceLists()
Returns boolean indicating whether a sale price list is being used |
boolean |
isUsingScheduledOrders()
This flag determines if scheduled order features show up in the UI. |
void |
setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
Sets catalogTools |
void |
setContextRoot(java.lang.String pContextRoot)
Sets the contextRoot |
void |
setCustomCatalogs(boolean pCustomCatalogs)
boolean indicating if custom catalogs are in use |
void |
setDefaultCatalogId(java.lang.String pDefaultCatalogId)
This catalog is assigned whenever a new anonymous user profile is created and custom catalog is enabled in the CSRConfigurator. |
void |
setMaximumAlmostQualifiedForPromotionsInShortList(int pMax)
|
void |
setPaymentGroupTypeConfigurations(CommerceTypeConfiguration[] pPaymentGroupTypeConfigurations)
Sets the paymentGroupTypeConfigurations This property is used to configure all payment group type configurations. |
void |
setPaymentGroupTypesToBeInitialized(java.lang.String pPaymentGroupTypesToBeInitialized)
Sets the paymentGroupTypesToBeInitialized This property is used to provide list of payment group types to be initialized by the PaymentGroupDroplet . |
void |
setProcessReturnRequestImmediately(boolean pProcessReturnRequestImmediately)
The default value is false. |
void |
setQuantityInputTagMaxlength(int pMax)
Item quantity input tag's 'maxlength' attribute |
void |
setQuantityInputTagSize(int pSize)
Item quantity input tag's 'size' attribute |
void |
setShippingGroupTypeConfigurations(CommerceTypeConfiguration[] pShippingGroupTypeConfigurations)
Sets the shippingGroupTypeConfigurations This property is used to configure all shipping group type configurations. |
void |
setShippingGroupTypesToBeInitialized(java.lang.String pShippingGroupTypesToBeInitialized)
Sets the shippingGroupTypesToBeInitialized This property is used to provide list of shipping group types to be initialized by the ShippingGroupDroplet . |
void |
setUsingPriceLists(boolean pUsingPriceLists)
Sets boolean indicating whether price lists are being used |
void |
setUsingSalePriceLists(boolean pUsingSalePriceLists)
Sets boolean indicating whether a sale price list is being used |
void |
setUsingScheduledOrders(boolean pUsingScheduledOrders)
|
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, 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 |
---|
public static java.lang.String CLASS_VERSION
protected boolean mUsingScheduledOrders
protected java.lang.String mShippingGroupTypesToBeInitialized
protected CommerceTypeConfiguration[] mShippingGroupTypeConfigurations
protected java.util.Map mShippingGroupTypeConfigurationsAsMap
protected java.lang.String mPaymentGroupTypesToBeInitialized
protected CommerceTypeConfiguration[] mPaymentGroupTypeConfigurations
protected java.util.Map mPaymentGroupTypeConfigurationsAsMap
Constructor Detail |
---|
public CSRConfigurator()
Method Detail |
---|
public boolean isUsingScheduledOrders()
public void setUsingScheduledOrders(boolean pUsingScheduledOrders)
public boolean isProcessReturnRequestImmediately()
public void setProcessReturnRequestImmediately(boolean pProcessReturnRequestImmediately)
pProcessReturnRequestImmediately
- public void setCatalogTools(atg.commerce.catalog.CatalogTools pCatalogTools)
pCatalogTools
- the catalog toolspublic atg.commerce.catalog.CatalogTools getCatalogTools()
public void setCustomCatalogs(boolean pCustomCatalogs)
pCustomCatalogs
- boolean indicating if custom catalogs are in usepublic boolean isCustomCatalogs()
public void setUsingPriceLists(boolean pUsingPriceLists)
pUsingPriceLists
- boolean indicating whether price lists are being usedpublic boolean isUsingPriceLists()
public void setUsingSalePriceLists(boolean pUsingSalePriceLists)
pUsingSalePriceLists
- boolean indicating whether a sale price list is being usedpublic boolean isUsingSalePriceLists()
public void setContextRoot(java.lang.String pContextRoot)
pContextRoot
- the context rootpublic java.lang.String getContextRoot()
public void setDefaultCatalogId(java.lang.String pDefaultCatalogId)
pDefaultCatalogId
- the custom catalog idpublic java.lang.String getDefaultCatalogId()
public int getMaximumAlmostQualifiedForPromotionsInShortList()
public void setMaximumAlmostQualifiedForPromotionsInShortList(int pMax)
pMax
- The maximum number of nearly qualified for promotions
to display in a short listpublic int getQuantityInputTagSize()
public void setQuantityInputTagSize(int pSize)
public int getQuantityInputTagMaxlength()
public void setQuantityInputTagMaxlength(int pMax)
public java.lang.String getShippingGroupTypesToBeInitialized()
ShippingGroupDroplet
. Out of box the HardgoodShippingGroup
and ElectroniShippingGroup
are initialized. If you want to include or exclude any shipping
groups, you need to modify this property. This property is only used with ShippingGroupDroplet
ShippingGroupDroplet.getShippingGroupTypes()
public void setShippingGroupTypesToBeInitialized(java.lang.String pShippingGroupTypesToBeInitialized)
ShippingGroupDroplet
. Out of box the HardgoodShippingGroup
and ElectroniShippingGroup
are initialized. If you want to include or exclude any shipping
groups, you need to modify this property. This property is only used with ShippingGroupDroplet
pShippingGroupTypesToBeInitialized
- the shippingGroupTypesToBeInitialized to setShippingGroupDroplet.getShippingGroupTypes()
public java.lang.String getPaymentGroupTypesToBeInitialized()
PaymentGroupDroplet
. Out of box the CreditCard
and StoreCredit
are initialized. If you want to include or exclude any payment
groups, you need to modify this property. This property is only used with PaymentGroupDroplet
PaymentGroupDroplet.getPaymentGroupTypes()
public void setPaymentGroupTypesToBeInitialized(java.lang.String pPaymentGroupTypesToBeInitialized)
PaymentGroupDroplet
. Out of box the CreditCard
and StoreCredit
are initialized. If you want to include or exclude any payment
groups, you need to modify this property. This property is only used with PaymentGroupDroplet
pPaymentGroupTypesToBeInitialized
- the paymentGroupTypesToBeInitialized to setPaymentGroupDroplet.getPaymentGroupTypes()
public CommerceTypeConfiguration[] getShippingGroupTypeConfigurations()
public void setShippingGroupTypeConfigurations(CommerceTypeConfiguration[] pShippingGroupTypeConfigurations)
pShippingGroupTypeConfigurations
- the shippingGroupTypeConfigurations to setpublic java.util.Map getShippingGroupTypeConfigurationsAsMap()
getShippingGroupTypeConfigurations()
into a map.
convertArraysToMapByType(CommerceTypeConfiguration[])
public CommerceTypeConfiguration[] getPaymentGroupTypeConfigurations()
public void setPaymentGroupTypeConfigurations(CommerceTypeConfiguration[] pPaymentGroupTypeConfigurations)
pPaymentGroupTypeConfigurations
- the paymentGroupByTypeConfigurations to setpublic java.util.Map getPaymentGroupTypeConfigurationsAsMap()
getPaymentGroupTypeConfigurations()
into a map.
convertArraysToMapByType(CommerceTypeConfiguration[])
protected java.util.Map convertArraysToMapByType(CommerceTypeConfiguration[] pTypeConfigurations)
pTypeConfigurations
array and uses the
CommerceTypeConfiguration.getType()
as the key and the TypeConfiguration
as value and generates a map.
pTypeConfigurations
- The array that needs to be converted to a map
CommerceTypeConfiguration.getType()
as the key and
TypeConfiguration
as the value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |