|
|||||||||
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.order.edit.CloneEditManager
atg.commerce.csr.order.edit.CSRCloneEditManager
public class CSRCloneEditManager
This class contains the CSR extensions to the CloneEditManager
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
CONSUMED_PROMOTIONS_EXTRA_DATA_KEY
the string key used to store the consumable promotion objects in the CloneEditState |
protected CSRAgentTools |
mCSRAgentTools
the agent profile |
static java.lang.String |
TICKETID
the current ticket id |
Fields inherited from class atg.commerce.order.edit.CloneEditManager |
---|
CLONEDITMANAGER, CLONEEDITSTATE, CLONEORDER, mCatalogTools, mCloneEditHandlers, mInitializeEditChains, mInventoryManager, mOrderManager, mReconcileOrderChains, mTransactionManager |
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 | |
---|---|
CSRCloneEditManager()
|
Method Summary | |
---|---|
void |
addConsumablePromotion(CloneEditState pCloneEditState,
atg.repository.RepositoryItem pPromotion,
int pOrderCountWhenClaimed)
Adds a pConsumablePromotion to the CloneEditState. |
void |
consumePromotions(CloneEditState pCloneEditState,
atg.repository.RepositoryItem pCustomerProfile,
java.lang.String pTicketId)
Consumes the ConsumablePromotion in the CloneEditState. |
ConsumablePromotion |
createConsumablePromotion(atg.repository.RepositoryItem pPromotion,
int pOrderCountWhenClaimed)
Creates an instance of a ConsumablePromotion for the given promotion. |
ConsumablePromotion |
getConsumablePromotion(CloneEditState pCloneEditState,
java.lang.String pPromotionId)
Returns the ConsumablePromotion object from the CloneEditState based on the given promotion id. |
protected java.util.Map |
getConsumablePromotions(CloneEditState pCloneEditState)
Returns the consumable promotions map from the order udpate state. |
CSRAgentTools |
getCSRAgentTools()
|
java.lang.String |
getInitializeOrderEditChainId(atg.commerce.order.Order pOrder)
If the original order is in one of the "submitted" states defined in CSRAgentTools, then the submitted state is returned. |
java.lang.String |
getReconcileOrderChainId(atg.commerce.order.Order pOrder)
If the original order is in one of the "submitted" states defined in CSRAgentTools, then the submitted state is returned. |
void |
sendAgentEvents(CloneEditState pCloneEditState,
atg.repository.RepositoryItem pCustomerProfile,
java.lang.String pTicketId)
This method sends agent events for the changes in the order. |
void |
setCSRAgentTools(CSRAgentTools pCSRAgentTools)
Sets the property CSRAgentTools. |
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 final java.lang.String CLASS_VERSION
public static final java.lang.String CONSUMED_PROMOTIONS_EXTRA_DATA_KEY
public static final java.lang.String TICKETID
protected CSRAgentTools mCSRAgentTools
Constructor Detail |
---|
public CSRCloneEditManager()
Method Detail |
---|
public void setCSRAgentTools(CSRAgentTools pCSRAgentTools)
public CSRAgentTools getCSRAgentTools()
public void sendAgentEvents(CloneEditState pCloneEditState, atg.repository.RepositoryItem pCustomerProfile, java.lang.String pTicketId)
sendAgentEvents
method is called on each CloneEditHandler
that's an instance of AgentEventHandler
.
protected java.util.Map getConsumablePromotions(CloneEditState pCloneEditState)
pCloneEditState
-
public void consumePromotions(CloneEditState pCloneEditState, atg.repository.RepositoryItem pCustomerProfile, java.lang.String pTicketId) throws atg.repository.RepositoryException
ConsumablePromotion
in the CloneEditState.
pCloneEditState
-
atg.repository.RepositoryException
public ConsumablePromotion getConsumablePromotion(CloneEditState pCloneEditState, java.lang.String pPromotionId)
pCloneEditState
- pPromotionId
-
public void addConsumablePromotion(CloneEditState pCloneEditState, atg.repository.RepositoryItem pPromotion, int pOrderCountWhenClaimed)
pCloneEditState
- pPromotion
- pOrderCountWhenClaimed
- the number of times the promotion appears in the order
when it was claimed. This value can be used later to determine if the promotion should
be consumed, if the current count is still the same during reconciliationpublic ConsumablePromotion createConsumablePromotion(atg.repository.RepositoryItem pPromotion, int pOrderCountWhenClaimed)
public java.lang.String getReconcileOrderChainId(atg.commerce.order.Order pOrder)
getReconcileOrderChainId
in class CloneEditManager
CloneEditManager.getReconcileOrderChains()
public java.lang.String getInitializeOrderEditChainId(atg.commerce.order.Order pOrder)
getInitializeOrderEditChainId
in class CloneEditManager
CloneEditManager.getInitializeEditChains()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |