atg.projects.b2bstore.order
Class ItemsSplitbyType

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.nucleus.TimedOperationService
              extended by atg.nucleus.servlet.ServletService
                  extended by atg.nucleus.servlet.HttpServletService
                      extended by atg.servlet.DynamoServlet
                          extended by atg.projects.b2bstore.order.ItemsSplitbyType
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, ParameterServlet, java.util.EventListener, javax.servlet.Servlet

public class ItemsSplitbyType
extends DynamoServlet

This servlet takes order and type parameter and returns whether the type is split at the item level instead of order level. The parameters are:

order
The order on which the type of split is to be determined.
type
The possible arguments of this are

-costCenter
-paymentGroup.

For costCenter this servlet checks whether Cost Centers are split at item level,
For paymentGroup this servlet checks whether Paymnet Groups are split at item level.

The use of the sevlet is shown in the following example:

 <DROPLET BEAN="ItemsSplitByType">
 <PARAM NAME="order" VALUE="param:order">
 <PARAM NAME="type" VALUE="paymentGroup">
 <OPARAM NAME="true">
  .............
 </OPARAM>
 <OPARAM NAME="false">
 ............
 </OPARAM>
 </DROPLET>
 
In the above case if the Payment Groups were split at Item level then the oparam of value
true would have been rendered, other wise false would have been rendered.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String COSTCENTER
           
static java.lang.String FALSE
           
static java.lang.String MISSING_ORDER
           
static java.lang.String MISSING_SPLITTYPE
           
static java.lang.String MY_RESOURCE_NAME
           
static java.lang.String PAYMENTGROUP
           
static java.lang.String TRUE
           
static java.lang.String TYPE
           
 
Fields inherited from class atg.servlet.DynamoServlet
mAllowCleanupRequest, mParameters
 
Fields inherited from class atg.nucleus.servlet.ServletService
SERVLET_INFO_KEY
 
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
ItemsSplitbyType()
           
 
Method Summary
protected  void checkType(Order pOrder, DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          This method finds whether order is split at item-level for cost centers or payment groups.
 void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
          This method provides the default implementation of service, by dispatching to conventionally named methods which begin with "do".
 
Methods inherited from class atg.servlet.DynamoServlet
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter
 
Methods inherited from class atg.nucleus.servlet.ServletService
destroy, getServletConfig, getServletInfo, init, setServletInfo
 
Methods inherited from class atg.nucleus.TimedOperationService
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


TRUE

public static final java.lang.String TRUE
See Also:
Constant Field Values

FALSE

public static final java.lang.String FALSE
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

PAYMENTGROUP

public static final java.lang.String PAYMENTGROUP
See Also:
Constant Field Values

COSTCENTER

public static final java.lang.String COSTCENTER
See Also:
Constant Field Values

MY_RESOURCE_NAME

public static final java.lang.String MY_RESOURCE_NAME
See Also:
Constant Field Values

MISSING_ORDER

public static final java.lang.String MISSING_ORDER
See Also:
Constant Field Values

MISSING_SPLITTYPE

public static final java.lang.String MISSING_SPLITTYPE
See Also:
Constant Field Values
Constructor Detail

ItemsSplitbyType

public ItemsSplitbyType()
Method Detail

service

public void service(DynamoHttpServletRequest pRequest,
                    DynamoHttpServletResponse pResponse)
             throws java.io.IOException,
                    javax.servlet.ServletException
Description copied from class: DynamoServlet
This method provides the default implementation of service, by dispatching to conventionally named methods which begin with "do".

Overrides:
service in class DynamoServlet
Parameters:
pRequest - the request to be processed
pResponse - the response object for this request
Throws:
java.io.IOException - an error occurred reading data from the request or writing data to the response.
javax.servlet.ServletException - an application specific error occurred processing this request

checkType

protected void checkType(Order pOrder,
                         DynamoHttpServletRequest pRequest,
                         DynamoHttpServletResponse pResponse)
                  throws java.io.IOException,
                         javax.servlet.ServletException
This method finds whether order is split at item-level for cost centers or payment groups.

Parameters:
pOrder - is the Order which contains items.
pRequest -
pResponse -
Throws:
java.io.IOException
javax.servlet.ServletException