com.ibm.commerce.tickler.commands

Class RecordTicklerActionCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, RecordTicklerActionCmd, 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 RecordTicklerActionCmdImpl
    extends TaskCommandImpl
    implements RecordTicklerActionCmd
    The class RecordTicklerActionCmdImpl records the CSR action on a list of ticklers, closing those ticklers for which the action is a resolving action.

    Behavior:

    1. Checks if the supplied tickler identifiers are valid.
    2. Checks if the supplied tickler action code is valid.
    3. For each tickler in the list:
      1. Records the CSR action.
      2. If the action is a resolving action, sets status of the tickler to closed.
      3. Determines the new remind-on date-time.
      4. Calls the UpdateTickler task command to update the remind-on date-time and assignee if needed.

    Exceptional conditions:

    • Tickler ID list is not supplied.
    • Tickler action code is not supplied.

    Default security policies:

    • CSRs can execute this command.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

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

      • RecordTicklerActionCmdImpl

        public RecordTicklerActionCmdImpl()
    • Method Detail

      • getTicklerIds

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

        public void setTicklerIds(java.lang.Long[] aarrnTickler)
        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 RecordTicklerActionCmd
        Parameters:
        aarrnTickler - array of tickler identifiers.
      • getActionComment

        public java.lang.String getActionComment()
        This method retrieves the tickler action comment (notes on the action). A tickler action classifies work that is performed in an effort to resolve a tickler.
        Specified by:
        getActionComment in interface RecordTicklerActionCmd
        Returns:
        the tickler action comment.
      • setActionComment

        public void setActionComment(java.lang.String astrComment)
        This method sets the tickler action comment (notes on the action). A tickler action classifies work that is performed in an effort to resolve a tickler.
        Specified by:
        setActionComment in interface RecordTicklerActionCmd
        Parameters:
        astrComment - tickler action comment.
      • getTicklerActionId

        public java.lang.Integer getTicklerActionId()
        This method retrieves the tickler action code. A tickler action classifies work that is performed in an effort to resolve a tickler.
        Specified by:
        getTicklerActionId in interface RecordTicklerActionCmd
        Returns:
        the tickler action code.
      • setTicklerActionId

        public void setTicklerActionId(java.lang.Integer anTicklerActionId)
        This method sets the tickler action code. A tickler action classifies work that is performed in an effort to resolve a tickler.
        Specified by:
        setTicklerActionId in interface RecordTicklerActionCmd
        Parameters:
        anTicklerActionId - tickler action code.
      • getActionDate

        public java.sql.Timestamp getActionDate()
        This method is used to retrieve the timestamp of the tickler action.
        Specified by:
        getActionDate in interface RecordTicklerActionCmd
        Returns:
        the timestamp of the tickler action.
      • setActionDate

        public void setActionDate(java.sql.Timestamp anActionDate)
        This method sets the timestamp of the tickler action.
        Specified by:
        setActionDate in interface RecordTicklerActionCmd
        Parameters:
        anActionDate - timestamp of the tickler action.
      • getAssignToMemberId

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

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

        public boolean getUnassigned()
        This method returns a boolean flag that determines whether the tickler is to be assigned to a member or not.
        Specified by:
        getUnassigned in interface RecordTicklerActionCmd
        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 or not.
        Specified by:
        setUnassigned in interface RecordTicklerActionCmd
        Parameters:
        inUnassignedValue - true if the tickler is not to be assigned; false otherwise.
      • updateTickler

        public void updateTickler(java.lang.Long ticklerId,
                                  java.sql.Timestamp remindOnDate,
                                  java.lang.Short status,
                                  boolean unassigned,
                                  java.lang.Long assignToMember)
                           throws ECException
        This method is used to update an existing tickler.
        Parameters:
        ticklerId - the identifier of the tickler to be updated.
        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 assignToMember will be ignored; false otherwise.
        assignToMember - the ID of the CSR to whom this tickler is to be assigned.
        Throws:
        ECException
      • reset

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