com.ibm.commerce.giftregistry.commands

Class GiftRegistryValuesAuditCmdImpl

  • All Implemented Interfaces:
    AccCommand, com.ibm.commerce.command.CacheableECCommand, ControllerCommand, ECCommand, ECTargetableCommand, TaskCommand, GiftRegistryAddressAuditCmd, GiftRegistryValuesAuditCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class GiftRegistryValuesAuditCmdImpl
    extends GiftRegistryAddressAuditCmdImpl
    implements GiftRegistryValuesAuditCmd
    Default implementation class of the interface GiftRegistryValuesAuditCmd. This implementation is used by the IBM Gift Center sample application to audit part of the input values for creating or updating registries. To create registries using a kiosk, the input values are captured on multiple pages. This is unlike the online or Web channel, where all input values are captured on one page. As a result, this command is needed to validate part of the input values. If the event date is specified in the request, the date is also validated against the gift registry business rules.
    See Also:
    GiftRegistryValuesAuditCmd, Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • GiftRegistryValuesAuditCmdImpl

        public GiftRegistryValuesAuditCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Audits part of the input values for creating or updating a gift registry. To create registries using a kiosk, the input values are captured on multiple pages. This is unlike the online or Web channel, where all input values are captured on one page. As a result, this command is needed to validate part of the input values. If the event date is specified in the request, the date is also validated against the gift registry business rules.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface GiftRegistryAddressAuditCmd
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class GiftRegistryAddressAuditCmdImpl
        Throws:
        ECException
      • getEventTypeId

        public java.lang.Integer getEventTypeId()
        Gets event type ID
        Returns:
        eventTypeId
      • setEventTypeId

        public void setEventTypeId(java.lang.Integer aEventTypeId)
        Set event type ID
        Parameters:
        aEventTypeId -
      • getEventDate

        public java.sql.Date getEventDate()
        Gets the event date
        Returns:
        the date of an event
      • getEventYear

        public java.lang.Integer getEventYear()
        Gets the event year
        Returns:
        the year in which an event will happen
      • getEventMonth

        public java.lang.Integer getEventMonth()
        Gets the event month
        Returns:
        the month in which an event will happen
      • getEventDay

        public java.lang.Integer getEventDay()
        Gets the event day
        Returns:
        the day when an event will happen
      • setEventDate

        public void setEventDate(java.sql.Date date)
        Sets the event date for a gift registry
        Parameters:
        date - - the date to be set for the event
      • setEventYear

        public void setEventYear(java.lang.Integer year)
        Sets the year of an event
        Parameters:
        year - - the year to be set for the event
      • setEventMonth

        public void setEventMonth(java.lang.Integer month)
        Sets the month of an event
        Parameters:
        month - - the month to be set for the event
      • setEventDay

        public void setEventDay(java.lang.Integer day)
        Sets the day of an event
        Parameters:
        day - - the day to be set for the event
      • setExternalId

        public void setExternalId(java.lang.String aExternalId)
        Sets the External ID
        Parameters:
        externalId - - the unique gift registry identifier for all channels
      • getExternalId

        public java.lang.String getExternalId()
        Gets the external ID
        Returns:
        externalId - the unique gift registry identifier for all channels
      • setStoreId

        public void setStoreId(java.lang.Integer aStoreId)
        Sets store Id
        Parameters:
        storeId - - store ID