Class MContactInterest

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

public class MContactInterest extends X_R_ContactInterest
  Business Partner Contact Interest (subscription).
  Adempiere complies with spam laws.
  If the opt out date is set (by the user), you should not subscribe the user again.
  Internally, the isActive flag is used.
  
Version:
$Id: MContactInterest.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, red1 FR: [ 2214883 ] Remove SQL code and Replace for Query
See Also:
  • Constructor Details

    • MContactInterest

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

      public MContactInterest(Properties ctx, int ignored, String trxName)
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MContactInterest

      public MContactInterest(Properties ctx, int R_InterestArea_ID, int AD_User_ID, boolean isActive, String trxName)
      Constructor
      Parameters:
      ctx - context
      R_InterestArea_ID - interest area
      AD_User_ID - partner contact
      isActive - create as active
      trxName - transaction
    • MContactInterest

      public MContactInterest(Properties ctx, ResultSet rs, String trxName)
      Create and Load existing Persistent Object.
      Parameters:
      ctx - context
      rs - load from current result set position (no navigation, not closed)
      trxName - transaction
    • MContactInterest

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

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

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

    • get

      public static MContactInterest get(Properties ctx, int R_InterestArea_ID, int AD_User_ID, boolean isActive, String trxName)
      Get or create Contact Interest
      Parameters:
      ctx - context
      R_InterestArea_ID - interest ares
      AD_User_ID - user
      isActive - isActive value for create
      trxName - transaction
      Returns:
      Contact Interest
    • setOptOutDate

      public void setOptOutDate(Timestamp OptOutDate)
      Set OptOut Date. User action only.
      Specified by:
      setOptOutDate in interface I_R_ContactInterest
      Overrides:
      setOptOutDate in class X_R_ContactInterest
      Parameters:
      OptOutDate - opt out date, null to use current date
    • unsubscribe

      public void unsubscribe()
      Unsubscribe. User action only.
    • isOptOut

      public boolean isOptOut()
      Is Opted Out
      Returns:
      true if opted out
    • setSubscribeDate

      public void setSubscribeDate(Timestamp SubscribeDate)
      Set Subscribe Date. User action only.
      Specified by:
      setSubscribeDate in interface I_R_ContactInterest
      Overrides:
      setSubscribeDate in class X_R_ContactInterest
      Parameters:
      SubscribeDate - subscribe date, null to use current date
    • subscribe

      public void subscribe()
      Subscribe. User action only.
    • subscribe

      public void subscribe(boolean subscribe)
      Subscribe. User action only.
      Parameters:
      subscribe - true to subscribe, false to opt out
    • isSubscribed

      public boolean isSubscribed()
      Is Subscribed. Active is set internally, the opt out date is set by the user via the web UI.
      Returns:
      true if subscribed
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class X_R_ContactInterest
      Returns:
      info