com.ibm.commerce.tickler.commands

Class UpdateTicklerCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UpdateTicklerCmd, 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 UpdateTicklerCmdImpl
    extends TaskCommandImpl
    implements UpdateTicklerCmd
    The class UpdateTicklerCmdImpl updates ticklers from the supplied list.

    Behavior:

    1. Checks if the supplied tickler IDs are valid and the ticklers are not locked by another CSR.
    2. Updates the remind-on date-time of the ticklers in the list, if specified.
    3. Updates the comments for the ticklers in the list, if specified.
    4. Updates the assignee for the ticklers in the list, if specified.

    Exceptional conditions:

    • No tickler ID is supplied.
    • One of the ticklers in the list is already locked by another CSR.
    See Also:
    Serialized Form
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UpdateTicklerCmdImpl

        public UpdateTicklerCmdImpl()
    • Method Detail

      • getTicklerComment

        public java.lang.String getTicklerComment()
        This method gets the tickler comment.
        Specified by:
        getTicklerComment in interface UpdateTicklerCmd
        Returns:
        the tickler comment.
      • setTicklerComment

        public void setTicklerComment(java.lang.String astrComment)
        This method sets the tickler comment.
        Specified by:
        setTicklerComment in interface UpdateTicklerCmd
        Parameters:
        astrComment - text of the comment.
      • getRemindOnDate

        public java.sql.Timestamp getRemindOnDate()
        This method retrieves the date-time when this tickler should next pop into the queue.
        Specified by:
        getRemindOnDate in interface UpdateTicklerCmd
        Returns:
        the date-time when this tickler should next pop into the queue.
      • setRemindOnDate

        public void setRemindOnDate(java.sql.Timestamp aRemindOnDate)
        This method sets the date-time when this tickler should next pop into the queue.
        Specified by:
        setRemindOnDate in interface UpdateTicklerCmd
        Parameters:
        aRemindOnDate - date-time when this tickler should next pop into the queue.
      • getAssignToMemberId

        public java.lang.Long getAssignToMemberId()
        This method gets the identifier of the Customer Service Representative to whom this tickler is assigned.
        Specified by:
        getAssignToMemberId in interface UpdateTicklerCmd
        Returns:
        the Customer Service Representative identifier.
      • setAssignToMemberId

        public void setAssignToMemberId(java.lang.Long anAssignToMemberId)
        This method sets the identifier of the Customer Service Representative to whom this tickler is assigned.
        Specified by:
        setAssignToMemberId in interface UpdateTicklerCmd
        Parameters:
        anAssignToMemberId - the Customer Service Representative identifier.
      • getTicklerIds

        public java.lang.Long[] getTicklerIds()
        This method gets the list of tickler identifiers. Tickler id is the unique number to identify the to-do item.
        Specified by:
        getTicklerIds in interface UpdateTicklerCmd
        Returns:
        array of tickler identifiers.
      • setTicklerIds

        public void setTicklerIds(java.lang.Long[] aarrnTicklerIds)
        This method sets the list of tickler identifiers. Tickler id is the unique number to identify the to-do item.
        Specified by:
        setTicklerIds in interface UpdateTicklerCmd
        Parameters:
        aarrnTicklerIds - array of tickler identifiers.
      • getStatus

        public java.lang.Short getStatus()
        This method retrieves the tickler status.
        Specified by:
        getStatus in interface UpdateTicklerCmd
        Returns:
        0 for open, 1 for closed.
      • setStatus

        public void setStatus(java.lang.Short aStatus)
        This method sets the tickler status.
        Specified by:
        setStatus in interface UpdateTicklerCmd
        Parameters:
        aStatus - tickler status (0 for open, 1 for closed).
      • getUnassigned

        public boolean getUnassigned()
        This method gets the boolean flag that determines whether the tickler is to be assigned to a member.
        Specified by:
        getUnassigned in interface UpdateTicklerCmd
        Returns:
        true if the tickler is not to be assigned; false otherwise.
      • setUnassigned

        public void setUnassigned(boolean inUnassignedValue)
        This method sets the boolean flag that determines whether the tickler is to be assigned to a member.
        Specified by:
        setUnassigned in interface UpdateTicklerCmd
        Parameters:
        inUnassignedValue - true if the tickler is not to be assigned; false otherwise.
      • updateTickler

        public void updateTickler(TicklerAccessBean abTickler,
                                  java.lang.String comment,
                                  java.lang.Integer languageIdentifier,
                                  java.sql.Timestamp remindOnDate,
                                  java.lang.Short status,
                                  boolean unassigned,
                                  java.lang.Long assignToMember,
                                  java.lang.Integer assignToRole)
                           throws ECException
        This method updates an existing tickler. A tickler reminds a Customer Service Supervisor or Customer Service Representative to perform an action. Example actions are calling a customer to get a replacement payment instruction or to review a price override.
        Parameters:
        abTickler - the access bean of the tickler to be updated.
        comment - the comment to accompany this tickler.
        languageIdentifier - the language identifier.
        remindOnDate - the date-time when this tickler should show up in the tickler queue; if not supplied, the current date-time will be used.
        status - the status of this tickler (0 for open, 1 for closed).
        unassigned - the flag to indicate whether the tickler is to be assigned: true if it is not to be assigned, in which case both assignToMember and assignToRole will be ignored; false otherwise.
        assignToMember - the ID of the CSR to whom this tickler is to be assigned; if not supplied, assignToRole will be used.
        assignToRole - the code of the CSR role to which the tickler is to be assigned if assignToMember is not supplied.
        Throws:
        ECException
      • reset

        public void reset()
        This method resets all the command parameters.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand