What is the best way to approach locks (AccessDenied, object has violated one or more lock constraints)?
There are two primary types of locks leveraged by the repository–external and internal. External locks are defined by the JCR specification and allow users to place locks on items to prohibit certain actions from other users. WCM supports only a “write” lock on a per-node basis within the product’s implementation which means that user with the proper permission (PAC Action EDIT (EDITOR role)) can “lock” a node within the system. This “external” lock prohibits any other user from being able to persist changes to that node. In particular to be able to call save on that node alone. Interestingly enough it doesn’t prohibit another user from indirectly modifying the node by operating on its parent (ie: another user could still delete the locked node by deleting its parent node). Internal locks are known as “consistency” locks. These locks are used by the internal implementation to attempt to prohibit situations where merge conflicts or consistency conflicts could be encountered. For instan