public interface FlashServletContext extends BaseServletContext
Modifier and Type | Method and Description |
---|---|
UserCatalogVerifier |
getCatalogVerifier()
Returns the current session's user catalog verifier.
|
java.sql.Connection |
getDbConnection()
Returns the JDBC connection from the current request's JDBC connection
information object.
|
JDBCConnectionInfo |
getDbConnectionInfo()
Returns the current request's JDBC connection information object.
|
<DBOBJCTLR extends JDBCObjectController<? extends JDBCObject<?>>> |
getDbController(java.lang.Class<DBOBJCTLR> ctlrcls)
Returns the JDBC object controller for the given controller class.
|
<DBOBJ extends JDBCObject<?>> |
getDbObject(java.lang.Class<DBOBJ> objcls)
Returns the JDBC object for the given object class.
|
UserFavoritesHandler |
getFavoritesHandler()
Returns the current session's user favorites handler.
|
<ERPTYPE extends ERPInterface> |
getInterface(java.lang.Class<ERPTYPE> type)
Returns the ERP interface for the given interface type.
|
User |
getLogonUser()
Returns the current logon user.
|
FlashServletRequest |
getServletRequest()
Returns the current request's servlet request object.
|
FlashServlet.Stack |
getServletStack()
Returns the current session's servlet request stack.
|
Cart |
getShoppingCart()
Returns the current shopping cart.
|
SecurityProfile |
getShoppingProfile()
Returns the security profile that governs how shopping & other functions
are processed.
|
User |
getShoppingUser()
Returns the current shopping user.
|
SiteActivity |
getSiteActivity()
Returns the current session's site activity.
|
UnitMeasureHandler |
getUomHandler()
Returns the current session's unit of measure handler.
|
boolean |
isCustAdmin()
Answers if the logon user is a customer administrator.
|
boolean |
isDefaultUser()
Answers if the logon user is the default user (no one is logged on).
|
boolean |
isLoggedOn()
Answers if a successful logon has occurred during the current session.
|
boolean |
isPermitActive()
Answers if permit processing is in effect (active) based on the value
of
Flash.PERMIT_ENABLED and whether any shopping is currently
taking place. |
boolean |
isRetail()
Answers if the site is for a retail store.
|
boolean |
isSfiSelect()
Answers if the logon user is a sales rep user and there is no account
currently selected.
|
boolean |
isSfiShopping()
Answers if the logon user is a sales rep user and there is an account
currently selected.
|
boolean |
isShopping()
Answers if the logon user is a basic shopping user.
|
boolean |
isSiteAdmin()
Answers if the logon user is a site administrator.
|
boolean |
isWholesale()
Answers if the site is for a wholesale store.
|
void |
setLogonUser(User user)
Sets the current logon user.
|
delAttr, getAttr, getAttrBigDecimal, getAttrBoolean, getAttrDouble, getAttrInteger, getAttrLong, getAttrString, getParam, getParamBigDecimal, getParamDate, getParamDouble, getParamInteger, getParamLong, getParams, getParamString, getRequest, getResponse, getSession, isPost, setAttr
UserCatalogVerifier getCatalogVerifier()
java.sql.Connection getDbConnection()
JDBCConnectionInfo getDbConnectionInfo()
<DBOBJCTLR extends JDBCObjectController<? extends JDBCObject<?>>> DBOBJCTLR getDbController(java.lang.Class<DBOBJCTLR> ctlrcls)
ctlrcls
- (Class) The class for the desired controller.<DBOBJ extends JDBCObject<?>> DBOBJ getDbObject(java.lang.Class<DBOBJ> objcls)
objcls
- (Class) The class for the desired object.UserFavoritesHandler getFavoritesHandler()
<ERPTYPE extends ERPInterface> ERPTYPE getInterface(java.lang.Class<ERPTYPE> type)
type
- (Class) The type for the desired ERP interface. Must be
one of the constants defined in ERPFactory
.null
if unable to
create or obtain the requested ERP interface or if no interface
is defined for the given type.User getLogonUser()
void setLogonUser(User user)
user
- (User) The logon user.FlashServletRequest getServletRequest()
FlashServlet.Stack getServletStack()
Cart getShoppingCart()
SecurityProfile getShoppingProfile()
isShopping
) this will either be the
default user's security profile or the logon user's security profile.isSfiShopping
) this will be the
rep's security profile.isSfiSelect
) this will be
the rep's security profile.isSiteAdmin
) this will be the admin user's
security profile.null
.User getShoppingUser()
isShopping
) returns the current
logon user (same as getLogonUser
).isSfiShopping
) returns the rep's
selected user.isSfiSelect
) returns
null
.isSiteAdmin
) returns null
.null
.SiteActivity getSiteActivity()
UnitMeasureHandler getUomHandler()
boolean isCustAdmin()
true
if the logon user is a customer
administrator, otherwise false
.boolean isDefaultUser()
true
if the logon user is the default
user, otherwise false
.boolean isLoggedOn()
true
if a successful logon has occurred,
otherwise false
.boolean isPermitActive()
Flash.PERMIT_ENABLED
and whether any shopping is currently
taking place.true
if permit processing is active,
otherwise false
.boolean isRetail()
true
if the site is for a retail store,
otherwise false
.boolean isSfiSelect()
true
if the logon user is a sales rep
user with no selected account, otherwise false
.boolean isSfiShopping()
true
if the logon user is a sales rep
user with a selected account, otherwise false
.boolean isShopping()
true
if the logon user is a basic shopping
user, otherwise false
.boolean isSiteAdmin()
true
if the logon user is a site
administrator, otherwise false
.boolean isWholesale()
true
if the site is for a wholesale store,
otherwise false
.