|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_AD_User
org.compiere.model.MUser
public class MUser
User Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MUser(Ctx ctx,
int AD_User_ID,
String trxName)
Default Constructor |
|
MUser(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MUser(X_C_BPartner partner)
Parent Constructor |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
boolean |
addUserMenuFavorite(int AD_Menu_ID,
int sequenceNo)
Add menu item to user's Favorite list. |
boolean |
addUserMenuNewFavorite(int AD_Menu_ID,
int sequenceNo)
Add menu item to user's Favorite "new" list (Saves Tree if necessary) |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MUser |
get(Ctx ctx)
Get Current User (cached) |
static MUser |
get(Ctx ctx,
int AD_User_ID)
Get User (cached) Also loads Admninistrator (0) |
static MUser |
get(Ctx ctx,
String email,
String trxName)
Get User from email |
static MUser |
get(Ctx ctx,
String name,
String password,
String trxName)
Get active User with name/pwd |
static int |
getAD_User_ID(String email,
int AD_Client_ID)
Get AD_User_ID |
X_AD_UserBPAccess[] |
getBPAccess(boolean requery)
Get active BP Access records |
static String |
getEmailOfUser(int AD_User_ID,
int AD_Client_ID)
Get Email of AD_User |
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(Ctx ctx,
int C_BPartner_ID)
Get active Users of BPartner |
MUserPreference |
getPreference()
Get User Preference |
MRole[] |
getRoles(int AD_Org_ID)
Get User Roles for Org |
MTree |
getUserFavoriteTree()
Gets the user's tree for favorites |
MTree |
getUserNewFavoriteTree()
Gets the user's tree for create list favorites |
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 |
hasRole()
Has the user a role? |
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 |
boolean |
isSystemAdministrator()
Is User a System Administrator? |
static void |
main(String[] args)
Test |
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, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MUser(Ctx ctx,
int AD_User_ID,
String trxName)
ctx - contextAD_User_ID - idtrxName - transactionpublic MUser(X_C_BPartner partner)
partner - partner
public MUser(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - current row of result set to be loadedtrxName - transaction| Method Detail |
|---|
public static MUser[] getOfBPartner(Ctx ctx,
int C_BPartner_ID)
ctx - contextC_BPartner_ID - id
public static MUser[] getWithRole(MRole role)
role - role
public static MUser get(Ctx ctx,
int AD_User_ID)
ctx - contextAD_User_ID - id
public static MUser get(Ctx ctx)
ctx - context
public static MUser get(Ctx ctx,
String name,
String password,
String trxName)
ctx - contextname - namepassword - password
public static MUser get(Ctx ctx,
String email,
String trxName)
ctx - contextemail - email
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 static int getAD_User_ID(String email,
int AD_Client_ID)
email - mailAD_Client_ID - client
public static String getEmailOfUser(int AD_User_ID,
int AD_Client_ID)
AD_User_ID - userAD_Client_ID - client
public String getValue()
getValue in class X_AD_Userpublic void setValue(String Value)
setValue in class X_AD_UserValue - public String getFirstName()
public String getLastName()
public void addDescription(String description)
description - description to be addedpublic MUserPreference getPreference()
public String toString()
toString in class X_AD_Userpublic boolean isOnline()
public void setEMail(String EMail)
setEMail 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 hasRole()
public boolean isSystemAdministrator()
public boolean isAdministrator()
public boolean hasBPAccess(String BPAccessType,
Object[] params)
BPAccessType - access typeparams - opt parameter
public X_AD_UserBPAccess[] getBPAccess(boolean requery)
requery - requery
public boolean addUserMenuFavorite(int AD_Menu_ID,
int sequenceNo)
AD_Menu_ID - menu to be addedsequenceNo - ordering to be added, 0 if unused
public boolean addUserMenuNewFavorite(int AD_Menu_ID,
int sequenceNo)
AD_Menu_ID - menu to be addedsequenceNo - ordering to be added, 0 if unused
public MTree getUserNewFavoriteTree()
public MTree getUserFavoriteTree()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
public static void main(String[] args)
args - ignored
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||