|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.commerce.order.AuthorizedPaymentTypesDroplet
public class AuthorizedPaymentTypesDroplet
The AuthorizedPaymentTypesDroplet
DynamoServlet determines the
payment types that a user is authorized to use.
To use this DynamoServlet there is a ServiceMap of payment types, to the Nucleus
paths of UserPaymentTypeAuthorizer components. The payment types correspond to those
types that are registered with the OrderTools service. The UserPaymentTypeAuthorizer
is an interface whose contract authorizes a user payment type.
The service method takes a user Profile as input. As a convenience to different
applications the authorized payment types are exposed as two output parameters.
One parameter specifies the List of all payment types authorized for the user.
The other parameter specifies a Map of all tested payment types, to the boolean
results that indicate user authorization or not for each type.
In the event that a UserPaymentTypeAuthorizer fails to determine authorization,
there is a global authorization property used to specify a default authorization for
any problematic payment type.
Field Summary | |
---|---|
static java.lang.String |
AUTHORIZED_PAYMENT_TYPES
|
static java.lang.String |
CLASS_VERSION
|
static ParameterName |
OUTPUT
|
static java.lang.String |
POTENTIAL_PAYMENT_TYPES
|
static ParameterName |
PROFILE
|
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 | |
---|---|
AuthorizedPaymentTypesDroplet()
Creates a new AuthorizedPaymentTypesDroplet instance. |
Method Summary | |
---|---|
java.util.List |
getAuthorizedPaymentTypes()
Return the AuthorizedPaymentTypes property. |
ServiceMap |
getPaymentTypeAuthorizers()
Return the PaymentTypeAuthorizers property. |
java.util.Map |
getPotentialPaymentTypes()
Return the PotentialPaymentTypes property. |
boolean |
isGlobalAuthorization()
Return the GlobalAuthorization property. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
DynamoServlet service method. |
void |
setAuthorizedPaymentTypes(java.util.List pAuthorizedPaymentTypes)
Set the AuthorizedPaymentTypes property. |
void |
setGlobalAuthorization(boolean pGlobalAuthorization)
Set the GlobalAuthorization property. |
void |
setPaymentTypeAuthorizers(ServiceMap pPaymentTypeAuthorizers)
Set the PaymentTypeAuthorizers property. |
void |
setPotentialPaymentTypes(java.util.Map pPotentialPaymentTypes)
Set the PotentialPaymentTypes property. |
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.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 |
---|
public static final java.lang.String CLASS_VERSION
public static final java.lang.String AUTHORIZED_PAYMENT_TYPES
public static final java.lang.String POTENTIAL_PAYMENT_TYPES
public static final ParameterName PROFILE
public static final ParameterName OUTPUT
Constructor Detail |
---|
public AuthorizedPaymentTypesDroplet()
AuthorizedPaymentTypesDroplet
instance.
Method Detail |
---|
public void setPaymentTypeAuthorizers(ServiceMap pPaymentTypeAuthorizers)
pPaymentTypeAuthorizers
- a ServiceMap
valuepublic ServiceMap getPaymentTypeAuthorizers()
ServiceMap
valuepublic void setGlobalAuthorization(boolean pGlobalAuthorization)
pGlobalAuthorization
- a boolean
valuepublic boolean isGlobalAuthorization()
boolean
valuepublic void setAuthorizedPaymentTypes(java.util.List pAuthorizedPaymentTypes)
pAuthorizedPaymentTypes
- a List
valuepublic java.util.List getAuthorizedPaymentTypes()
List
valuepublic void setPotentialPaymentTypes(java.util.Map pPotentialPaymentTypes)
pPotentialPaymentTypes
- a Map
valuepublic java.util.Map getPotentialPaymentTypes()
Map
valuepublic void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- a DynamoHttpServletRequest
valuepResponse
- a DynamoHttpServletResponse
value
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |