|
||||||||||
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.ticketing.TicketingTools
public class TicketingTools
This component contains a base set of API for dealing with tickets in the Service application.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected EnvironmentTools |
mEnvironmentTools
|
protected FrameworkProfileService |
mProfileService
|
protected atg.ticketing.TicketingManager |
mTicketingManager
|
protected java.util.ResourceBundle |
sTicketingResourceBundle
|
protected static java.lang.String |
TICKETINGRESOURCES
Resources file |
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 | |
---|---|
TicketingTools()
|
Method Summary | |
---|---|
boolean |
addActivityNote(atg.repository.RepositoryItem pTicket,
atg.repository.RepositoryItem pActivity,
java.lang.String pTicketNote,
java.lang.String pApplicationName,
atg.repository.RepositoryItem pAgentProfile,
boolean pShare,
boolean pInbound)
Either sets the work note properties of the given activity or creates a new callNoteActivity and adds it to the ticket. |
atg.repository.RepositoryItem |
addWorkNote(atg.repository.RepositoryItem pTicket,
java.lang.String pTicketNote,
java.lang.String pApplicationName,
atg.repository.RepositoryItem pAgentProfile,
boolean pShare)
Adds a work note to the ticket. |
atg.repository.RepositoryItem |
close(atg.repository.RepositoryItem pTicket,
atg.repository.RepositoryItem pAgentProfile,
java.lang.String pApplicationName,
java.lang.String pReasonCode,
java.lang.String pSubStatus)
Closes a ticket. |
atg.repository.RepositoryItem |
defer(atg.repository.RepositoryItem pTicket,
atg.repository.RepositoryItem pAgentProfile,
java.lang.String pApplicationName,
java.util.Date pDate,
boolean pRetainOwnership,
java.lang.String pReasonCode)
Defers a ticket. |
atg.repository.RepositoryItem |
escalate(atg.repository.RepositoryItem pTicket,
atg.repository.RepositoryItem pAgentProfile,
java.lang.String pApplicationName,
java.lang.String pEscalationLevel,
java.lang.String pReasonCode)
Escalates a ticket to the given level and sends the escalate ticket event. |
java.util.List |
getAllAgents()
Returns all agents in the repository sorted by login name |
EnvironmentTools |
getEnvironmentTools()
|
int |
getNextHigherEscalationLevel(atg.repository.RepositoryItem pTicket)
Returns the next escalation level for the ticket |
int |
getNextHigherEscalationLevelForCurrentTicket()
Returns the next escalation level for the environment's current ticket |
atg.repository.RepositoryItem |
getNextPushedTicket(java.lang.String pApplicationName,
atg.repository.RepositoryItem pAgentProfile)
Returns the next ticket from the agent's queue if they are push agent. |
FrameworkProfileService |
getProfileService()
|
atg.ticketing.TicketingManager |
getTicketingManager()
|
java.util.List |
getTicketQueues()
Creates a list of ticket queues |
atg.repository.RepositoryItem |
reassign(atg.repository.RepositoryItem pTicket,
atg.repository.RepositoryItem pAgentProfile,
java.lang.String pAssigneeProfileId,
java.lang.String pApplicationName,
java.lang.String pReasonCode)
Assigns the ticket to a different agent. |
atg.repository.RepositoryItem |
release(atg.repository.RepositoryItem pTicket,
atg.repository.RepositoryItem pAgentProfile,
java.lang.String pApplicationName,
java.lang.String pReasonCode,
boolean pForced)
Releases the current ticket |
atg.repository.RepositoryItem |
sendToGroup(atg.repository.RepositoryItem pTicket,
java.lang.String pGroup,
atg.repository.RepositoryItem pAgentProfile,
java.lang.String pApplicationName,
java.lang.String pReasonCode)
Reassigns the ticket to a specific group (ticket queue) |
void |
setEnvironmentTools(EnvironmentTools pEnvironmentTools)
|
void |
setProfileService(FrameworkProfileService pProfileService)
|
void |
setTicketingManager(atg.ticketing.TicketingManager pTicketingManager)
|
void |
updateRecentTickets(java.lang.String ticketId,
atg.svc.repository.beans.RecentTicketsType type)
Updates the the recent ticket service with the given ticket |
void |
workTicket(atg.repository.RepositoryItem pTicket,
java.lang.String pApplicationName,
atg.repository.RepositoryItem pAgentProfile)
Reopens and either claims or unsuspends a ticket for an agent to "work" on it. |
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 final java.lang.String CLASS_VERSION
protected static final java.lang.String TICKETINGRESOURCES
protected final java.util.ResourceBundle sTicketingResourceBundle
protected EnvironmentTools mEnvironmentTools
protected atg.ticketing.TicketingManager mTicketingManager
protected FrameworkProfileService mProfileService
Constructor Detail |
---|
public TicketingTools()
Method Detail |
---|
public void setEnvironmentTools(EnvironmentTools pEnvironmentTools)
public EnvironmentTools getEnvironmentTools()
public void setTicketingManager(atg.ticketing.TicketingManager pTicketingManager)
public atg.ticketing.TicketingManager getTicketingManager()
public void setProfileService(FrameworkProfileService pProfileService)
public FrameworkProfileService getProfileService()
public boolean addActivityNote(atg.repository.RepositoryItem pTicket, atg.repository.RepositoryItem pActivity, java.lang.String pTicketNote, java.lang.String pApplicationName, atg.repository.RepositoryItem pAgentProfile, boolean pShare, boolean pInbound) throws atg.ticketing.TicketingException, atg.repository.RepositoryException
pTicket
- The ticket to receive the notepActivity
- (optional) If provided, the note is set on the activity.pTicketNote
- The text of the notepApplicationName
- The application name used for the notepAgentProfile
- The agent's profile repository itempShare
- determines the customer visibility of the note.pInbound
- Applies only when pActivity is null. Used as the inbound property value of
the new callNoteActivity created for the note.
atg.ticketing.TicketingException
atg.repository.RepositoryException
public atg.repository.RepositoryItem addWorkNote(atg.repository.RepositoryItem pTicket, java.lang.String pTicketNote, java.lang.String pApplicationName, atg.repository.RepositoryItem pAgentProfile, boolean pShare) throws atg.ticketing.TicketingException
pTicket
- The ticket to recieve the notepTicketNote
- The text of the notepApplicationName
- The application name used for the notepAgentProfile
- The agent's profile repository itempShare
- determines the customer visibility of the note.
atg.ticketing.TicketingException
public atg.repository.RepositoryItem getNextPushedTicket(java.lang.String pApplicationName, atg.repository.RepositoryItem pAgentProfile)
public void workTicket(atg.repository.RepositoryItem pTicket, java.lang.String pApplicationName, atg.repository.RepositoryItem pAgentProfile) throws atg.ticketing.TicketingException
pTicket
- pApplicationName
- pAgentProfile
- the agent for which the ticket is being claimed
atg.ticketing.TicketingException
public atg.repository.RepositoryItem defer(atg.repository.RepositoryItem pTicket, atg.repository.RepositoryItem pAgentProfile, java.lang.String pApplicationName, java.util.Date pDate, boolean pRetainOwnership, java.lang.String pReasonCode) throws atg.ticketing.TicketingException
pTicket
- pAgentProfile
- pApplicationName
- pDate
- pRetainOwnership
- pReasonCode
-
atg.ticketing.TicketingException
TicketingManager.suspendTicket(String, RepositoryItem, RepositoryItem, String, boolean, Date)
public atg.repository.RepositoryItem escalate(atg.repository.RepositoryItem pTicket, atg.repository.RepositoryItem pAgentProfile, java.lang.String pApplicationName, java.lang.String pEscalationLevel, java.lang.String pReasonCode) throws atg.ticketing.TicketingException
pTicket
- pAgentProfile
- pApplicationName
- pEscalationLevel
- pReasonCode
-
atg.ticketing.TicketingException
public atg.repository.RepositoryItem close(atg.repository.RepositoryItem pTicket, atg.repository.RepositoryItem pAgentProfile, java.lang.String pApplicationName, java.lang.String pReasonCode, java.lang.String pSubStatus) throws atg.ticketing.TicketingException
In addition to closing the ticket, this method removes any work in progress activity on the ticket and sends the close ticket agent event.
pTicket
- pAgentProfile
- pApplicationName
- pReasonCode
- pSubStatus
-
atg.ticketing.TicketingException
public void updateRecentTickets(java.lang.String ticketId, atg.svc.repository.beans.RecentTicketsType type)
ticketId
- type
- public atg.repository.RepositoryItem reassign(atg.repository.RepositoryItem pTicket, atg.repository.RepositoryItem pAgentProfile, java.lang.String pAssigneeProfileId, java.lang.String pApplicationName, java.lang.String pReasonCode) throws atg.ticketing.TicketingException, atg.repository.RepositoryException
pTicket
- pAgentProfile
- pAssigneeProfileId
- pApplicationName
- pReasonCode
-
atg.ticketing.TicketingException
atg.repository.RepositoryException
public atg.repository.RepositoryItem sendToGroup(atg.repository.RepositoryItem pTicket, java.lang.String pGroup, atg.repository.RepositoryItem pAgentProfile, java.lang.String pApplicationName, java.lang.String pReasonCode) throws atg.ticketing.TicketingException, atg.repository.RepositoryException
pTicket
- pGroup
- pAgentProfile
- pApplicationName
- pReasonCode
-
atg.ticketing.TicketingException
atg.repository.RepositoryException
public java.util.List getTicketQueues()
public int getNextHigherEscalationLevelForCurrentTicket()
public int getNextHigherEscalationLevel(atg.repository.RepositoryItem pTicket)
public atg.repository.RepositoryItem release(atg.repository.RepositoryItem pTicket, atg.repository.RepositoryItem pAgentProfile, java.lang.String pApplicationName, java.lang.String pReasonCode, boolean pForced) throws atg.ticketing.TicketingException, atg.repository.RepositoryException
pTicket
- pAgentProfile
- pApplicationName
- pReasonCode
- pForced
-
atg.ticketing.TicketingException
atg.repository.RepositoryException
TicketingManager.releaseTicket(String, RepositoryItem, RepositoryItem, String, boolean)
public java.util.List getAllAgents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |