com.ibm.commerce.tickler.commands

Class TicklerUnlockMonitorCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, TicklerUnlockMonitorCmd, 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 TicklerUnlockMonitorCmdImpl
    extends ControllerCommandImpl
    implements TicklerUnlockMonitorCmd
    The class TicklerUnlockMonitorCmdImpl unlocks ticklers that have been locked longer than a specified period of time (for example, four hours).Invoked by a scheduled job.

    Mandatory parameters: storeId

    Optional parameters: inUnlockAfterNumberOfHours, URL

    Behavior:

    1. Finds all ticklers that have been locked longer than the specified period of time.
    2. Calls the UnlockTickler task command to unlock them.

    Exceptional conditions:

    • Store ID is not a valid integer value.
    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

      • TicklerUnlockMonitorCmdImpl

        public TicklerUnlockMonitorCmdImpl()
    • Method Detail

      • getURL

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

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

        public java.lang.Integer getUnlockAfterNumberOfHours()
        This method retrieves the number of hours after which a locked tickler is to be unlocked.
        Returns:
        the number of hours after which a locked tickler is to be unlocked.
      • setUnlockAfterNumberOfHours

        public void setUnlockAfterNumberOfHours(java.lang.Integer anUnlockAfterNumberOfHours)
        This method sets the number of hours after which a locked tickler is to be unlocked.
        Parameters:
        anUnlockAfterNumberOfHours - the number of hours after which a locked tickler is to be unlocked.
      • 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