public class PromotionTemplateTools extends GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BULK_CALCULATOR_TYPE |
static java.lang.String |
CALCULATOR_TYPE_ATTRIBUTE |
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
DISCOUNT_TYPE_ATTRIBUTE |
static java.lang.String |
GROUP_CALCULATOR_TYPE |
static java.lang.String |
PROMOTION_TYPE_ATTRIBUTE |
static java.lang.String |
PROMOTION_TYPE_IDENTIFIER |
static java.lang.String |
STANDARD_CALCULATOR_TYPE |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
PromotionTemplateTools() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdjusterAttribute() |
java.lang.String |
getBandingAttribute() |
CalculatorInfo |
getCalculatorInfo(java.lang.String pPromotionType,
java.lang.String pCalculatorType)
Retrieves a CalculatorInfo from the PricingEngineService
for the given pPromotionType + pCalculatorType
combination.
|
CalculatorInfo |
getCalculatorInfo(java.lang.String pPromotionType,
java.lang.String pDiscountType,
java.lang.String pCalculatorType)
Retrieves a CalculatorInfo from the PricingEngineService
for the given pPromotionType + pDiscountType + pCalculatorType
combination.
|
CalculatorInfo[] |
getCalculatorInfos(java.lang.String pPromotionType)
Retrieves all CalculatorInfo's from the PricingEngineService
for the given pPromotionType
|
ServiceMap |
getPricingEngineMap() |
PricingEngineService |
getPricingEngineService(java.lang.String pPromoType)
Retrieves the PricingEngineService from mPricingEngineMap for
a given promotion type
|
java.lang.String |
getPromotionIdFromDisplayName(java.lang.String pPromoName)
Retrieves promotion type id from display name.
|
java.lang.String |
retrieveAndFormatResourceBundleString(java.lang.String pKey,
java.lang.Object[] pArgs) |
void |
setPricingEngineMap(ServiceMap pPricingEngineMap) |
static java.lang.String[] |
splitOutEndTag(java.lang.String pXML)
Method to split out the end tag from an XML string.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, 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, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String PROMOTION_TYPE_IDENTIFIER
public static final java.lang.String BULK_CALCULATOR_TYPE
public static final java.lang.String STANDARD_CALCULATOR_TYPE
public static final java.lang.String GROUP_CALCULATOR_TYPE
public static final java.lang.String PROMOTION_TYPE_ATTRIBUTE
public static final java.lang.String DISCOUNT_TYPE_ATTRIBUTE
public static final java.lang.String CALCULATOR_TYPE_ATTRIBUTE
public ServiceMap getPricingEngineMap()
public void setPricingEngineMap(ServiceMap pPricingEngineMap)
public CalculatorInfo getCalculatorInfo(java.lang.String pPromotionType, java.lang.String pDiscountType, java.lang.String pCalculatorType) throws atg.repository.editingtemplate.TemplateException
pPromotionType
- pDiscountType
- pCalculatorType
- atg.repository.editingtemplate.TemplateException
public CalculatorInfo getCalculatorInfo(java.lang.String pPromotionType, java.lang.String pCalculatorType) throws atg.repository.editingtemplate.TemplateException
pPromotionType
- pCalculatorType
- atg.repository.editingtemplate.TemplateException
public CalculatorInfo[] getCalculatorInfos(java.lang.String pPromotionType) throws atg.repository.editingtemplate.TemplateException
pPromotionType
- PromotionTemplateException
atg.repository.editingtemplate.TemplateException
public java.lang.String retrieveAndFormatResourceBundleString(java.lang.String pKey, java.lang.Object[] pArgs)
pKey
- pArgs
- public java.lang.String getPromotionIdFromDisplayName(java.lang.String pPromoName)
pPromoName
- public java.lang.String getBandingAttribute()
public java.lang.String getAdjusterAttribute()
public PricingEngineService getPricingEngineService(java.lang.String pPromoType)
pPromoType
- the promotion typepublic static java.lang.String[] splitOutEndTag(java.lang.String pXML) throws atg.repository.editingtemplate.TemplateException
pXML
- String XMLatg.repository.editingtemplate.TemplateException