Class MInfoWindow

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_InfoWindow, I_Persistent, Evaluatee, ImmutablePOSupport

public class MInfoWindow extends X_AD_InfoWindow implements ImmutablePOSupport
Info Window Model
Version:
$Id: MInfoWindow.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MInfoWindow

      public MInfoWindow(Properties ctx, String AD_InfoWindow_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_InfoWindow_UU - UUID key
      trxName - Transaction
    • MInfoWindow

      public MInfoWindow(Properties ctx, int AD_InfoWindow_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_InfoWindow_ID - id
      trxName - transaction
    • MInfoWindow

      public MInfoWindow(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MInfoWindow

      public MInfoWindow(MInfoWindow copy)
      Copy constructor
      Parameters:
      copy -
    • MInfoWindow

      public MInfoWindow(MInfoWindow copy, String trxName)
      Copy constructor
      Parameters:
      copy -
  • Method Details

    • get

      public static MInfoWindow get(String tableName, String trxName)
      Get first accessible info window for a table
      Parameters:
      tableName -
      trxName -
      Returns:
      MInfoWindow
    • getInfoWindow

      public static MInfoWindow getInfoWindow(int AD_InfoWindow_ID)
      author xolali
      Parameters:
      AD_InfoWindow_ID -
      Returns:
      MInfoWindow or null
    • getInfoRelated

      public MInfoRelated[] getInfoRelated(boolean requery)
      author xolali
      Parameters:
      requery -
      Returns:
      related info windows
    • getInfoProcess

      public MInfoProcess[] getInfoProcess(boolean requery)
      IDEMPIERE-1334 Get MInfoProcess list of this infoWindow
      Parameters:
      requery - true to always get from DB, false to try to get from cache
      Returns:
      empty array array of Info Process
    • checkProcessRight

      protected void checkProcessRight(List<MInfoProcess> lsInfoProcess)
      if user haven't got right to run a process, remove infoProcess from list
      Parameters:
      lsInfoProcess - info process list
    • get

      public static MInfoWindow get(int infoWindowID, String trxName)
      Parameters:
      infoWindowID -
      trxName -
      Returns:
      MInfoWindow if the current role can access to the specified info window ; otherwise return null
    • getInfoColumns

      public MInfoColumn[] getInfoColumns(AccessSqlParser.TableInfo[] tableInfos)
      Parameters:
      tableInfos -
      Returns:
      array of accessible info column
    • getInfoColumns

      public MInfoColumn[] getInfoColumns()
      Returns:
      array of info columns (doesn't check access right)
    • getInfoColumns

      public MInfoColumn[] getInfoColumns(boolean requery, boolean checkDisplay)
      Parameters:
      requery -
      checkDisplay - true to exclude not visible column
      Returns:
      array of info column
    • getSql

      public String getSql()
      author xolali
      Returns:
      SELECT SQL clause
    • validateSql

      public boolean validateSql()
      Returns:
      true if generated SELECT SQL is valid
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new record
      success - true if save operation was success
      Returns:
      if save was a success
    • validate

      public void validate()
      Validate info window and update IsValid flag
    • setIsValidateEachColumn

      public void setIsValidateEachColumn(boolean validateEachColumn)
      Parameters:
      validateEachColumn -
    • markImmutable

      public MInfoWindow markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO
    • getAD_Table

      public I_AD_Table getAD_Table() throws RuntimeException
      Specified by:
      getAD_Table in interface I_AD_InfoWindow
      Overrides:
      getAD_Table in class X_AD_InfoWindow
      Throws:
      RuntimeException
    • getTableInfos

      public AccessSqlParser.TableInfo[] getTableInfos()
      Returns:
      array of AccessSqlParser.TableInfo