Class RemoveItemsCronJob

All Implemented Interfaces:
Serializable, Comparable

public class RemoveItemsCronJob extends GeneratedRemoveItemsCronJob
CronJob Implementation for asynchronous Item removal.
Since:
2.20
See Also:
  • Constructor Details

    • RemoveItemsCronJob

      public RemoveItemsCronJob()
  • Method Details

    • remove

      public void remove(SessionContext ctx) throws ConsistencyCheckException
      Description copied from class: Item
      Removes this item.

      This method is using the following attributes of the given SessionContext:

      CacheUsage   Language   StagingMethod
      n/a (this is a setter method)   no, language doesn't matter for removal   yes if called on a StageableItem, no otherwise


      Overrides:
      remove in class CronJob
      Parameters:
      ctx - A SessionContext object
      Throws:
      ConsistencyCheckException - if this item could not be removed for some reason
    • setItemsFound

      public void setItemsFound(int param)
      Save number of found (and to deleting) items.
      Overrides:
      setItemsFound in class GeneratedRemoveItemsCronJob
      Parameters:
      param -
    • setItemsDeleted

      public void setItemsDeleted(int param)
      Save number of already deleted items.
      Overrides:
      setItemsDeleted in class GeneratedRemoveItemsCronJob
      Parameters:
      param -
    • setItemsRefused

      public void setItemsRefused(int param)
      Save number of items which can't be deleted.
      Overrides:
      setItemsRefused in class GeneratedRemoveItemsCronJob
      Parameters:
      param -
    • resetItemsCounter

      public void resetItemsCounter()
      Resets the counter for deleted an refused items.