|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcompiere.model.MyValidator
public class MyValidator
Validator Example Implementation
| Field Summary |
|---|
| Fields inherited from interface org.compiere.api.ModelValidator |
|---|
CHANGETYPE_CHANGE, CHANGETYPE_DELETE, CHANGETYPE_NEW, DOCTIMING_AFTER_COMPLETE, DOCTIMING_BEFORE_PREPARE |
| Constructor Summary | |
|---|---|
MyValidator()
Constructor. |
|
| Method Summary | |
|---|---|
String |
docValidate(PO po,
int timing)
Validate Document. |
int |
getAD_Client_ID()
Get Client to be monitored |
void |
initialize(int AD_Client_ID,
ModelValidationEngine engine)
Initialize Validation |
String |
login(int AD_Org_ID,
int AD_Role_ID,
int AD_User_ID)
User Login. |
String |
modelChange(PO po,
int type)
Model Change of a monitored Table. |
String |
toString()
String Representation |
boolean |
updateInfoColumns(ArrayList<Info_Column> columns,
StringBuffer sqlFrom,
StringBuffer sqlOrder)
Update Info Window Columns |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MyValidator()
| Method Detail |
|---|
public void initialize(int AD_Client_ID,
ModelValidationEngine engine)
initialize in interface ModelValidatorengine - validation enginepublic int getAD_Client_ID()
getAD_Client_ID in interface ModelValidator
public String login(int AD_Org_ID,
int AD_Role_ID,
int AD_User_ID)
login in interface ModelValidatorAD_Org_ID - orgAD_Role_ID - roleAD_User_ID - user
public String modelChange(PO po,
int type)
throws Exception
modelChange in interface ModelValidatorpo - persistent objecttype - TYPE_
Exception - if the recipient wishes the change to be not accept.
public String docValidate(PO po,
int timing)
docValidate in interface ModelValidatorpo - persistent objecttiming - see TIMING_ constants
public boolean updateInfoColumns(ArrayList<Info_Column> columns,
StringBuffer sqlFrom,
StringBuffer sqlOrder)
updateInfoColumns in interface ModelValidatorcolumns - array of columnssqlFrom - from clause, can be modifiedsqlOrder - order by clause, can me modified
public String toString()
toString in class Object
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||