com.ibm.commerce.utf.commands

Class RFQNotificationMonitorBaseCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RFQNotificationMonitorBaseCmdImpl

        public RFQNotificationMonitorBaseCmdImpl()
        RFQNotificationMonitorBaseCmdImpl constructor.
    • Method Detail

      • getNotifyRFQOwner

        public boolean getNotifyRFQOwner()
        Gets the RFQ owner is to be notified.
        Specified by:
        getNotifyRFQOwner in interface RFQNotificationMonitorBaseCmd
        Returns:
        True if the RFQ owner is to be notified, false otherwise.
      • getScheduledJobLastCompletionTimestamp

        public java.sql.Timestamp getScheduledJobLastCompletionTimestamp()
                                                                  throws ECException
        Returns the last time the scheduled job was successfully completed. Returns the earliest timestamp possible if the job was never successfully completed before.

        Returns:
        The last time the scheduled job was successfully completed.
        Throws:
        ECException.
        ECException
      • getSellerMemberGroupNameToNotify

        public java.lang.String getSellerMemberGroupNameToNotify()
        Gets member group name defined in the MBRGRP table that is used to retrieve the users in the seller's organization in order to send notifications to.
        Specified by:
        getSellerMemberGroupNameToNotify in interface RFQNotificationMonitorBaseCmd
        Returns:
        The member group name defined in the MBRGRP table that is used to retrieve the users in the seller's organization in order to send notifications to.
      • getSellerMemberGroupToNotifyOwnerId

        public java.lang.Long getSellerMemberGroupToNotifyOwnerId()
        Gets owner id of the member group name defined by the setSellerMemberGroupNameToNotify() method.
        Specified by:
        getSellerMemberGroupToNotifyOwnerId in interface RFQNotificationMonitorBaseCmd
        Returns:
        The owner id of the member group name defined by the setSellerMemberGroupNameToNotify() method.
      • getUsersToNotify

        public UserAccessBean[] getUsersToNotify(RFQAccessBean rfq)
                                          throws ECException
        Return a list of users to notify.

        Parameters:
        RFQAccessBean - The RFQs.
        Returns:
        An array of UserAccessBean objects.
        Throws:
        ECException.
        ECException
      • setNotifyRFQOwner

        public void setNotifyRFQOwner(boolean aFlag)
        Sets whether the RFQ owner is notified.
        Specified by:
        setNotifyRFQOwner in interface RFQNotificationMonitorBaseCmd
        Parameters:
        aFlag - Sets whether the RFQ owner is notified. True the RFQ owner is notified, false the RFQ owner is not notified.
      • setSellerMemberGroupNameToNotify

        public void setSellerMemberGroupNameToNotify(java.lang.String mbrGroup)
        Sets member group name defined in the MBRGRP table that is used to retrieve the users in the seller's organization in order to send notifications to.
        Specified by:
        setSellerMemberGroupNameToNotify in interface RFQNotificationMonitorBaseCmd
        Parameters:
        mbrGroup - The member group name defined in the MBRGRP table that is used to retrieve the users in the seller's organization in order to send notifications to.
      • setSellerMemberGroupToNotifyOwnerId

        public void setSellerMemberGroupToNotifyOwnerId(java.lang.Long mbrGrpOwnerId)
        Sets owner id of the member group name defined by the setSellerMemberGroupNameToNotify() method.
        Specified by:
        setSellerMemberGroupToNotifyOwnerId in interface RFQNotificationMonitorBaseCmd
        Parameters:
        mbrGrpOwnerId - The owner id of the member group name defined by the setSellerMemberGroupNameToNotify() method.
      • updateCommandContextWithUsersPreferredLanguage

        public void updateCommandContextWithUsersPreferredLanguage(UserAccessBean user)
                                                            throws ECException
        Sets the command context language id to that of the user's preferred language. This also resets the locale in the command context.

        Parameters:
        UserAccessBean - The user.
        Throws:
        ECException
      • validateParameters

        public void validateParameters()
                                throws ECException
        Checks if the jobRefNum was specified with command. This parameter is the scheduled job in the SCHCONFIG table. The reference number is needed to retrieve the last successful job completion end time.

        Optional parameters are:
        sellerMemberGroupNameToNotify, the group name defined in the mbrgrp table that is used to notify the seller users.
        sellerMemberGroupToNotifyOwnerId, the group name owner defined in the mbrgrp table that is used to notify the seller users. If the sellerMemberGroupToNotify parameter is specified then this parameter must also be specified.
        storeId, the store identifier number in the command context. If the storeId is 0 then this command works on all the RFQs for the site.

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException
        See Also:
        ECCommand#validateParameters()