|
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_Rule
org.compiere.model.MRule
public class MRule
Persistent Rule Model
| Field Summary | |
|---|---|
static String |
ARGUMENTS_PREFIX
|
static String |
GLOBAL_CONTEXT_PREFIX
|
static String |
PARAMETERS_PREFIX
|
static String |
SCRIPT_PREFIX
|
static String |
WINDOW_CONTEXT_PREFIX
|
| 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 |
| Fields inherited from interface org.compiere.model.I_AD_Rule |
|---|
accessLevel, COLUMNNAME_AccessLevel, COLUMNNAME_AD_Rule_ID, COLUMNNAME_Description, COLUMNNAME_EntityType, COLUMNNAME_EventType, COLUMNNAME_Help, COLUMNNAME_Name, COLUMNNAME_RuleType, COLUMNNAME_Script, COLUMNNAME_Value, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MRule(Properties ctx,
int AD_Rule_ID,
String trxName)
Standard Constructor |
|
MRule(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static String |
convertKey(String key,
int m_windowNo)
Convert Key # -> _ |
static MRule |
get(Properties ctx,
int AD_Rule_ID)
Get Rule from Cache |
static MRule |
get(Properties ctx,
String ruleValue)
Get Rule from Cache |
String |
getEngineName()
|
static ArrayList<MRule> |
getModelValidatorLoginRules(Properties ctx)
Get Model Validation Login Rules |
ScriptEngine |
getScriptEngine()
Script Engine for this rule |
static void |
setContext(ScriptEngine engine,
Properties ctx,
int windowNo)
Set Context ctx to the engine based on windowNo |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_AD_Rule |
|---|
get_AccessLevel, getAccessLevel, getAD_Rule_ID, getDescription, getEntityType, getEventType, getHelp, getKeyNamePair, getName, getRuleType, getScript, getValue, initPO, setAccessLevel, setAD_Rule_ID, setDescription, setEntityType, setEventType, setHelp, setName, setRuleType, setScript, setValue |
| 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 |
| Field Detail |
|---|
public static final String GLOBAL_CONTEXT_PREFIX
public static final String WINDOW_CONTEXT_PREFIX
public static final String ARGUMENTS_PREFIX
public static final String PARAMETERS_PREFIX
public static final String SCRIPT_PREFIX
| Constructor Detail |
|---|
public MRule(Properties ctx,
int AD_Rule_ID,
String trxName)
ctx - contextAD_Rule_ID - idtrxName - transaction
public MRule(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MRule get(Properties ctx,
int AD_Rule_ID)
ctx - contextAD_Rule_ID - id
public static MRule get(Properties ctx,
String ruleValue)
ctx - contextruleValue - case sensitive rule Value
public static ArrayList<MRule> getModelValidatorLoginRules(Properties ctx)
ctx - context
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
public String toString()
toString in class X_AD_Rulepublic ScriptEngine getScriptEngine()
public String getEngineName()
public static void setContext(ScriptEngine engine,
Properties ctx,
int windowNo)
engine - ScriptEnginectx - contextwindowNo - window number
public static String convertKey(String key,
int m_windowNo)
key - m_windowNo -
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||