I think this should rather be implemented based on permissions. An administrator session would then be able to unlock a node even though it does not have the lock token attached to the session.

so, we'd add a permission to AccessManager:

    /**
     * BREAK_LOCK permission constant
     */
    int BREAK_LOCK = 8;

regards
 marcel

Paco Avila wrote:
For admin purpouse, should be nice get a list of all locked documents in
the repository (or get the lock tokens). I've looking across the source
and this is the var I need (I think):

/**
 * Path map containing all locks at the leaves.
 */
 private final PathMap lockMap = new PathMap();


This "lockMap" should be expossed throght a public method to be
available for me.
The other option is to read the "workspace/xxx/locks" file, but seems to
be a bit ugly.

Reply via email to