Package org.compiere.model
Class SalesMgmtValidator
- java.lang.Object
- 
- org.compiere.model.SalesMgmtValidator
 
- 
- All Implemented Interfaces:
- ModelValidator
 
 public class SalesMgmtValidator extends Object implements ModelValidator Validator for Sales Management module- Author:
- Paul Bowden www.adaxa.com.au
 
- 
- 
Field Summary- 
Fields inherited from interface org.compiere.model.ModelValidatorCHANGETYPE_CHANGE, CHANGETYPE_DELETE, CHANGETYPE_NEW, DOCTIMING_AFTER_COMPLETE, DOCTIMING_BEFORE_PREPARE, documentEventTopics, documentEventValidators, tableEventTopics, tableEventValidators, TIMING_AFTER_CLOSE, TIMING_AFTER_COMPLETE, TIMING_AFTER_POST, TIMING_AFTER_PREPARE, TIMING_AFTER_REACTIVATE, TIMING_AFTER_REVERSEACCRUAL, TIMING_AFTER_REVERSECORRECT, TIMING_AFTER_VOID, TIMING_BEFORE_CLOSE, TIMING_BEFORE_COMPLETE, TIMING_BEFORE_POST, TIMING_BEFORE_PREPARE, TIMING_BEFORE_REACTIVATE, TIMING_BEFORE_REVERSEACCRUAL, TIMING_BEFORE_REVERSECORRECT, TIMING_BEFORE_VOID, TYPE_AFTER_CHANGE, TYPE_AFTER_CHANGE_REPLICATION, TYPE_AFTER_DELETE, TYPE_AFTER_NEW, TYPE_AFTER_NEW_REPLICATION, TYPE_BEFORE_CHANGE, TYPE_BEFORE_DELETE, TYPE_BEFORE_DELETE_REPLICATION, TYPE_BEFORE_NEW, TYPE_CHANGE, TYPE_DELETE, TYPE_NEW
 
- 
 - 
Constructor SummaryConstructors Constructor Description SalesMgmtValidator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdocValidate(PO po, int timing)Validate Document.intgetAD_Client_ID()Get Client to be monitoredvoidinitialize(ModelValidationEngine engine, MClient client)Initialize ValidationStringlogin(int AD_Org_ID, int AD_Role_ID, int AD_User_ID)User Login.StringmodelChange(PO po, int type)Model Change of a monitored Table.StringtoString()String Representation
 
- 
- 
- 
Method Detail- 
initializepublic void initialize(ModelValidationEngine engine, MClient client) Initialize Validation- Specified by:
- initializein interface- ModelValidator
- Parameters:
- engine- validation engine
- client- client
 
 - 
modelChangepublic String modelChange(PO po, int type) throws Exception Model Change of a monitored Table. Called after PO.beforeSave/PO.beforeDelete when you called addModelChange for the table- Specified by:
- modelChangein interface- ModelValidator
- Parameters:
- po- persistent object
- type- TYPE_
- Returns:
- error message or null
- Throws:
- Exception- if the recipient wishes the change to be not accept.
 
 - 
docValidatepublic String docValidate(PO po, int timing) Validate Document. Called as first step of DocAction.prepareIt when you called addDocValidate for the table. Note that totals, etc. may not be correct.- Specified by:
- docValidatein interface- ModelValidator
- Parameters:
- po- persistent object
- timing- see TIMING_ constants
- Returns:
- error message or null
 
 - 
loginpublic String login(int AD_Org_ID, int AD_Role_ID, int AD_User_ID) User Login. Called when preferences are set- Specified by:
- loginin interface- ModelValidator
- Parameters:
- AD_Org_ID- org
- AD_Role_ID- role
- AD_User_ID- user
- Returns:
- error message or null
 
 - 
getAD_Client_IDpublic int getAD_Client_ID() Get Client to be monitored- Specified by:
- getAD_Client_IDin interface- ModelValidator
- Returns:
- AD_Client_ID client
 
 
- 
 
-