public class LoadAndExecuteAction
extends atg.svc.agent.environment.EnvironmentChangeFormHandler
The scheduled order template is first loaded into the global context before the state is changed on the schedule.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_ACTIVATE
the action that will cause the schedule to be activated
|
static java.lang.String |
ACTION_DEACTIVATE
the action that will cause the schedule to be deactivated
|
static atg.nucleus.naming.ParameterName |
ACTION_PARAM_NAME
The parameter name used to specify if the scheduled should be activatived or deactivated
|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected boolean |
mAutoSendEmail |
protected ConfirmationInfo |
mConfirmationInfo |
protected CSRAgentTools |
mCSRAgentTools |
protected CSRScheduledOrderTools |
mCSRScheduledOrderTools |
static atg.nucleus.naming.ParameterName |
SCHEDULED_ORDER_ID_PARAM_NAME
The parameter name used to specify the scheduled order id
|
AGENTRESOURCES, AGENTUSERRESOURCES, mApplicationName, mDoTicketDispositionPrompt, mDoWarnings, mEnvironmentChangeKey, mEnvironmentChangeState, mEnvironmentTools, mInitChangeState, mInputParameters, mMessageTools, mTicketDispositionChangeHandler, mTicketDispositionOptions, mTicketingTools, mTransactionManager, sBundlePARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS| Constructor and Description |
|---|
LoadAndExecuteAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateSchedule()
Activates the schedule and re-calculates the next run time
|
protected boolean |
changeEnvironment(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Executes the action against the scheduled order item.
|
protected void |
deactivateSchedule()
Deactivates the schedule
|
ConfirmationInfo |
getConfirmationInfo()
Returns the confirmation info object used for sending email confirmations.
|
CSRAgentTools |
getCSRAgentTools()
Returns a reference to the CSRAgentTools component
|
CSRScheduledOrderTools |
getCSRScheduledOrderTools()
Returns a reference to the CSRScheduledOrderTools component
|
protected void |
initializeConfirmationInfoForScheduleUpdate(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Initializes the confirmation info object when a new order is submitted
|
boolean |
isAutoSendEmail()
Gets the AutoSendEmail
|
protected void |
performAction(java.lang.String pAction)
Performs the requested action against the scheduled order item
|
protected boolean |
postChangeEnvironment(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Post environment change processing.
|
void |
setAutoSendEmail(boolean pAutoSendEmail)
Sets the AutoSendEmail
|
void |
setConfirmationInfo(ConfirmationInfo pConfirmationInfo) |
void |
setCSRAgentTools(CSRAgentTools pAgentTools) |
void |
setCSRScheduledOrderTools(CSRScheduledOrderTools pCSRScheduledOrderTools) |
addRedirectURLParams, conformRedirectURL, getApplicationName, getConfirmPromptURL, getConfirmURL, getEnvironmentChangeKey, getEnvironmentChangeState, getEnvironmentTools, getErrorURL, getInputParameters, getMessageTools, getSuccessURL, getTicketDispositionChangeHandler, getTicketDispositionOptions, getTicketingTools, getTransactionManager, getUserLocale, getUserMessage, getUserMessage, handleChangeEnvironment, initChangeState, initChangeState, isDoTicketDispositionPrompt, isDoWarnings, isInitChangeState, isShowDispositionPrompt, preChangeEnvironment, setApplicationName, setConfirmPromptURL, setConfirmURL, setDoTicketDispositionPrompt, setDoWarnings, setEnvironmentChangeKey, setEnvironmentChangeState, setEnvironmentTools, setErrorURL, setInitChangeState, setInputParameters, setMessageTools, setSuccessURL, setTicketDispositionChangeHandler, setTicketDispositionOptions, setTicketingTools, setTransactionManager, setupInputParametersaddFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwardsaddLogListener, clearAbsoluteNameAndContext, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, isStartServiceComplete, 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, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public static final atg.nucleus.naming.ParameterName SCHEDULED_ORDER_ID_PARAM_NAME
public static final atg.nucleus.naming.ParameterName ACTION_PARAM_NAME
public static final java.lang.String ACTION_ACTIVATE
public static final java.lang.String ACTION_DEACTIVATE
protected ConfirmationInfo mConfirmationInfo
protected boolean mAutoSendEmail
protected CSRAgentTools mCSRAgentTools
protected CSRScheduledOrderTools mCSRScheduledOrderTools
public ConfirmationInfo getConfirmationInfo()
public void setConfirmationInfo(ConfirmationInfo pConfirmationInfo)
public boolean isAutoSendEmail()
public void setAutoSendEmail(boolean pAutoSendEmail)
pAutoSendEmail - The AutoSendEmail to setpublic CSRAgentTools getCSRAgentTools()
public void setCSRAgentTools(CSRAgentTools pAgentTools)
public CSRScheduledOrderTools getCSRScheduledOrderTools()
public void setCSRScheduledOrderTools(CSRScheduledOrderTools pCSRScheduledOrderTools)
protected boolean changeEnvironment(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
changeEnvironment in class atg.svc.agent.environment.EnvironmentChangeFormHandlerjavax.servlet.ServletExceptionjava.io.IOExceptionperformAction(String)protected void performAction(java.lang.String pAction)
throws atg.commerce.CommerceException
pAction - atg.commerce.CommerceExceptionACTION_ACTIVATE,
ACTION_DEACTIVATEprotected boolean postChangeEnvironment(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
postChangeEnvironment in class atg.svc.agent.environment.EnvironmentChangeFormHandlerpRequest - pResponse - javax.servlet.ServletExceptionjava.io.IOExceptionprotected void initializeConfirmationInfoForScheduleUpdate(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
pRequest - pResponse - protected void activateSchedule()
throws atg.commerce.CommerceException
atg.commerce.CommerceExceptionCSRScheduledOrderTools.activateSchedule(String)protected void deactivateSchedule()
throws atg.commerce.CommerceException
atg.commerce.CommerceException