atg.commerce.promotion
Class PromotionUpsellProductTargeter

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.targeting.DynamicContentTargeter
              extended by atg.commerce.promotion.PromotionUpsellTargeter
                  extended by atg.commerce.promotion.PromotionUpsellProductTargeter
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, atg.targeting.ContentHistoryManager, atg.targeting.PCCEditableComponent, atg.targeting.RepositoryTargeter, Targeter, java.util.EventListener

public class PromotionUpsellProductTargeter
extends PromotionUpsellTargeter

This targeter returns all upsellProducts in the upsellAction repository items associated with the closenessQualifiers contained in the session's current order.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.targeting.DynamicContentTargeter
mContentHistoryPath, mDescription, mImpressionLimit, mImpressionLimitPerTargeter, mRepository, mRepositoryViewName, mRulesets, mRuleStrings, mSortBy, mSortDirectives, mTargeters
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.targeting.Targeter
NO_MAX_NUMBER, NO_START_INDEX
 
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
PromotionUpsellProductTargeter()
           
 
Method Summary
 java.lang.String getUpsellActionPropertyName()
           
 java.lang.String getUpsellProductsPropertyName()
           
 void setUpsellActionPropertyName(java.lang.String pUpsellActionPropertyName)
          The name of the upsellAction property in the closenessQualifier item descriptor
 void setUpsellProductsPropertyName(java.lang.String pUpsellProductsPropertyName)
          The name of the upsellProducts property in the upsellAction item descriptor
 java.lang.Object[] target(NameResolver pNameResolver)
          Returns all upsellProducts in the upsellAction repository items associated with the closenessQualifiers contained in the session's current order.
 
Methods inherited from class atg.commerce.promotion.PromotionUpsellTargeter
getPromotionUpsellTools, setPromotionUpsellTools, target, target
 
Methods inherited from class atg.targeting.DynamicContentTargeter
atMost, buildSortDirectives, buildTargeters, countContentShown, createTargeterConfiguration, doStartService, doStopService, filter, getContentHistory, getContentHistoryContext, getContentHistoryPath, getDescription, getImpressionLimit, getLogger, getNumRulesets, getRepository, getRepositoryView, getRepositoryViewName, getRulesets, getRuleStrings, getSortBy, isContentShown, isImpressionLimitPerTargeter, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logWarning, logWarning, logWarning, registerContentShown, setContentHistoryPath, setDescription, setImpressionLimit, setImpressionLimitPerTargeter, setLogger, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning, setRepository, setRepositoryViewName, setRulesets, setRuleStrings, setSortBy, start, stop, updateTargeters, zapTargeters
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingTrace, isRunning, logTrace, logTrace, logTrace, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingTrace, 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 java.lang.String CLASS_VERSION
Class version string

Constructor Detail

PromotionUpsellProductTargeter

public PromotionUpsellProductTargeter()
Method Detail

setUpsellActionPropertyName

public void setUpsellActionPropertyName(java.lang.String pUpsellActionPropertyName)
The name of the upsellAction property in the closenessQualifier item descriptor

Parameters:
pUpsellActionPropertyName - the name of the upsellAction property in the closenessQualifier item descriptor.

getUpsellActionPropertyName

public java.lang.String getUpsellActionPropertyName()
Returns:
The name of the upsellAction property in the closenessQualifier item descriptor

setUpsellProductsPropertyName

public void setUpsellProductsPropertyName(java.lang.String pUpsellProductsPropertyName)
The name of the upsellProducts property in the upsellAction item descriptor

Parameters:
pUpsellProductsPropertyName - the name of the upsellProducts property in the upsellAction item descriptor

getUpsellProductsPropertyName

public java.lang.String getUpsellProductsPropertyName()
Returns:
The name of the upsellProducts property in the upsellAction item descriptor

target

public java.lang.Object[] target(NameResolver pNameResolver)
                          throws atg.targeting.TargetingException
Returns all upsellProducts in the upsellAction repository items associated with the closenessQualifiers contained in the session's current order.

Specified by:
target in interface Targeter
Overrides:
target in class PromotionUpsellTargeter
Throws:
atg.targeting.TargetingException - if a problem was encountered during the targeting operation