atg.svc.agent.ticketing
Class ServiceTicketDispositionMonitor

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.logging.ApplicationLoggingImpl
          extended by atg.svc.agent.ticketing.ServiceTicketDispositionMonitor
All Implemented Interfaces:
atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.ticketing.TicketDispositionMonitor

public class ServiceTicketDispositionMonitor
extends atg.nucleus.logging.ApplicationLoggingImpl
implements atg.ticketing.TicketDispositionMonitor

Service ticket disposition monitor that decides if a ticket can be discarded or its owner can be changed. This is determined by a configured list of nondiscardable activities.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
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
ServiceTicketDispositionMonitor()
           
 
Method Summary
 java.lang.String[] getNonDiscardableActivityTypes()
          Default value is the list of defaultRecorderactivities and eventTypeToRecorderMap if not specified in property file.
 atg.ticketing.TicketingManager getTicketingManager()
           
 boolean isOwnerChangeable(atg.repository.RepositoryItem pTicket, java.lang.String pNewOwnerId)
          Whether the ticket can have it owner property changed to a new owner.
 void setNonDiscardableActivityTypes(java.lang.String[] pNonDiscardableActivityTypes)
          The types of activities whose presence on a ticket will result in the ticket not being discarded
 void setTicketingManager(atg.ticketing.TicketingManager pTicketingManager)
          The TicketingManager component
 boolean shouldDiscard(atg.repository.RepositoryItem pTicket)
          Returns false if the ticket contains any of the non-discardable activities.
 boolean shouldDiscardImmediately(atg.repository.RepositoryItem pTicket)
          By default returns the result of shouldDiscard
 
Methods inherited from class atg.nucleus.logging.ApplicationLoggingImpl
addGlobalLogListeners, addLogListener, getLoggingForVlogging, getLoggingIdentifer, getLoggingIdentifier, getLogListenerCount, getLogListeners, initializeFromServiceEvent, isAutoInitListeners, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, removeLogListener, sendLogEvent, setAutoInitListeners, setLoggingDebug, setLoggingError, setLoggingIdentifier, setLoggingInfo, setLoggingTrace, setLoggingWarning
 
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
Class version string

See Also:
Constant Field Values
Constructor Detail

ServiceTicketDispositionMonitor

public ServiceTicketDispositionMonitor()
Method Detail

setTicketingManager

public void setTicketingManager(atg.ticketing.TicketingManager pTicketingManager)
The TicketingManager component

Parameters:
pTicketingManager -

getTicketingManager

public atg.ticketing.TicketingManager getTicketingManager()
Returns:
the TicketingManager component

setNonDiscardableActivityTypes

public void setNonDiscardableActivityTypes(java.lang.String[] pNonDiscardableActivityTypes)
The types of activities whose presence on a ticket will result in the ticket not being discarded

Parameters:
pNonDiscardableActivityTypes - the types of activities whose presence on a ticket will result in the ticket not being discarded

getNonDiscardableActivityTypes

public java.lang.String[] getNonDiscardableActivityTypes()
Default value is the list of defaultRecorderactivities and eventTypeToRecorderMap if not specified in property file.

Returns:
the types of activities whose prescense on a ticket will result in the ticket not being discarded

isOwnerChangeable

public boolean isOwnerChangeable(atg.repository.RepositoryItem pTicket,
                                 java.lang.String pNewOwnerId)
Whether the ticket can have it owner property changed to a new owner.

This monitor always returns the value of shouldDiscard.

Specified by:
isOwnerChangeable in interface atg.ticketing.TicketDispositionMonitor
Parameters:
pTicket - the ticket in question.
pNewOwnerId - the id of the potential new owner
Returns:
true if the owner can change.

shouldDiscard

public boolean shouldDiscard(atg.repository.RepositoryItem pTicket)
Returns false if the ticket contains any of the non-discardable activities.

Specified by:
shouldDiscard in interface atg.ticketing.TicketDispositionMonitor

shouldDiscardImmediately

public boolean shouldDiscardImmediately(atg.repository.RepositoryItem pTicket)
By default returns the result of shouldDiscard

Specified by:
shouldDiscardImmediately in interface atg.ticketing.TicketDispositionMonitor