|
||||||||||
| 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.svc.agent.environment.EnvironmentMonitor
atg.svc.agent.environment.ServiceEnvironmentMonitor
public class ServiceEnvironmentMonitor
This environment monitor manages changes to the active ticket and active customer.
EnvironmentMonitor| Field Summary | |
|---|---|
static java.lang.String |
ACTIVE_CUSTOMER_PROFILE_COMPONENT_PATH
The active customer profile component path |
static java.lang.String |
ACTIVE_TICKET_HOLDER_COMPONENT_PATH
ticket holder component path |
static java.lang.String |
AGENT_PROFILE_COMPONENT_PATH
The agent profile component path |
static java.lang.String |
CALL_STATE_COMPONENT_PATH
The call state component path |
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class atg.svc.agent.environment.EnvironmentMonitor |
|---|
mEnvironmentTools |
| 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 | |
|---|---|
ServiceEnvironmentMonitor()
|
|
| Method Summary | |
|---|---|
void |
applyActiveCustomerChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Applies the change to the current active customer based on the change detail. |
void |
applyActiveTicketChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Applies the change to the active ticket. |
void |
applyChanges(EnvironmentChangeState pEnvironmentChangeState)
Applies changes to the environment based on the details in the environment change state. |
void |
createWarningsForEnvironmentChange(EnvironmentChangeState pEnvironmentChangeState)
Creates the warnings related to Service environment object changes |
protected void |
generateChangeDetailsForChangeKey(java.lang.String pChangeKey,
EnvironmentChangeState pEnvironmentChangeState)
This method is called to generate change details for the given change key. |
protected void |
generateDependentChangeDetails(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
This method is called to generate change details that result from the given EnvironmentChangeDetail. |
protected void |
generateDependentDetailsForActiveCustomerChange(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Generates change details that result from a change of profile. |
protected void |
generateDependentDetailsForActiveTicketChange(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Generates change details that result from a change of ticket. |
atg.userprofiling.Profile |
getActiveCustomerProfileComponent()
Returns the active customer profile component. |
atg.repository.RepositoryItem |
getActiveTicket()
Returns the active ticket from the holder. |
java.lang.Object |
getEnvironmentObject(java.lang.String pEnvironmentObjectName)
Returns the current customer profile and ticket environment objects |
void |
initializeNewTicket(java.lang.String pApplicationName,
java.lang.String pInboundChannel)
Initializes a new ticket in the holder |
boolean |
loadNewProfile(java.lang.String pProfileId)
Loads a profile item into the active customer profile. |
void |
postApplyChanges(EnvironmentChangeState pEnvironmentChangeState)
Sends the start call event for start new call and end and start new call changes and also resets the call state |
void |
preApplyChanges(EnvironmentChangeState pEnvironmentChangeState)
Executes ticket disposition handling for the current ticket. |
void |
revertActiveCustomerChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Loads the old customer profile contained in the detail as the active customer. |
void |
revertActiveTicketChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Loads the old ticket contained in the detail as the active ticket |
void |
revertChanges(EnvironmentChangeState pEnvironmentChangeState)
Reverts the active customer and ticket with the original objects before the change was executed. |
void |
setActiveTicket(atg.repository.RepositoryItem pTicket)
Sets the active ticket to the given ticket |
| Methods inherited from class atg.svc.agent.environment.EnvironmentMonitor |
|---|
generateChangeDetails, getAgentMessagingTools, getEnvironmentTools, initializeDefaultsForProfile, setAgentMessagingTools, setEnvironmentTools |
| 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 ACTIVE_TICKET_HOLDER_COMPONENT_PATH
public static final java.lang.String ACTIVE_CUSTOMER_PROFILE_COMPONENT_PATH
public static final java.lang.String AGENT_PROFILE_COMPONENT_PATH
public static final java.lang.String CALL_STATE_COMPONENT_PATH
| Constructor Detail |
|---|
public ServiceEnvironmentMonitor()
| Method Detail |
|---|
public void setActiveTicket(atg.repository.RepositoryItem pTicket)
public atg.repository.RepositoryItem getActiveTicket()
public atg.userprofiling.Profile getActiveCustomerProfileComponent()
protected void generateChangeDetailsForChangeKey(java.lang.String pChangeKey,
EnvironmentChangeState pEnvironmentChangeState)
throws atg.svc.agent.environment.EnvironmentChangeDetailConflict,
EnvironmentException
This implementation adds details for the following change keys:
generateChangeDetailsForChangeKey in class EnvironmentMonitorpChangeKey - pEnvironmentChangeState -
atg.svc.agent.environment.EnvironmentChangeDetailConflict
EnvironmentExceptionServiceEnvironmentConstants.ENV_CHG_START_NEW_CALL,
ServiceEnvironmentConstants.ENV_CHG_CHANGE_ACTIVE_CUSTOMER,
ServiceEnvironmentConstants.ENV_CHG_CHANGE_ACTIVE_TICKET
protected void generateDependentDetailsForActiveCustomerChange(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
throws atg.svc.agent.environment.EnvironmentChangeDetailConflict,
EnvironmentException
pEnvironmentChangeDetail - pEnvironmentChangeState -
atg.svc.agent.environment.EnvironmentChangeDetailConflict
EnvironmentException
protected void generateDependentDetailsForActiveTicketChange(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
throws atg.svc.agent.environment.EnvironmentChangeDetailConflict,
EnvironmentException
pEnvironmentChangeDetail - pEnvironmentChangeState -
atg.svc.agent.environment.EnvironmentChangeDetailConflict
EnvironmentException
protected void generateDependentChangeDetails(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
throws atg.svc.agent.environment.EnvironmentChangeDetailConflict,
EnvironmentException
generateDependentChangeDetails in class EnvironmentMonitorpEnvironmentChangeDetail - pEnvironmentChangeState -
atg.svc.agent.environment.EnvironmentChangeDetailConflict
EnvironmentException
public void createWarningsForEnvironmentChange(EnvironmentChangeState pEnvironmentChangeState)
throws EnvironmentException
createWarningsForEnvironmentChange in class EnvironmentMonitorEnvironmentExceptionEnvironmentChangeState.addWarnings(List),
This is a noop implementation.
public void preApplyChanges(EnvironmentChangeState pEnvironmentChangeState)
throws EnvironmentException
preApplyChanges in class EnvironmentMonitorEnvironmentExceptionEnvironmentChangeState.isProcessActiveTicketDisposition(),
EnvironmentTools.processTicketDisposition(RepositoryItem, TicketDispositionOptions, String)
public void applyChanges(EnvironmentChangeState pEnvironmentChangeState)
throws EnvironmentException
applyChanges in class EnvironmentMonitorEnvironmentExceptionEnvironmentTools.applyChanges(EnvironmentChangeState),
EnvironmentMonitor.revertChanges(EnvironmentChangeState)public void revertChanges(EnvironmentChangeState pEnvironmentChangeState)
revertChanges in class EnvironmentMonitorEnvironmentTools.applyChanges(EnvironmentChangeState)
public void postApplyChanges(EnvironmentChangeState pEnvironmentChangeState)
throws EnvironmentException
postApplyChanges in class EnvironmentMonitorEnvironmentExceptionEnvironmentTools.applyChanges(EnvironmentChangeState)
public void revertActiveCustomerChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
pEnvironmentChangeDetail - pEnvironmentChangeState -
public void applyActiveCustomerChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
throws EnvironmentException
pEnvironmentChangeDetail - pEnvironmentChangeState -
EnvironmentException
public void revertActiveTicketChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
pEnvironmentChangeDetail - pEnvironmentChangeState -
public void applyActiveTicketChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
throws EnvironmentException
pEnvironmentChangeDetail - pEnvironmentChangeState -
EnvironmentException
public void initializeNewTicket(java.lang.String pApplicationName,
java.lang.String pInboundChannel)
throws EnvironmentException
pApplicationName - pInboundChannel -
EnvironmentExceptionpublic boolean loadNewProfile(java.lang.String pProfileId)
pProfileId -
EnvironmentTools.loadNewProfile(String, Profile)
public java.lang.Object getEnvironmentObject(java.lang.String pEnvironmentObjectName)
throws EnvironmentException
getEnvironmentObject in class EnvironmentMonitorEnvironmentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||