Example #1
0
  @Override
  public void initialize(final ModelValidationEngine engine, final MClient client) {
    if (client != null) m_AD_Client_ID = client.getAD_Client_ID();

    engine.addModelChange(I_C_Order.Table_Name, this);
    engine.addDocValidate(I_C_Order.Table_Name, this);
  }
Example #2
0
  /**
   * Initialize Validation
   *
   * @param engine validation engine
   * @param client client
   */
  public void initialize(ModelValidationEngine engine, MClient client) {
    // client = null for global validator
    if (client != null) {
      m_AD_Client_ID = client.getAD_Client_ID();
      if (log.isLoggable(Level.INFO)) log.info(client.toString());
    } else {
      if (log.isLoggable(Level.INFO)) log.info("Initializing global validator: " + this.toString());
    }

    //	We want to be informed when C_Order is created/changed
    engine.addModelChange(MOrder.Table_Name, this);
    //	We want to validate Order before preparing
    engine.addDocValidate(MOrder.Table_Name, this);
  } //	initialize