Class MUserDefTheme

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

public class MUserDefTheme extends X_AD_UserDef_Theme
User, role, organization or tenant variations of Themes
Version:
$Id$
Author:
Nicolas Micoud, TGI
See Also:
  • Constructor Details

    • MUserDefTheme

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

      public MUserDefTheme(Properties ctx, int X_AD_UserDef_Theme_ID, String trxName)
      Standard constructor.
      Parameters:
      ctx - Context
      X_AD_UserDef_Theme_ID - Primary Key ID
      trxName - Transaction name
    • MUserDefTheme

      public MUserDefTheme(Properties ctx, ResultSet rs, String trxName)
      Load Constructor.
      Parameters:
      ctx - Context
      rs - Result set
      trxName - Transaction name
  • Method Details

    • getBestMatch

      public static MUserDefTheme getBestMatch(Properties ctx, String themeName)
      Get best matching MUserDefTheme for a Theme, the best match is cached.
      Parameters:
      ctx -
      themeName -
      Returns:
      best matching MUserDefTheme or null
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Execute before Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted