com.ibm.commerce.marketing.facade.server.services.dataaccess.bom.mediator

Class ReadActivityMediator

    • Field Detail

      • EMAIL_PROMO_UNSENT

        public static final java.lang.String EMAIL_PROMO_UNSENT
        Constant representing an email activity has not been sent.
        See Also:
        Constant Field Values
      • EMAIL_PROMO_SENT

        public static final java.lang.String EMAIL_PROMO_SENT
        Constant representing an email activity has been sent.
        See Also:
        Constant Field Values
      • EMAIL_PROMO_DELETED

        public static final java.lang.String EMAIL_PROMO_DELETED
        Constant representing an email activity has been deleted.
        See Also:
        Constant Field Values
      • EMAIL_PROMO_SCHEDULED

        public static final java.lang.String EMAIL_PROMO_SCHEDULED
        Constant representing an email activity has been scheduled, but has not yet been sent.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReadActivityMediator

        public ReadActivityMediator()
    • Method Detail

      • buildNoun

        public void buildNoun(java.lang.Object aLogicalEntityType,
                              java.lang.Object aPhysicalEntityType)
                       throws AbstractApplicationException
        This method builds the main Activity noun.
        Parameters:
        aLogicalEntityType - The logical noun.
        aPhysicalEntityType - The physical data object.
        Throws:
        AbstractApplicationException
      • getEmailPromotionStatus

        public static java.math.BigInteger getEmailPromotionStatus(java.lang.String activityId,
                                                                   MarketingEmailStatisticsType emailStats)
                                                            throws DataMediatorException
        This method returns the status of an email promotion associated with an e-mail activity. If the email promotion exists, but is unsent, then this method returns the value of scheduled (9). Otherwise, it will return if the e-mail has been sent (1), or has been deleted (2).
        Parameters:
        activityId - The ID of the activity to check the associated e-mail promotion.
        emailStats - The MarketingEmailStatisticsType object to be populated if the email has been sent. The parameter may be null if the detailed statistics are not required.
        Returns:
        This method returns the status of the e-mail promotion.
        Throws:
        DataMediatorException