|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_AD_User
org.compiere.model.MUser
public class MUser
User Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MUser(Properties ctx,
int AD_User_ID,
String trxName)
Default Constructor |
|
MUser(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MUser(X_C_BPartner partner)
Parent Constructor |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MUser |
get(Properties ctx)
Get Current User (cached) |
static MUser |
get(Properties ctx,
int AD_User_ID)
Get User (cached) Also loads Admninistrator (0) |
static MUser |
get(Properties ctx,
String name,
String password)
Get User |
X_AD_UserBPAccess[] |
getBPAccess(boolean requery)
Get active BP Access records |
String |
getEMailVerifyCode()
Get EMail Validation Code |
String |
getFirstName()
Get First Name |
InternetAddress |
getInternetAddress()
Convert EMail |
String |
getLastName()
Get Last Name |
static String |
getNameOfUser(int AD_User_ID)
Get Name of AD_User |
static MUser[] |
getOfBPartner(Properties ctx,
int C_BPartner_ID)
Get active Users of BPartner |
MRole[] |
getRoles(int AD_Org_ID)
Get User Roles for Org |
String |
getValue()
Get Value - 7 bit lower case alpha numerics max length 8 |
static MUser[] |
getWithRole(MRole role)
Get Users with Role |
boolean |
hasBPAccess(String BPAccessType,
Object[] params)
Has the user Access to BP info and resources |
boolean |
isAdministrator()
Is User an Administrator? |
boolean |
isCanSendEMail()
Could we send an email |
boolean |
isEMailValid()
Is the email valid |
boolean |
isEMailVerified()
Is EMail Verified by response |
boolean |
isNotificationEMail()
Get Notification via EMail |
boolean |
isNotificationNote()
Get Notification via Note |
boolean |
isOnline()
Is it an Online Access User |
static boolean |
isSalesRep(int AD_User_ID)
User is SalesRep |
void |
setEMail(String EMail)
Set EMail - reset validation |
boolean |
setEMailVerifyCode(String code,
String info)
Check & Set EMail Validation Code. |
void |
setValue(String Value)
Set Value - 7 bit lower case alpha numerics max length 8 |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MUser(Properties ctx,
int AD_User_ID,
String trxName)
ctx - contextAD_User_ID - idtrxName - transactionpublic MUser(X_C_BPartner partner)
partner - partner
public MUser(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - current row of result set to be loadedtrxName - transaction| Method Detail |
|---|
public static MUser[] getOfBPartner(Properties ctx,
int C_BPartner_ID)
ctx - contextC_BPartner_ID - id
public static MUser[] getWithRole(MRole role)
role - role
public static MUser get(Properties ctx,
int AD_User_ID)
ctx - contextAD_User_ID - id
public static MUser get(Properties ctx)
ctx - context
public static MUser get(Properties ctx,
String name,
String password)
ctx - contextname - namepassword - password
public static String getNameOfUser(int AD_User_ID)
AD_User_ID - System User
public static boolean isSalesRep(int AD_User_ID)
AD_User_ID - user
public String getValue()
getValue in interface I_AD_UsergetValue in class X_AD_Userpublic void setValue(String Value)
setValue in interface I_AD_UsersetValue in class X_AD_UserValue - public String getFirstName()
public String getLastName()
public void addDescription(String description)
description - description to be addedpublic String toString()
toString in class X_AD_Userpublic boolean isOnline()
public void setEMail(String EMail)
setEMail in interface I_AD_UsersetEMail in class X_AD_UserEMail - emailpublic InternetAddress getInternetAddress()
public boolean isEMailValid()
public boolean isCanSendEMail()
public String getEMailVerifyCode()
public boolean setEMailVerifyCode(String code,
String info)
code - codeinfo - info
public boolean isEMailVerified()
public boolean isNotificationEMail()
public boolean isNotificationNote()
public MRole[] getRoles(int AD_Org_ID)
AD_Org_ID - org
public boolean isAdministrator()
public boolean hasBPAccess(String BPAccessType,
Object[] params)
BPAccessType - access typeparams - opt parameter
public X_AD_UserBPAccess[] getBPAccess(boolean requery)
requery - requery
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||