Package org.adempiere.model
Class ExportModelValidator
java.lang.Object
org.adempiere.model.ExportModelValidator
- All Implemented Interfaces:
ModelValidator
Export Validator which is responsible to create XML document.
- Version:
- $Id$
- Author:
- Trifon Trifonov, victor.perez@e-evolution.com, www.e-evolution.com
- BF2875989 Deactivate replication records are include to replication
- https://sourceforge.net/p/adempiere/bugs/2167/
- [ 2195090 ] Stabilization of replication
- https://sourceforge.net/p/adempiere/bugs/2294/
- BF2947615 The document recplicacion not working
- https://sourceforge.net/p/adempiere/bugs/2307/
- The Replication should can use the Strategy from the org
- https://sourceforge.net/p/adempiere/feature-requests/979/
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Context variable which says if replication is enabledFields inherited from interface org.compiere.model.ModelValidator
CHANGETYPE_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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondocValidate
(PO po, int type) Validate Document.int
Get Client to be monitoredvoid
initialize
(ModelValidationEngine engine, MClient client) Initialize Validationvoid
login
(int AD_Org_ID, int AD_Role_ID, int AD_User_ID) User Login.modelChange
(PO po, int type) Model Change of a monitored Table.toString()
String Representation
-
Field Details
-
CTX_IsReplicationEnabled
Context variable which says if replication is enabled- See Also:
-
-
Constructor Details
-
ExportModelValidator
public ExportModelValidator()Constructor. The class is instantiated when logging in and client is selected/known
-
-
Method Details
-
initialize
Initialize Validation- Specified by:
initialize
in interfaceModelValidator
- Parameters:
engine
- validation engineclient
- client
-
loadReplicationStrategy
-
modelChange
Model Change of a monitored Table. Called after PO.beforeSave/PO.beforeDelete- Specified by:
modelChange
in interfaceModelValidator
- Parameters:
po
- persistent objecttype
- TYPE_- Returns:
- error message or null
- Throws:
Exception
- if the recipient wishes the change to be not accept.
-
docValidate
Validate Document. Called as first step of DocAction.prepareIt when you called addDocValidate for the table.- Specified by:
docValidate
in interfaceModelValidator
- Parameters:
po
- persistent objecttype
- see TIMING_ constants- Returns:
- error message or null
- Throws:
Exception
-
login
User Login. Called when preferences are set- Specified by:
login
in interfaceModelValidator
- Parameters:
AD_Org_ID
- orgAD_Role_ID
- roleAD_User_ID
- user- Returns:
- error message or null
-
getAD_Client_ID
public int getAD_Client_ID()Get Client to be monitored- Specified by:
getAD_Client_ID
in interfaceModelValidator
- Returns:
- AD_Client_ID client
-
toString
String Representation
-