com.ibm.commerce.tickler.commands

Class TicklerLockCmdImpl

  • All Implemented Interfaces:
    AccCommand, com.ibm.commerce.command.CacheableECCommand, ControllerCommand, ECCommand, ECTargetableCommand, TaskCommand, Protectable, TicklerLockCmd, 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 TicklerLockCmdImpl
    extends ControllerCommandImpl
    implements TicklerLockCmd
    The class TicklerLockCmdImpl locks a tickler when a CSR is working on it.

    Mandatory parameters: ticklerId, URL

    Behavior:

    1. Checks if the supplied tickler ID is valid and the tickler is not locked by another CSR.
    2. Checks if the tickler is open.
    3. Calls the LockTickler task command to lock the tickler.

    Exceptional conditions:

    • No tickler ID is supplied.
    • The tickler has been closed.
    • The tickler is already locked by another CSR.
    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

      • TicklerLockCmdImpl

        public TicklerLockCmdImpl()
    • Method Detail

      • getURL

        public java.lang.String getURL()
        This method retrieves the redirect URL.
        Returns:
        the redirect URL
      • setURL

        public void setURL(java.lang.String astrURL)
        This method sets the redirect URL.
        Parameters:
        astrURL - redirect URL.
      • getTicklerId

        public java.lang.Long getTicklerId()
        This method retrieves the tickler identifier. Tickler id is the unique number to identify the to-do item.
        Returns:
        the tickler identifier.
      • setTicklerId

        public void setTicklerId(java.lang.Long anTicklerId)
        This method sets the tickler identifier. Tickler id is the unique number to identify the to-do item.
        Parameters:
        anTicklerId - tickler identifier.
      • 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