Class CmsPublishLockChecker
java.lang.Object
org.opencms.ade.containerpage.client.CmsPublishLockChecker
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
Modifier and TypeFieldDescriptionstatic final int
The delay between to publish lock checks.protected boolean
True if we are currently checking for locks.protected CmsContainerpageController
The container page controller.protected Set<org.opencms.util.CmsUUID>
The ids to check . -
Constructor Summary
ConstructorDescriptionCmsPublishLockChecker
(CmsContainerpageController controller) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIdsToCheck
(Set<org.opencms.util.CmsUUID> ids) Adds a set of element ids which should be checked for publish locks.protected void
processCheckResult
(Set<org.opencms.util.CmsUUID> locked) Processes the results of the publish lock check RPC call.
-
Field Details
-
DELAY
The delay between to publish lock checks.- See Also:
-
m_active
True if we are currently checking for locks. -
m_toCheck
The ids to check . -
m_controller
The container page controller.
-
-
Constructor Details
-
CmsPublishLockChecker
Creates a new instance.- Parameters:
controller
- the container page controller
-
-
Method Details
-
addIdsToCheck
Adds a set of element ids which should be checked for publish locks.- Parameters:
ids
- the ids which should be checked
-
processCheckResult
Processes the results of the publish lock check RPC call.- Parameters:
locked
- the remaining ids of elements with a publish lock
-