Class WebPosSession

java.lang.Object
org.apache.ofbiz.webpos.session.WebPosSession

public class WebPosSession extends Object
  • Constructor Details

  • Method Details

    • getUserLogin

      public GenericValue getUserLogin()
      Gets user login.
      Returns:
      the user login
    • setUserLogin

      public void setUserLogin(GenericValue userLogin)
      Sets user login.
      Parameters:
      userLogin - the user login
    • setAttribute

      public void setAttribute(String name, Object value)
      Sets attribute.
      Parameters:
      name - the name
      value - the value
    • getAttribute

      public Object getAttribute(String name)
      Gets attribute.
      Parameters:
      name - the name
      Returns:
      the attribute
    • getId

      public String getId()
      Gets id.
      Returns:
      the id
    • getUserLoginId

      public String getUserLoginId()
      Gets user login id.
      Returns:
      the user login id
    • getUserPartyId

      public String getUserPartyId()
      Gets user party id.
      Returns:
      the user party id
    • getLocale

      public Locale getLocale()
      Gets locale.
      Returns:
      the locale
    • setLocale

      public void setLocale(Locale locale)
      Sets locale.
      Parameters:
      locale - the locale
    • getProductStoreId

      public String getProductStoreId()
      Gets product store id.
      Returns:
      the product store id
    • setProductStoreId

      public void setProductStoreId(String productStoreId)
      Sets product store id.
      Parameters:
      productStoreId - the product store id
    • getFacilityId

      public String getFacilityId()
      Gets facility id.
      Returns:
      the facility id
    • setFacilityId

      public void setFacilityId(String facilityId)
      Sets facility id.
      Parameters:
      facilityId - the facility id
    • getCurrencyUomId

      public String getCurrencyUomId()
      Gets currency uom id.
      Returns:
      the currency uom id
    • setCurrencyUomId

      public void setCurrencyUomId(String currencyUomId)
      Sets currency uom id.
      Parameters:
      currencyUomId - the currency uom id
    • getDelegator

      public Delegator getDelegator()
      Gets delegator.
      Returns:
      the delegator
    • getDispatcher

      public LocalDispatcher getDispatcher()
      Gets dispatcher.
      Returns:
      the dispatcher
    • getCart

      public ShoppingCart getCart()
      Gets cart.
      Returns:
      the cart
    • logout

      public void logout()
      Logout.
    • login

      public void login(String username, String password, LocalDispatcher dispatcher) throws WebPosSession.UserLoginFailure
      Login.
      Parameters:
      username - the username
      password - the password
      dispatcher - the dispatcher
      Throws:
      WebPosSession.UserLoginFailure - the user login failure
    • checkLogin

      public GenericValue checkLogin(String username, String password, LocalDispatcher dispatcher) throws WebPosSession.UserLoginFailure
      Check login generic value.
      Parameters:
      username - the username
      password - the password
      dispatcher - the dispatcher
      Returns:
      the generic value
      Throws:
      WebPosSession.UserLoginFailure - the user login failure
    • hasRole

      public boolean hasRole(GenericValue userLogin, String roleTypeId)
      Has role boolean.
      Parameters:
      userLogin - the user login
      roleTypeId - the role type id
      Returns:
      the boolean
    • isManagerLoggedIn

      public boolean isManagerLoggedIn()
      Is manager logged in boolean.
      Returns:
      the boolean
    • getCurrentTransaction

      public WebPosTransaction getCurrentTransaction()
      Gets current transaction.
      Returns:
      the current transaction
    • setCurrentTransaction

      public void setCurrentTransaction(WebPosTransaction webPosTransaction)
      Sets current transaction.
      Parameters:
      webPosTransaction - the web pos transaction