Class MContactInterest

    • Constructor Detail

      • MContactInterest

        public MContactInterest​(Properties ctx,
                                int ignored,
                                String trxName)
        Persistency Constructor
        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)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MContactInterest get​(Properties ctx,
                                           int R_InterestArea_ID,
                                           int AD_User_ID,
                                           boolean isActive,
                                           String trxName)
        Get Contact Interest
        Parameters:
        ctx - context
        R_InterestArea_ID - interest ares
        AD_User_ID - user
        isActive - create as active
        trxName - transaction
        Returns:
        Contact Interest
      • unsubscribe

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

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

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

        public void subscribe​(boolean subscribe)
        Subscribe. User action only.
        Parameters:
        subscribe - subscribe
      • 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
      • main

        public static void main​(String[] args)
        Parameters:
        args - ignored