Package org.apache.ofbiz.webpos.session
Class WebPosSession
- java.lang.Object
-
- org.apache.ofbiz.webpos.session.WebPosSession
-
public class WebPosSession extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WebPosSession.UserLoginFailure
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description WebPosSession(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> attributes, GenericValue userLogin, java.util.Locale locale, java.lang.String productStoreId, java.lang.String facilityId, java.lang.String currencyUomId, Delegator delegator, LocalDispatcher dispatcher, ShoppingCart cart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericValue
checkLogin(java.lang.String username, java.lang.String password, LocalDispatcher dispatcher)
java.lang.Object
getAttribute(java.lang.String name)
ShoppingCart
getCart()
java.lang.String
getCurrencyUomId()
WebPosTransaction
getCurrentTransaction()
Delegator
getDelegator()
LocalDispatcher
getDispatcher()
java.lang.String
getFacilityId()
java.lang.String
getId()
java.util.Locale
getLocale()
java.lang.String
getProductStoreId()
GenericValue
getUserLogin()
java.lang.String
getUserLoginId()
java.lang.String
getUserPartyId()
boolean
hasRole(GenericValue userLogin, java.lang.String roleTypeId)
boolean
isManagerLoggedIn()
void
login(java.lang.String username, java.lang.String password, LocalDispatcher dispatcher)
void
logout()
void
setAttribute(java.lang.String name, java.lang.Object value)
void
setCurrencyUomId(java.lang.String currencyUomId)
void
setCurrentTransaction(WebPosTransaction webPosTransaction)
void
setFacilityId(java.lang.String facilityId)
void
setLocale(java.util.Locale locale)
void
setProductStoreId(java.lang.String productStoreId)
void
setUserLogin(GenericValue userLogin)
-
-
-
Constructor Detail
-
WebPosSession
public WebPosSession(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> attributes, GenericValue userLogin, java.util.Locale locale, java.lang.String productStoreId, java.lang.String facilityId, java.lang.String currencyUomId, Delegator delegator, LocalDispatcher dispatcher, ShoppingCart cart)
-
-
Method Detail
-
getUserLogin
public GenericValue getUserLogin()
-
setUserLogin
public void setUserLogin(GenericValue userLogin)
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
-
getId
public java.lang.String getId()
-
getUserLoginId
public java.lang.String getUserLoginId()
-
getUserPartyId
public java.lang.String getUserPartyId()
-
getLocale
public java.util.Locale getLocale()
-
setLocale
public void setLocale(java.util.Locale locale)
-
getProductStoreId
public java.lang.String getProductStoreId()
-
setProductStoreId
public void setProductStoreId(java.lang.String productStoreId)
-
getFacilityId
public java.lang.String getFacilityId()
-
setFacilityId
public void setFacilityId(java.lang.String facilityId)
-
getCurrencyUomId
public java.lang.String getCurrencyUomId()
-
setCurrencyUomId
public void setCurrencyUomId(java.lang.String currencyUomId)
-
getDelegator
public Delegator getDelegator()
-
getDispatcher
public LocalDispatcher getDispatcher()
-
getCart
public ShoppingCart getCart()
-
logout
public void logout()
-
login
public void login(java.lang.String username, java.lang.String password, LocalDispatcher dispatcher) throws WebPosSession.UserLoginFailure
- Throws:
WebPosSession.UserLoginFailure
-
checkLogin
public GenericValue checkLogin(java.lang.String username, java.lang.String password, LocalDispatcher dispatcher) throws WebPosSession.UserLoginFailure
- Throws:
WebPosSession.UserLoginFailure
-
hasRole
public boolean hasRole(GenericValue userLogin, java.lang.String roleTypeId)
-
isManagerLoggedIn
public boolean isManagerLoggedIn()
-
getCurrentTransaction
public WebPosTransaction getCurrentTransaction()
-
setCurrentTransaction
public void setCurrentTransaction(WebPosTransaction webPosTransaction)
-
-