Class ProductPriceValidator

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

public class ProductPriceValidator extends Object implements ModelValidator
Model validator to sync corresponding price list with the price list schema and base price list.
Author:
Elaine
  • Constructor Details

    • ProductPriceValidator

      public ProductPriceValidator()
  • Method Details

    • getAD_Client_ID

      public int getAD_Client_ID()
      Description copied from interface: ModelValidator
      Get Client to be monitored
      Specified by:
      getAD_Client_ID in interface ModelValidator
      Returns:
      AD_Client_ID or 0
    • initialize

      public void initialize(ModelValidationEngine engine, MClient client)
      Description copied from interface: ModelValidator
      Initialize validator.
      Specified by:
      initialize in interface ModelValidator
      Parameters:
      engine - validation engine
      client - optional client. null for validator that's applicable to all client.
    • login

      public String login(int AD_Org_ID, int AD_Role_ID, int AD_User_ID)
      Description copied from interface: ModelValidator
      User logged in. Called before 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
    • modelChange

      public String modelChange(PO po, int type) throws Exception
      Description copied from interface: ModelValidator
      Model change event of a Table.
      Specified by:
      modelChange in interface ModelValidator
      Parameters:
      po - persistent object
      type - TYPE_ event
      Returns:
      error message or null
      Throws:
      Exception - if the recipient wishes the change to be not accept.
    • docValidate

      public String docValidate(PO po, int timing)
      Description copied from interface: ModelValidator
      Validate Document Action.
      Called as first step of DocAction.prepareIt or at the end of DocAction.completeIt.
      Note that totals, etc. may not be correct before the prepare stage.
      Specified by:
      docValidate in interface ModelValidator
      Parameters:
      po - persistent object
      timing - see TIMING_ constants
      Returns:
      error message or null - if not null, the document will be marked as Invalid.