Package org.compiere.util
Class WebUser
java.lang.Object
org.compiere.util.WebUser
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic WebUserget(Properties ctx, int AD_User_ID) Deprecated.Get user unconditional (from cache)static WebUserget(Properties ctx, String email) Deprecated.Get user unconditional from cachestatic WebUserget(Properties ctx, String email, String password, boolean useCache) Deprecated.Get userstatic WebUserget(javax.servlet.http.HttpServletRequest request) Deprecated.Get from requestintDeprecated.intDeprecated.Deprecated.Get LocationDeprecated.Deprecated.Get BP Bank Account (or create it)getBankAccount(boolean requery) Deprecated.Get BP Bank Account (or create it)Deprecated.intDeprecated.intDeprecated.intDeprecated.Get BP Location IDintDeprecated.intDeprecated.getCity()Deprecated.Deprecated.Get Company NameintDeprecated.Deprecated.Deprecated.getEmail()Deprecated.Get EMail address.Deprecated.Get EMail Verification CodegetFax()Deprecated.intDeprecated.getName()Deprecated.Deprecated.Get PasswordDeprecated.Set Password MessagegetPhone()Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Get (additional) Region nameintDeprecated.Deprecated.Get Save Error MessageDeprecated.Credit Status Clear Text.getTaxID()Deprecated.getTitle()Deprecated.booleanhasBPAccess(String BPAccessType, Object[] params) Deprecated.booleanDeprecated.Credit Status is Critical.booleanDeprecated.Credit Status is Stop or Hold.booleanDeprecated.booleanDeprecated.Return Email Validation.booleanDeprecated.Return Email Verification (reply).booleanDeprecated.booleanDeprecated.Is User Logged inbooleanDeprecated.Is Password OKbooleanDeprecated.booleanisValid()Deprecated.Return Valid.booleanisVendor()Deprecated.booleanDeprecated.Log in with passwordvoidlogout()Deprecated.Log in with oasswordbooleansave()Deprecated.Save BPartner ObjectsvoidsetAddress(String address) Deprecated.voidsetAddress2(String address2) Deprecated.voidsetBirthday(Timestamp birthday) Deprecated.voidsetC_BP_Group_ID(int C_BP_Group_ID) Deprecated.voidsetC_BP_Group_ID(String C_BP_Group_ID) Deprecated.voidsetC_Country_ID(int C_Country_ID) Deprecated.voidsetC_Country_ID(String C_Country_ID) Deprecated.voidsetC_Region_ID(int C_Region_ID) Deprecated.voidsetC_Region_ID(String C_Region_ID) Deprecated.voidDeprecated.voidsetCompany(String company) Deprecated.voidsetCountryName(String country) Deprecated.voidDeprecated.voidsetEMailVerifyCode(String code, String info) Deprecated.Check and Set EMail Validation Code.voidDeprecated.voidsetIsCustomer(boolean isCustomer) Deprecated.voidDeprecated.voidDeprecated.Check and Save PasswordvoidsetPassword(String password) Deprecated.Set PasswordvoidsetPasswordMessage(String passwordMessage) Deprecated.Set Password MessagevoidDeprecated.voidDeprecated.voidDeprecated.voidsetRegionName(String region) Deprecated.voidDeprecated.Set Save Error MessagevoidDeprecated.voidDeprecated.voidDeprecated.toString()Deprecated.Info
-
Field Details
-
NAME
Deprecated.Attribute Name - also in JSPs- See Also:
-
-
Method Details
-
get
Deprecated.Get from request- Parameters:
request- request- Returns:
- web user if exists
-
get
Deprecated.Get user unconditional from cache- Parameters:
ctx- contextemail- email- Returns:
- web user
-
get
Deprecated.Get user- Parameters:
ctx- contextemail- emailpassword- optional passworduseCache- use cache- Returns:
- web user
-
get
Deprecated.Get user unconditional (from cache)- Parameters:
ctx- contextAD_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
Deprecated.Info -
save
public boolean save()Deprecated.Save BPartner Objects- Returns:
- true if saved
-
setSaveErrorMessage
Deprecated.Set Save Error Message- Parameters:
msg- message
-
getSaveErrorMessage
Deprecated.Get Save Error Message- Returns:
- message
-
getEmail
Deprecated.Get EMail address. used as jsp parameter- Returns:
- email address of contact
-
setEmail
Deprecated. -
getName
Deprecated. -
setName
Deprecated. -
setValue
Deprecated. -
getTitle
Deprecated. -
setTitle
Deprecated. -
getPassword
Deprecated.Get Password- Returns:
- password
-
setPassword
public void setPassword()Deprecated.Check and Save Password -
setPassword
Deprecated.Set Password- Parameters:
password- new password
-
isPasswordOK
public boolean isPasswordOK()Deprecated.Is Password OK- Returns:
- true if OK
-
getPasswordMessage
Deprecated.Set Password Message- Returns:
- error message or null
-
setPasswordMessage
Deprecated.Set Password Message- Parameters:
passwordMessage- message
-
login
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
Deprecated. -
setPhone
Deprecated. -
getPhone2
Deprecated. -
setPhone2
Deprecated. -
getFax
Deprecated. -
setFax
Deprecated. -
getBirthday
Deprecated. -
setBirthday
Deprecated. -
getTaxID
Deprecated. -
setTaxID
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
Deprecated.Get Company Name- Returns:
- company name
-
setCompany
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
Deprecated.Get Location- Returns:
- location address
-
setAddress
Deprecated. -
getAddress2
Deprecated. -
setAddress2
Deprecated. -
getCity
Deprecated. -
setCity
Deprecated. -
getPostal
Deprecated. -
setPostal
Deprecated. -
getRegionName
Deprecated.Get (additional) Region name- Returns:
- location region name
-
setRegionName
Deprecated. -
getC_Region_ID
public int getC_Region_ID()Deprecated. -
getRegionID
Deprecated. -
setC_Region_ID
public void setC_Region_ID(int C_Region_ID) Deprecated. -
setC_Region_ID
Deprecated. -
getCountryName
Deprecated. -
setCountryName
Deprecated. -
getC_Country_ID
public int getC_Country_ID()Deprecated. -
getCountryID
Deprecated. -
setC_Country_ID
public void setC_Country_ID(int C_Country_ID) Deprecated. -
setC_Country_ID
Deprecated. -
setC_BP_Group_ID
public void setC_BP_Group_ID(int C_BP_Group_ID) Deprecated. -
setC_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
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
Deprecated.Credit Status Clear Text. Used in Web UI- Returns:
- Clear Text Credit Status
-
getBankAccount
Deprecated.Get BP Bank Account (or create it)- Returns:
- Bank Account
-
getBankAccount
Deprecated.Get BP Bank Account (or create it)- Parameters:
requery- Requery data- Returns:
- Bank Account
-
getEMailVerifyCode
Deprecated.Get EMail Verification Code- Returns:
- verification code
-
setEMailVerifyCode
Deprecated.Check and Set EMail Validation Code.- Parameters:
code- codeinfo- info
-