Class MBroadcastMessage

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

public class MBroadcastMessage extends X_AD_BroadcastMessage implements ImmutablePOSupport
Extended model class for AD_BroadcastMessage
Author:
Vivek, Deepak Pansheriya
See Also:
  • Field Details

  • Constructor Details

    • MBroadcastMessage

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

      public MBroadcastMessage(Properties ctx, int AD_BroadcastMessage_ID, String trxName)
      Parameters:
      ctx -
      AD_BroadcastMessage_ID -
      trxName -
    • MBroadcastMessage

      public MBroadcastMessage(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MBroadcastMessage

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

      public MBroadcastMessage(Properties ctx, MBroadcastMessage copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MBroadcastMessage

      public MBroadcastMessage(Properties ctx, MBroadcastMessage copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MBroadcastMessage get(int AD_BroadcastMessage_ID)
      Get MBroadcastMessage from cache (immutable)
      Parameters:
      AD_BroadcastMessage_ID -
      Returns:
      MBroadcastMessage or null
    • get

      public static MBroadcastMessage get(Properties ctx, int AD_BroadcastMessage_ID)
      Get MBroadcastMessage from cache (immutable)
      Parameters:
      ctx -
      AD_BroadcastMessage_ID -
      Returns:
      MBroadcastMessage or null
    • isValidUserforMessage

      public boolean isValidUserforMessage()
      Is broadcast message applicable to current login user
      Returns:
      true if applicable, false otherwise
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      save
    • markImmutable

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

      public String get_Translation(String columnName)
      Description copied from class: PO
      Get Translation of column
      Overrides:
      get_Translation in class PO
    • getUrlZoom

      public String getUrlZoom(PO po, String windowUUID, String text)
      Returns a link to be used in broadcast messages to open a record
      Parameters:
      po - PO
      windowUUID - of the window
      text - of the link
      Returns:
      the URL link to set in the broadcast message