atg.svc.ui.formhandlers
Class SearchAgentAllTicketsFormHandler

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.droplet.EmptyFormHandler
              extended by atg.droplet.GenericFormHandler
                  extended by atg.droplet.TransactionalFormHandler
                      extended by atg.web.formhandlers.ApplicationFormHandler
                          extended by atg.svc.ui.formhandlers.ServiceFormHandler
                              extended by atg.svc.ui.formhandlers.FrameworkBaseFormHandler
                                  extended by atg.svc.ui.formhandlers.SearchAgentAllTicketsFormHandler
All Implemented Interfaces:
atg.droplet.DropletFormHandler, atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, FormHandlerConstants, TreeTableFormHandler, Listable, Pageable, Sortable, java.util.EventListener

public class SearchAgentAllTicketsFormHandler
extends FrameworkBaseFormHandler
implements Listable, Pageable, Sortable, TreeTableFormHandler


Nested Class Summary
static class SearchAgentAllTicketsFormHandler.ResultWrapper
           
 
Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 java.lang.String m_formStateKey
           
 
Fields inherited from class atg.svc.ui.formhandlers.ServiceFormHandler
PERFMON_OP_FORM_HANDLER
 
Fields inherited from class atg.web.formhandlers.ApplicationFormHandler
EQUALS, PARAM_DELIMITER, QUERY_DELIMITER, STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESS
 
Fields inherited from class atg.droplet.GenericFormHandler
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.svc.ui.formhandlers.FormHandlerConstants
OPTIONS_ANSWER_DISPLAY, OPTIONS_ANSWER_DISPLAY_CURRENT_WINDOW, OPTIONS_ANSWER_DISPLAY_MULTIPLE_WINDOWS, OPTIONS_ANSWER_DISPLAY_SINGLE_WINDOW, OPTIONS_FILTER_BY_DOC_SET, OPTIONS_FILTER_BY_FORMAT, OPTIONS_FILTER_BY_SOURCE, OPTIONS_FILTER_BY_TITLE, OPTIONS_FILTER_OR_GROUPING_FILTER, OPTIONS_FILTER_OR_GROUPING_GROUP, OPTIONS_FILTER_OR_GROUPING_NONE, OPTIONS_QUERY_LANGUAGE, OPTIONS_RESULT_LANGUAGE, OPTIONS_SHOW_ANSWERS_AS, OPTIONS_SHOW_ANSWERS_BY_DOC, OPTIONS_SHOW_ANSWERS_INDIVIDUAL, OPTIONS_SHOW_FAQS_AS_QUESTIONS, OPTIONS_SHOW_FAQS_AS_QUESTIONS_AND_ANSWERS, PARAM_SITE_ID
 
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
SearchAgentAllTicketsFormHandler()
           
 
Method Summary
protected  atg.repository.Query assembleQueryFromParamMap()
           
protected  java.util.List assembleSearchResults(atg.repository.RepositoryItem[] results)
           
protected  void formHandlerInit(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
           
 java.lang.String getFormStateKey()
           
 atg.ticketing.TicketingManager getManager()
           
 java.lang.String getOperation()
           
 int getPollInterval()
           
 atg.userprofiling.Profile getProfile()
           
 atg.userprofiling.ProfileTools getProfileTools()
           
 java.lang.String getSortDirection()
           
 java.lang.String getStartingEscalationLevel()
           
 java.lang.String getState()
           
 java.lang.String getStateKey()
           
protected  java.util.Map getTicketQueryContext(atg.servlet.DynamoHttpServletRequest request)
           
 int getTotalItemCount()
           
 java.lang.String getTreeTableId()
           
 View getView()
           
 int getViewItemCount()
           
 java.util.List getViewItems()
           
 boolean handleSearch(atg.servlet.DynamoHttpServletRequest request, atg.servlet.DynamoHttpServletResponse response)
           
 void page(int pStartIndex, int pPageSize)
           
protected  void saveTicketQueryContext(atg.servlet.DynamoHttpServletRequest request)
           
protected  java.util.List search(java.util.Map pTicketQueryInfo)
           
 void setFormStateKey(java.lang.String stateKey)
           
 void setIgnoreCase(boolean pIgnoreCase)
           
 void setManager(atg.ticketing.TicketingManager pTicketingManager)
           
 void setOperation(java.lang.String pOperation)
           
 void setPollInterval(int interval)
           
 void setProfile(atg.userprofiling.Profile profile)
           
 void setProfileTools(atg.userprofiling.ProfileTools profileTools)
           
 void setSortDirection(java.lang.String pDirection)
           
 void setSortField(java.lang.String pField)
           
 void setState(java.lang.String pState)
           
 void setStateKey(java.lang.String pStateKey)
           
 void setTreeTableId(java.lang.String pTreeTableId)
           
 void setView(View pView)
           
 
Methods inherited from class atg.svc.ui.formhandlers.FrameworkBaseFormHandler
getErrorURL, getParameterMap, getParameters, handleChangeTab, handleCloseWindow, handleGetWindowTab, handleHidePanel, handleProcessPanel, handleScrollPanelTabsLeft, handleScrollPanelTabsRight, handleSelectTabbedPanel, handleShowPanel, handleToggleCell, handleTogglePanel, handleTogglePanelContent, handleTogglePanelsToTabs, handleTransform, setErrorURL, setParameterMap, setParameters
 
Methods inherited from class atg.svc.ui.formhandlers.ServiceFormHandler
handleUncheckedFormException, isLoggingUncheckedException, isRollbackTransactionOnFormError, isTransactionMarkedAsRollback, processException, processException, setLoggingUncheckedException, setRollbackTransactionOnFormError
 
Methods inherited from class atg.web.formhandlers.ApplicationFormHandler
addParameterToURLString, beforeGet, beforeSet, checkFormError, checkFormRedirect, checkFormSuccess, formHandlerBeforeGet, formHandlerBeforeSet, getRedirectDelayMS, getString, getString, getString, getSuccessURL, getUserMessagesResourceBundle, handleCancel, processException, processException, processExceptionAndLog, processExceptionAndLog, redirect, setRedirectDelayMS, setSuccessURL, setUserMessagesResourceBundle
 
Methods inherited from class atg.droplet.TransactionalFormHandler
afterSet, commitTransaction, getTransactionDemarcation, getTransactionStatus, isEnsureTransaction, isRollbackTransaction, isRollbackTransactionOnUnhandledException, setEnsureTransaction, setRollbackTransaction, setRollbackTransactionOnUnhandledException, setTransactionDemarcation
 
Methods inherited from class atg.droplet.GenericFormHandler
addFormException, addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
 
Methods inherited from class atg.droplet.EmptyFormHandler
afterGet
 
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
 
Methods inherited from interface atg.svc.ui.formhandlers.TreeTableFormHandler
getParameters, setParameters
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


m_formStateKey

public java.lang.String m_formStateKey
Constructor Detail

SearchAgentAllTicketsFormHandler

public SearchAgentAllTicketsFormHandler()
Method Detail

page

public void page(int pStartIndex,
                 int pPageSize)
Specified by:
page in interface Pageable
See Also:
Pageable.page(int, int)

search

protected java.util.List search(java.util.Map pTicketQueryInfo)
Parameters:
pTicketQueryInfo -
Returns:
Returns list of SearchAgentAllTicketsFormHandler.ResultWrapper that wraps Ticket repository items

handleSearch

public boolean handleSearch(atg.servlet.DynamoHttpServletRequest request,
                            atg.servlet.DynamoHttpServletResponse response)
                     throws java.lang.Exception
Parameters:
request - Dynamo HTTP request
response - Dynamo HTTP response
Returns:
Returns true if checkFormRedirect succeeds
Throws:
java.lang.Exception

formHandlerInit

protected void formHandlerInit(atg.servlet.DynamoHttpServletRequest pRequest,
                               atg.servlet.DynamoHttpServletResponse pResponse)
Overrides:
formHandlerInit in class FrameworkBaseFormHandler

getFormStateKey

public java.lang.String getFormStateKey()
Returns:
Returns key for ticketing form state

setFormStateKey

public void setFormStateKey(java.lang.String stateKey)
Parameters:
stateKey - Key for ticketing form state

setTreeTableId

public void setTreeTableId(java.lang.String pTreeTableId)
Specified by:
setTreeTableId in interface TreeTableFormHandler

getTreeTableId

public java.lang.String getTreeTableId()
Specified by:
getTreeTableId in interface TreeTableFormHandler

setView

public void setView(View pView)
Specified by:
setView in interface TreeTableFormHandler

getView

public View getView()
Specified by:
getView in interface TreeTableFormHandler

getViewItems

public java.util.List getViewItems()
Specified by:
getViewItems in interface Listable

getViewItemCount

public int getViewItemCount()
Specified by:
getViewItemCount in interface Listable

getManager

public atg.ticketing.TicketingManager getManager()

setManager

public void setManager(atg.ticketing.TicketingManager pTicketingManager)

assembleSearchResults

protected java.util.List assembleSearchResults(atg.repository.RepositoryItem[] results)
Parameters:
results - Array of Ticket repository items
Returns:
Returns list of SearchAgentAllTicketsFormHandler.ResultWrapper that wraps the values in the input RepositoryItem[] array

getTotalItemCount

public int getTotalItemCount()
Specified by:
getTotalItemCount in interface Listable

getProfile

public atg.userprofiling.Profile getProfile()
Returns:
Returns Profile

setProfile

public void setProfile(atg.userprofiling.Profile profile)
Parameters:
profile - Profile

setSortField

public void setSortField(java.lang.String pField)
Specified by:
setSortField in interface Sortable

setSortDirection

public void setSortDirection(java.lang.String pDirection)
Specified by:
setSortDirection in interface Sortable

getSortDirection

public java.lang.String getSortDirection()
Returns:
Returns the direction to sort the tickets
See Also:
Sortable.setSortDirection(java.lang.String)

setIgnoreCase

public void setIgnoreCase(boolean pIgnoreCase)
Specified by:
setIgnoreCase in interface Sortable

setStateKey

public void setStateKey(java.lang.String pStateKey)

getStateKey

public java.lang.String getStateKey()

setState

public void setState(java.lang.String pState)
Specified by:
setState in interface TreeTableFormHandler

getState

public java.lang.String getState()
Specified by:
getState in interface TreeTableFormHandler

setOperation

public void setOperation(java.lang.String pOperation)
Specified by:
setOperation in interface TreeTableFormHandler

getOperation

public java.lang.String getOperation()
Specified by:
getOperation in interface TreeTableFormHandler

getProfileTools

public atg.userprofiling.ProfileTools getProfileTools()

setProfileTools

public void setProfileTools(atg.userprofiling.ProfileTools profileTools)

assembleQueryFromParamMap

protected atg.repository.Query assembleQueryFromParamMap()

getStartingEscalationLevel

public java.lang.String getStartingEscalationLevel()

saveTicketQueryContext

protected void saveTicketQueryContext(atg.servlet.DynamoHttpServletRequest request)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getTicketQueryContext

protected java.util.Map getTicketQueryContext(atg.servlet.DynamoHttpServletRequest request)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPollInterval

public int getPollInterval()

setPollInterval

public void setPollInterval(int interval)