atg.projects.b2bstore.order
Class ItemsSplitbyType
java.lang.Object
atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.TimedOperationService
atg.nucleus.servlet.ServletService
atg.nucleus.servlet.HttpServletService
atg.servlet.DynamoServlet
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.
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
DEFAULT_LOG_TRACE_STATUS |
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, reResolveThis, 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 |
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
ItemsSplitbyType
public ItemsSplitbyType()
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 processedpResponse
- 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