Class WebUser

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

@Deprecated(since="13", forRemoval=true) public class WebUser extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Attribute Name - also in JSPs
  • Method Summary

    Modifier and Type
    Method
    Description
    static WebUser
    get(Properties ctx, int AD_User_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get user unconditional (from cache)
    static WebUser
    get(Properties ctx, String email)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get user unconditional from cache
    static WebUser
    get(Properties ctx, String email, String password, boolean useCache)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get user
    static WebUser
    get(javax.servlet.http.HttpServletRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get from request
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get Location
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get BP Bank Account (or create it)
    getBankAccount(boolean requery)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get BP Bank Account (or create it)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get BP Location ID
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get Company Name
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get EMail address.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get EMail Verification Code
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get Password
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set Password Message
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get (additional) Region name
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get Save Error Message
    Deprecated, for removal: This API element is subject to removal in a future version.
    Credit Status Clear Text.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    hasBPAccess(String BPAccessType, Object[] params)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Credit Status is Critical.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Credit Status is Stop or Hold.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return Email Validation.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return Email Verification (reply).
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Is User Logged in
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Is Password OK
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return Valid.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    login(String password)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log in with password
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log in with oassword
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Save BPartner Objects
    void
    setAddress(String address)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setAddress2(String address2)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setC_BP_Group_ID(int C_BP_Group_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setC_BP_Group_ID(String C_BP_Group_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setC_Country_ID(int C_Country_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setC_Country_ID(String C_Country_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setC_Region_ID(int C_Region_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setC_Region_ID(String C_Region_ID)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setCompany(String company)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Check and Set EMail Validation Code.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setIsCustomer(boolean isCustomer)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Check and Save Password
    void
    setPassword(String password)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set Password
    void
    setPasswordMessage(String passwordMessage)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set Password Message
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPhone2(String phone2)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPostal(String postal)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set Save Error Message
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Info

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • NAME

      public static final String NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Attribute Name - also in JSPs
      See Also:
  • Method Details

    • get

      public static WebUser get(javax.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get from request
      Parameters:
      request - request
      Returns:
      web user if exists
    • get

      public static WebUser get(Properties ctx, String email)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      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, for removal: This API element is subject to removal in a future version.
      Get user unconditional (from cache)
      Parameters:
      ctx - context
      AD_User_ID - BP Contact
      Returns:
      web user
    • isValid

      public boolean isValid()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return Valid.
      Returns:
      return true if found
    • isEMailValid

      public boolean isEMailValid()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return Email Validation.
      Returns:
      return true if email is valid
    • isEMailVerified

      public boolean isEMailVerified()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return Email Verification (reply).
      Returns:
      return true if reply received
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Info
      Overrides:
      toString in class Object
      Returns:
      info
    • save

      public boolean save()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Save BPartner Objects
      Returns:
      true if saved
    • setSaveErrorMessage

      public void setSaveErrorMessage(String msg)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set Save Error Message
      Parameters:
      msg - message
    • getSaveErrorMessage

      public String getSaveErrorMessage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get Save Error Message
      Returns:
      message
    • getEmail

      public String getEmail()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get EMail address. used as jsp parameter
      Returns:
      email address of contact
    • setEmail

      public void setEmail(String email)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setName

      public void setName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setValue

      public void setValue(String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTitle

      public String getTitle()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTitle

      public void setTitle(String title)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPassword

      public String getPassword()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get Password
      Returns:
      password
    • setPassword

      public void setPassword()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Check and Save Password
    • setPassword

      public void setPassword(String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set Password
      Parameters:
      password - new password
    • isPasswordOK

      public boolean isPasswordOK()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Is Password OK
      Returns:
      true if OK
    • getPasswordMessage

      public String getPasswordMessage()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set Password Message
      Returns:
      error message or null
    • setPasswordMessage

      public void setPasswordMessage(String passwordMessage)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set Password Message
      Parameters:
      passwordMessage - message
    • login

      public boolean login(String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log in with password
      Parameters:
      password - password
      Returns:
      true if the user is logged in
    • logout

      public void logout()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log in with oassword
    • isLoggedIn

      public boolean isLoggedIn()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Is User Logged in
      Returns:
      is the user logged in
    • getPhone

      public String getPhone()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPhone

      public void setPhone(String phone)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPhone2

      public String getPhone2()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPhone2

      public void setPhone2(String phone2)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getFax

      public String getFax()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFax

      public void setFax(String fax)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBirthday

      public Timestamp getBirthday()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setBirthday

      public void setBirthday(Timestamp birthday)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getTaxID

      public String getTaxID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTaxID

      public void setTaxID(String taxID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAD_Client_ID

      public int getAD_Client_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAD_User_ID

      public int getAD_User_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getContactID

      public int getContactID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCompany

      public String getCompany()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get Company Name
      Returns:
      company name
    • setCompany

      public void setCompany(String company)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getC_BPartner_ID

      public int getC_BPartner_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getBpartnerID

      public int getBpartnerID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getM_PriceList_ID

      public int getM_PriceList_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getC_BPartner_Location_ID

      public int getC_BPartner_Location_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get BP Location ID
      Returns:
      BP Loaction
    • getAddress

      public String getAddress()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get Location
      Returns:
      location address
    • setAddress

      public void setAddress(String address)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getAddress2

      public String getAddress2()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setAddress2

      public void setAddress2(String address2)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCity

      public String getCity()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCity

      public void setCity(String city)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPostal

      public String getPostal()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPostal

      public void setPostal(String postal)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRegionName

      public String getRegionName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get (additional) Region name
      Returns:
      location region name
    • setRegionName

      public void setRegionName(String region)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getC_Region_ID

      public int getC_Region_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRegionID

      public String getRegionID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setC_Region_ID

      public void setC_Region_ID(int C_Region_ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setC_Region_ID

      public void setC_Region_ID(String C_Region_ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCountryName

      public String getCountryName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCountryName

      public void setCountryName(String country)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getC_Country_ID

      public int getC_Country_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCountryID

      public String getCountryID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setC_Country_ID

      public void setC_Country_ID(int C_Country_ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setC_Country_ID

      public void setC_Country_ID(String C_Country_ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setC_BP_Group_ID

      public void setC_BP_Group_ID(int C_BP_Group_ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setC_BP_Group_ID

      public void setC_BP_Group_ID(String C_BP_Group_ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isEmployee

      public boolean isEmployee()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isSalesRep

      public boolean isSalesRep()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isCustomer

      public boolean isCustomer()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setIsCustomer

      public void setIsCustomer(boolean isCustomer)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isVendor

      public boolean isVendor()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSalesRep_ID

      public int getSalesRep_ID()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • hasBPAccess

      public boolean hasBPAccess(String BPAccessType, Object[] params)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isCreditStopHold

      public boolean isCreditStopHold()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Credit Status is Stop or Hold. Used in Asset download
      Returns:
      true if Stop/Hold
    • isCreditCritical

      public boolean isCreditCritical()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Credit Status is Critical. Used in Web UI
      Returns:
      true if Stop/Hold/Watch
    • getSOCreditStatus

      public String getSOCreditStatus()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Credit Status Clear Text. Used in Web UI
      Returns:
      Clear Text Credit Status
    • getBankAccount

      public MBPBankAccount getBankAccount()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get BP Bank Account (or create it)
      Returns:
      Bank Account
    • getBankAccount

      public MBPBankAccount getBankAccount(boolean requery)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get BP Bank Account (or create it)
      Parameters:
      requery - Requery data
      Returns:
      Bank Account
    • getEMailVerifyCode

      public String getEMailVerifyCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get EMail Verification Code
      Returns:
      verification code
    • setEMailVerifyCode

      public void setEMailVerifyCode(String code, String info)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Check and Set EMail Validation Code.
      Parameters:
      code - code
      info - info