|
||||||||||
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 |
AGENT_PROFILE_SEARCH_REQUEST_TRACKER_PATH
The path to the agentProfileSearchRequestTracker component |
static java.lang.String |
CALL_STATE_COMPONENT_PATH
The call state component path |
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
CURRENT_SITE_HOLDER_PATH
The path to the environment's current site holder component |
protected static java.lang.String |
MY_RESOURCES
|
protected java.util.ResourceBundle |
sBundle
|
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 |
applySiteChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Changes the current site based on the change detail. |
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. |
protected void |
generateInitialChangesForChangeSite(EnvironmentChangeState pEnvironmentChangeState)
This method creates the initial changes details for the change of site |
protected void |
generateInitialChangesForInitEnvironment(EnvironmentChangeState pEnvironmentChangeState)
This method creates the initial change details for the initialize environment change. |
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. |
protected void |
pushSite(EnvironmentChangeState pEnvironmentChangeState,
atg.multisite.Site pSite)
Pushes the given site into the current site context. |
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 |
revertSiteChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail,
EnvironmentChangeState pEnvironmentChangeState)
Reverts the site change. |
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, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, 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, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 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
public static final java.lang.String AGENT_PROFILE_SEARCH_REQUEST_TRACKER_PATH
public static final java.lang.String CURRENT_SITE_HOLDER_PATH
protected static final java.lang.String MY_RESOURCES
protected final java.util.ResourceBundle sBundle
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 EnvironmentMonitor
pChangeKey
- pEnvironmentChangeState
-
atg.svc.agent.environment.EnvironmentChangeDetailConflict
EnvironmentException
ServiceEnvironmentConstants.ENV_CHG_START_NEW_CALL
,
ServiceEnvironmentConstants.ENV_CHG_CHANGE_ACTIVE_CUSTOMER
,
ServiceEnvironmentConstants.ENV_CHG_CHANGE_ACTIVE_TICKET
protected void generateInitialChangesForInitEnvironment(EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
This method initializes profile, ticket and site.
pEnvironmentChangeState
-
EnvironmentException
protected void generateInitialChangesForChangeSite(EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
pEnvironmentChangeState
-
EnvironmentException
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 EnvironmentMonitor
pEnvironmentChangeDetail
- pEnvironmentChangeState
-
atg.svc.agent.environment.EnvironmentChangeDetailConflict
EnvironmentException
public void createWarningsForEnvironmentChange(EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
createWarningsForEnvironmentChange
in class EnvironmentMonitor
EnvironmentException
EnvironmentChangeState.addWarnings(List)
,
This is a noop implementation.
public void preApplyChanges(EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
preApplyChanges
in class EnvironmentMonitor
EnvironmentException
EnvironmentChangeState.isProcessActiveTicketDisposition()
,
EnvironmentTools.processTicketDisposition(RepositoryItem, TicketDispositionOptions, String)
public void applyChanges(EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
applyChanges
in class EnvironmentMonitor
EnvironmentException
EnvironmentTools.applyChanges(EnvironmentChangeState)
,
EnvironmentMonitor.revertChanges(EnvironmentChangeState)
public void revertChanges(EnvironmentChangeState pEnvironmentChangeState)
revertChanges
in class EnvironmentMonitor
EnvironmentTools.applyChanges(EnvironmentChangeState)
public void postApplyChanges(EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
postApplyChanges
in class EnvironmentMonitor
EnvironmentException
EnvironmentTools.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
If changing to a pre-existing ticket, the ticket is claimed by the agent and re-opened if necessary.
pEnvironmentChangeDetail
- pEnvironmentChangeState
-
EnvironmentException
TicketingTools.workTicket(RepositoryItem, String, RepositoryItem)
public void initializeNewTicket(java.lang.String pApplicationName, java.lang.String pInboundChannel) throws EnvironmentException
pApplicationName
- pInboundChannel
-
EnvironmentException
public 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 EnvironmentMonitor
EnvironmentException
public void applySiteChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail, EnvironmentChangeState pEnvironmentChangeState) throws EnvironmentException
pEnvironmentChangeDetail
- pEnvironmentChangeState
-
EnvironmentException
public void revertSiteChangeDetail(EnvironmentChangeDetail pEnvironmentChangeDetail, EnvironmentChangeState pEnvironmentChangeState)
pEnvironmentChangeDetail
- pEnvironmentChangeState
- protected void pushSite(EnvironmentChangeState pEnvironmentChangeState, atg.multisite.Site pSite)
This monitor uses this API when applying or reverting a site change so that the site context is properly set for the remaining of the apply or revert process. For example, other monitors that execute after the site change has been applied or reverted will perform their processing under the correct site context.
pEnvironmentChangeState
- pSite
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |