Class MChat

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

public class MChat extends X_CM_Chat
Chat Model
Version:
$Id: MChat.java,v 1.4 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MChat

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

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

      public MChat(Properties ctx, int AD_Table_ID, int Record_ID, String Description, String trxName)
      Full Constructor
      Parameters:
      ctx - context
      AD_Table_ID - table
      Record_ID - record
      Description - description
      trxName - transaction
    • MChat

      public MChat(Properties ctx, int AD_Table_ID, int Record_ID, String Record_UU, String Description, String trxName)
      Full Constructor
      Parameters:
      ctx - context
      AD_Table_ID - table
      Record_ID - record
      Record_UU - record UUI
      Description - description
      trxName - transaction
    • MChat

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

    • getOfTable

      public static MChat[] getOfTable(Properties ctx, int AD_Table_ID)
      Get Chats Of Table - of client in context
      Parameters:
      ctx - context
      AD_Table_ID - table
      Returns:
      array of chats
    • getEntries

      public MChatEntry[] getEntries(boolean reload)
      Get Entries
      Parameters:
      reload - reload data
      Returns:
      array of chat entries
    • setDescription

      public void setDescription(String Description)
      Set Description
      Specified by:
      setDescription in interface I_CM_Chat
      Overrides:
      setDescription in class X_CM_Chat
      Parameters:
      Description -
    • getHistory

      public org.apache.ecs.xhtml.p getHistory(String ConfidentialType)
      Get History as html paragraph
      Parameters:
      ConfidentialType - confidentiality
      Returns:
      html paragraph
    • getID

      public static int getID(int Table_ID, int Record_ID)
      Deprecated.
      IDEMPIERE-530 Get the chat ID based on table_id and record_id
      Parameters:
      Table_ID -
      Record_ID -
      Returns:
      CM_Chat_ID
    • getID

      public static int getID(int Table_ID, int Record_ID, String Record_UU)
      Get the chat ID based on table_id and record_uu
      Parameters:
      Table_ID -
      Record_UU -
      Record_ID -
      Returns:
      CM_Chat_ID
    • 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