atg.projects.store.order.purchase
Class StoreHardgoodShippingGroupInitializer

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.order.purchase.HardgoodShippingGroupInitializer
              extended by atg.projects.store.order.purchase.StoreHardgoodShippingGroupInitializer
All Implemented Interfaces:
atg.commerce.order.purchase.ShippingGroupInitializer, atg.commerce.order.purchase.ShippingGroupMatcher, 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 StoreHardgoodShippingGroupInitializer
extends atg.commerce.order.purchase.HardgoodShippingGroupInitializer

This class performs specific to CRS actions with HardgoodShippingGroup in addition to those which are provided in parent class.


Field Summary
static java.lang.String CLASS_VERSION
           
 
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
StoreHardgoodShippingGroupInitializer()
           
 
Method Summary
protected  boolean compareAddresses(atg.core.util.Address pAddressA, atg.core.util.Address pAddressB)
           
 java.lang.String getNewShippingGroupName(atg.commerce.order.ShippingGroup pShippingGroup)
          This method contains some specific logic related to giftlist ShippingGroups.
 StoreShippingProcessHelper getShippingProcessHelper()
           
 java.lang.String matchShippingGroup(atg.commerce.order.ShippingGroup pShippingGroup, atg.commerce.order.purchase.ShippingGroupMapContainer pShippingGroupMapContainer)
          Check address in the additional map of addresses that haven't stored in profile.
 void setShippingProcessHelper(StoreShippingProcessHelper pShippingProcessHelper)
           
 
Methods inherited from class atg.commerce.order.purchase.HardgoodShippingGroupInitializer
copyConfiguration, createHardgoodShippingGroup, doStartService, getConfiguration, getDefaultShippingAddressPropertyName, getDefaultShippingGroupName, getHardgoodShippingGroupType, getProfile, getShippingAddressesPropertyName, getShippingGroupManager, getShippingGroupMapContainer, getUserLocale, initializeHardgood, initializeShippingGroups, nameDefaultShippingGroup, setConfiguration, setDefaultShippingAddressPropertyName, setDefaultShippingGroupName, setHardgoodShippingGroupType, setProfile, setShippingAddressesPropertyName, setShippingGroupManager, setShippingGroupMapContainer
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, 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
See Also:
Constant Field Values
Constructor Detail

StoreHardgoodShippingGroupInitializer

public StoreHardgoodShippingGroupInitializer()
Method Detail

getShippingProcessHelper

public StoreShippingProcessHelper getShippingProcessHelper()

setShippingProcessHelper

public void setShippingProcessHelper(StoreShippingProcessHelper pShippingProcessHelper)

getNewShippingGroupName

public java.lang.String getNewShippingGroupName(atg.commerce.order.ShippingGroup pShippingGroup)
This method contains some specific logic related to giftlist ShippingGroups. In case if the shipping group description contains StoreGiftlistManager.getGiftShippingGroupDescriptionPrefix() we extract the giftlist event name, which is located after the prefix, and use it in creation of shippingGroupName.

Specified by:
getNewShippingGroupName in interface atg.commerce.order.purchase.ShippingGroupMatcher
Overrides:
getNewShippingGroupName in class atg.commerce.order.purchase.HardgoodShippingGroupInitializer
Parameters:
pShippingGroup - ShippingGroup for which a name will be created.
Returns:
name of the ShippingGroup

matchShippingGroup

public java.lang.String matchShippingGroup(atg.commerce.order.ShippingGroup pShippingGroup,
                                           atg.commerce.order.purchase.ShippingGroupMapContainer pShippingGroupMapContainer)
Check address in the additional map of addresses that haven't stored in profile.

Specified by:
matchShippingGroup in interface atg.commerce.order.purchase.ShippingGroupMatcher
Overrides:
matchShippingGroup in class atg.commerce.order.purchase.HardgoodShippingGroupInitializer

compareAddresses

protected boolean compareAddresses(atg.core.util.Address pAddressA,
                                   atg.core.util.Address pAddressB)
Overrides:
compareAddresses in class atg.commerce.order.purchase.HardgoodShippingGroupInitializer