Class CmsPublishLockChecker


  • public class CmsPublishLockChecker
    extends java.lang.Object
    Helper class for periodically checking a set of elements for publish locks and then reloading the corresponding elements when they are no longer locked.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DELAY
      The delay between to publish lock checks.
      protected boolean m_active
      True if we are currently checking for locks.
      protected CmsContainerpageController m_controller
      The container page controller.
      protected java.util.Set<org.opencms.util.CmsUUID> m_toCheck
      The ids to check .
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addIdsToCheck​(java.util.Set<org.opencms.util.CmsUUID> ids)
      Adds a set of element ids which should be checked for publish locks.
      protected void processCheckResult​(java.util.Set<org.opencms.util.CmsUUID> locked)
      Processes the results of the publish lock check RPC call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addIdsToCheck

        public void addIdsToCheck​(java.util.Set<org.opencms.util.CmsUUID> ids)
        Adds a set of element ids which should be checked for publish locks.
        Parameters:
        ids - the ids which should be checked
      • processCheckResult

        protected void processCheckResult​(java.util.Set<org.opencms.util.CmsUUID> locked)
        Processes the results of the publish lock check RPC call.
        Parameters:
        locked - the remaining ids of elements with a publish lock