Class WebUser

java.lang.Object
org.compiere.util.WebUser

@Deprecated public class WebUser extends Object
Deprecated.
Web User Info. Assumes that Email is a direct match. UPDATE AD_User SET EMail=TRIM(EMail) WHERE Email<>TRIM(EMail)
Version:
$Id$
Author:
Jorg Janke
  • Field Details

  • Method Details

    • get

      public static WebUser get(javax.servlet.http.HttpServletRequest request)
      Deprecated.
      Get from request
      Parameters:
      request - request
      Returns:
      web user if exists
    • get

      public static WebUser get(Properties ctx, String email)
      Deprecated.
      Get user unconditional from cache
      Parameters:
      ctx - context
      email - email
      Returns:
      web user
    • get

      public static WebUser get(Properties ctx, String email, String password, boolean useCache)
      Deprecated.
      Get user
      Parameters:
      ctx - context
      email - email
      password - optional password
      useCache - use cache
      Returns:
      web user
    • get

      public static WebUser get(Properties ctx, int AD_User_ID)
      Deprecated.
      Get user unconditional (from cache)
      Parameters:
      ctx - context
      AD_User_ID - BP Contact
      Returns:
      web user
    • isValid

      public boolean isValid()
      Deprecated.
      Return Valid.
      Returns:
      return true if found
    • isEMailValid

      public boolean isEMailValid()
      Deprecated.
      Return Email Validation.
      Returns:
      return true if email is valid
    • isEMailVerified

      public boolean isEMailVerified()
      Deprecated.
      Return Email Verification (reply).
      Returns:
      return true if reply received
    • toString

      public String toString()
      Deprecated.
      Info
      Overrides:
      toString in class Object
      Returns:
      info
    • save

      public boolean save()
      Deprecated.
      Save BPartner Objects
      Returns:
      true if saved
    • setSaveErrorMessage

      public void setSaveErrorMessage(String msg)
      Deprecated.
      Set Save Error Message
      Parameters:
      msg - message
    • getSaveErrorMessage

      public String getSaveErrorMessage()
      Deprecated.
      Get Save Error Message
      Returns:
      message
    • getEmail

      public String getEmail()
      Deprecated.
      Get EMail address. used as jsp parameter
      Returns:
      email address of contact
    • setEmail

      public void setEmail(String email)
      Deprecated.
    • getName

      public String getName()
      Deprecated.
    • setName

      public void setName(String name)
      Deprecated.
    • setValue

      public void setValue(String value)
      Deprecated.
    • getTitle

      public String getTitle()
      Deprecated.
    • setTitle

      public void setTitle(String title)
      Deprecated.
    • getPassword

      public String getPassword()
      Deprecated.
      Get Password
      Returns:
      password
    • setPassword

      public void setPassword()
      Deprecated.
      Check and Save Password
    • setPassword

      public void setPassword(String password)
      Deprecated.
      Set Password
      Parameters:
      password - new password
    • isPasswordOK

      public boolean isPasswordOK()
      Deprecated.
      Is Password OK
      Returns:
      true if OK
    • getPasswordMessage

      public String getPasswordMessage()
      Deprecated.
      Set Password Message
      Returns:
      error message or null
    • setPasswordMessage

      public void setPasswordMessage(String passwordMessage)
      Deprecated.
      Set Password Message
      Parameters:
      passwordMessage - message
    • login

      public boolean login(String password)
      Deprecated.
      Log in with password
      Parameters:
      password - password
      Returns:
      true if the user is logged in
    • logout

      public void logout()
      Deprecated.
      Log in with oassword
    • isLoggedIn

      public boolean isLoggedIn()
      Deprecated.
      Is User Logged in
      Returns:
      is the user logged in
    • getPhone

      public String getPhone()
      Deprecated.
    • setPhone

      public void setPhone(String phone)
      Deprecated.
    • getPhone2

      public String getPhone2()
      Deprecated.
    • setPhone2

      public void setPhone2(String phone2)
      Deprecated.
    • getFax

      public String getFax()
      Deprecated.
    • setFax

      public void setFax(String fax)
      Deprecated.
    • getBirthday

      public Timestamp getBirthday()
      Deprecated.
    • setBirthday

      public void setBirthday(Timestamp birthday)
      Deprecated.
    • getTaxID

      public String getTaxID()
      Deprecated.
    • setTaxID

      public void setTaxID(String taxID)
      Deprecated.
    • getAD_Client_ID

      public int getAD_Client_ID()
      Deprecated.
    • getAD_User_ID

      public int getAD_User_ID()
      Deprecated.
    • getContactID

      public int getContactID()
      Deprecated.
    • getCompany

      public String getCompany()
      Deprecated.
      Get Company Name
      Returns:
      company name
    • setCompany

      public void setCompany(String company)
      Deprecated.
    • getC_BPartner_ID

      public int getC_BPartner_ID()
      Deprecated.
    • getBpartnerID

      public int getBpartnerID()
      Deprecated.
    • getM_PriceList_ID

      public int getM_PriceList_ID()
      Deprecated.
    • getC_BPartner_Location_ID

      public int getC_BPartner_Location_ID()
      Deprecated.
      Get BP Location ID
      Returns:
      BP Loaction
    • getAddress

      public String getAddress()
      Deprecated.
      Get Location
      Returns:
      location address
    • setAddress

      public void setAddress(String address)
      Deprecated.
    • getAddress2

      public String getAddress2()
      Deprecated.
    • setAddress2

      public void setAddress2(String address2)
      Deprecated.
    • getCity

      public String getCity()
      Deprecated.
    • setCity

      public void setCity(String city)
      Deprecated.
    • getPostal

      public String getPostal()
      Deprecated.
    • setPostal

      public void setPostal(String postal)
      Deprecated.
    • getRegionName

      public String getRegionName()
      Deprecated.
      Get (additional) Region name
      Returns:
      location region name
    • setRegionName

      public void setRegionName(String region)
      Deprecated.
    • getC_Region_ID

      public int getC_Region_ID()
      Deprecated.
    • getRegionID

      public String getRegionID()
      Deprecated.
    • setC_Region_ID

      public void setC_Region_ID(int C_Region_ID)
      Deprecated.
    • setC_Region_ID

      public void setC_Region_ID(String C_Region_ID)
      Deprecated.
    • getCountryName

      public String getCountryName()
      Deprecated.
    • setCountryName

      public void setCountryName(String country)
      Deprecated.
    • getC_Country_ID

      public int getC_Country_ID()
      Deprecated.
    • getCountryID

      public String getCountryID()
      Deprecated.
    • setC_Country_ID

      public void setC_Country_ID(int C_Country_ID)
      Deprecated.
    • setC_Country_ID

      public void setC_Country_ID(String C_Country_ID)
      Deprecated.
    • setC_BP_Group_ID

      public void setC_BP_Group_ID(int C_BP_Group_ID)
      Deprecated.
    • setC_BP_Group_ID

      public void setC_BP_Group_ID(String C_BP_Group_ID)
      Deprecated.
    • isEmployee

      public boolean isEmployee()
      Deprecated.
    • isSalesRep

      public boolean isSalesRep()
      Deprecated.
    • isCustomer

      public boolean isCustomer()
      Deprecated.
    • setIsCustomer

      public void setIsCustomer(boolean isCustomer)
      Deprecated.
    • isVendor

      public boolean isVendor()
      Deprecated.
    • getSalesRep_ID

      public int getSalesRep_ID()
      Deprecated.
    • hasBPAccess

      public boolean hasBPAccess(String BPAccessType, Object[] params)
      Deprecated.
    • isCreditStopHold

      public boolean isCreditStopHold()
      Deprecated.
      Credit Status is Stop or Hold. Used in Asset download
      Returns:
      true if Stop/Hold
    • isCreditCritical

      public boolean isCreditCritical()
      Deprecated.
      Credit Status is Critical. Used in Web UI
      Returns:
      true if Stop/Hold/Watch
    • getSOCreditStatus

      public String getSOCreditStatus()
      Deprecated.
      Credit Status Clear Text. Used in Web UI
      Returns:
      Clear Text Credit Status
    • getBankAccount

      public MBPBankAccount getBankAccount()
      Deprecated.
      Get BP Bank Account (or create it)
      Returns:
      Bank Account
    • getBankAccount

      public MBPBankAccount getBankAccount(boolean requery)
      Deprecated.
      Get BP Bank Account (or create it)
      Parameters:
      requery - Requery data
      Returns:
      Bank Account
    • getEMailVerifyCode

      public String getEMailVerifyCode()
      Deprecated.
      Get EMail Verification Code
      Returns:
      verification code
    • setEMailVerifyCode

      public void setEMailVerifyCode(String code, String info)
      Deprecated.
      Check and Set EMail Validation Code.
      Parameters:
      code - code
      info - info