Class ExportModelValidator

java.lang.Object
org.adempiere.model.ExportModelValidator
All Implemented Interfaces:
ModelValidator

public class ExportModelValidator extends Object implements 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 Details

      • CTX_IsReplicationEnabled

        public static final String 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

        public void initialize(ModelValidationEngine engine, MClient client)
        Initialize Validation
        Specified by:
        initialize in interface ModelValidator
        Parameters:
        engine - validation engine
        client - client
      • loadReplicationStrategy

        public void loadReplicationStrategy(ModelValidationEngine engine)
      • modelChange

        public String modelChange(PO po, int type) throws Exception
        Model Change of a monitored Table. Called after PO.beforeSave/PO.beforeDelete
        Specified by:
        modelChange in 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.
      • docValidate

        public String docValidate(PO po, int type)
        Validate Document. Called as first step of DocAction.prepareIt when you called addDocValidate for the table.
        Specified by:
        docValidate in interface ModelValidator
        Parameters:
        po - persistent object
        type - see TIMING_ constants
        Returns:
        error message or null
        Throws:
        Exception
      • login

        public String login(int AD_Org_ID, int AD_Role_ID, int AD_User_ID)
        User Login. Called when preferences are set
        Specified by:
        login in interface ModelValidator
        Parameters:
        AD_Org_ID - org
        AD_Role_ID - role
        AD_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 interface ModelValidator
        Returns:
        AD_Client_ID client
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class Object
        Returns:
        info