com.beasys.commerce.webflow
Class CommerceInputProcessor
java.lang.Object
|
+--com.beasys.commerce.webflow.CommerceInputProcessor
- All Implemented Interfaces:
- InputProcessor, SchemaManagerConstants, UserManagementConstants
- Direct Known Subclasses:
- CatalogIP, CustomerProfileIP, DeleteCreditCardIP, DeleteProductItemFromShoppingCartIP, DeleteShippingAddressIP, EmptyShoppingCartIP, InitShippingMethodListIP, InitShoppingCartIP, LoginCustomerIP, LogoutCustomerIP, PaymentIP, SelectOrderForViewingIP, TaxIP, UpdateAccountInfoIP, UpdateAddressKeyIP, UpdateBasicInfoIP, UpdateDemographicInfoIP, UpdatePaymentInfoIP, UpdateShippingAddressIP, UpdateShippingInfoIP, UpdateShoppingCartQuantitiesIP, UpdateSkuIP, ValidateAddressIP, ValidateShippingInfoIP
- public abstract class CommerceInputProcessor
- extends java.lang.Object
- implements UserManagementConstants, InputProcessor
A CommerceInputProcessor serves as the base class for all the InputProcessors
in WLCS. It implements some common utility methods.
- See Also:
InputProcessor,
UserManagementConstants,
PipelineSession,
LocalProfileBean,
InvalidSessionStateException
|
Field Summary |
protected boolean |
debug
|
| Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants |
ANONYMOUS_PROFILE, CACHED_PROFILE, DEFAULT_SCOPE, DEFAULT_SUCCESSOR, DEFAULT_SUCCESSOR_HOME, DEFAULT_SUCCESSOR_JNDI, DEFAULT_SUCCESSOR_PK, DEFAULT_USER, DEFAULT_USER_HOME, DEFAULT_USER_JNDI, DEFAULT_USER_PK, GROUP, GROUP_ENTITY_HOME, PROFILE_MGR, PROFILE_SUCCESSOR, PROFILE_USER, REALM_CONFIG, RESERVED_SCOPE, USER, USER_ENTITY_HOME, USER_MGR |
|
Method Summary |
LocalProfileBean |
getCachedProfileBean(javax.servlet.http.HttpServletRequest req)
Gets a LocalProfileBean for the current customer. |
java.lang.Object |
getCustomerProperty(javax.servlet.http.HttpServletRequest req,
java.lang.String property)
Gets the property for the current customer and returns it as an object. |
java.lang.String |
getCustomerPropertyAsString(javax.servlet.http.HttpServletRequest req,
java.lang.String property)
Gets the property for the current customer and returns it as a string. |
PipelineSession |
getPipelineSession(javax.servlet.http.HttpServletRequest request)
Returns the PipelineSession from the current
HttpSession. |
PipelineSession |
getPipelineSession(javax.servlet.http.HttpServletRequest request,
boolean checkValidity)
Returns the PipelineSession from the current
HttpSession. |
protected void |
log(int level,
java.lang.String message)
A utility method to log messages |
protected void |
log(int level,
java.lang.String message,
java.lang.Throwable exception)
A utility method to log messages |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected boolean debug
CommerceInputProcessor
public CommerceInputProcessor()
getPipelineSession
public PipelineSession getPipelineSession(javax.servlet.http.HttpServletRequest request)
- Returns the
PipelineSession from the current
HttpSession. If the HttpSession does not contain
PipelineSession, it will create a new PipelineSession, associate
it with the current HttpSession and then return the
PipelineSession
- Parameters:
req - HttpServletRequest.- Returns:
- PipelineSession.
getPipelineSession
public PipelineSession getPipelineSession(javax.servlet.http.HttpServletRequest request,
boolean checkValidity)
throws InvalidSessionStateException
- Returns the
PipelineSession from the current
HttpSession. If the HttpSession is new and the checkValidity
is true then this method throws a InvalidSessionStateException.
If the HttpSession is not new, then this method
returns the PipelineSession from the current
HttpSession. If the checkValidity is false and
HttpSession is new, then this method creates a new
PipelineSession, associates it with the current
HttpSession and returns the newly created
PipelineSession.
- Parameters:
request - HttpServletRequestcheckValidity - boolean.- Returns:
- PipelineSession.
- Throws:
InvalidSessionStateException - If the HttpSession was invalidated.
getCachedProfileBean
public LocalProfileBean getCachedProfileBean(javax.servlet.http.HttpServletRequest req)
- Gets a
LocalProfileBean for the current customer.
- Parameters:
req - HttpServletRequest.- Returns:
- LocalProfileBean.
getCustomerPropertyAsString
public java.lang.String getCustomerPropertyAsString(javax.servlet.http.HttpServletRequest req,
java.lang.String property)
- Gets the property for the current customer and returns it as a string.
- Parameters:
req - HttpServletRequest.property - the property to return.- Returns:
- String the property.
getCustomerProperty
public java.lang.Object getCustomerProperty(javax.servlet.http.HttpServletRequest req,
java.lang.String property)
- Gets the property for the current customer and returns it as an object.
- Parameters:
req - HttpServletRequest.property - the property to return.- Returns:
- Object the property.
log
protected void log(int level,
java.lang.String message,
java.lang.Throwable exception)
- A utility method to log messages
- Parameters:
aLevel - int. Possible levels are:
Log.LOG_DEBUG
Log.LOG_INFO
Log.LOG_WARNING
Log.LOG_ERROR
Log.LOG_FATAL
Log.LOG_SECURITY
message - String. The message to be logged.exception - Throwable. The exception that needs to be logged.
log
protected void log(int level,
java.lang.String message)
- A utility method to log messages
- Parameters:
aLevel - int. Possible levels are:
Log.LOG_DEBUG
Log.LOG_INFO
Log.LOG_WARNING
Log.LOG_ERROR
Log.LOG_FATAL
Log.LOG_SECURITY
message - String. The message to be logged.
Copyright © 2001 BEA Systems, Inc. All Rights Reserved