Class WebPosSession


  • public class WebPosSession
    extends java.lang.Object
    • 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()
        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​(java.lang.String name,
                                 java.lang.Object value)
        Sets attribute.
        Parameters:
        name - the name
        value - the value
      • getAttribute

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

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

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

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

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

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

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

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

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

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

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

        public void setCurrencyUomId​(java.lang.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.
      • hasRole

        public boolean hasRole​(GenericValue userLogin,
                               java.lang.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