8.4.13 Session Methods Related to the Lock Token

The Session object provides the following methods for managing lock tokens:

javax.jcr.
Session

void

addLockToken(String lt)

Adds the specified lock token to this session. Holding a lock token allows the Session object of the lock owner to alter nodes that are locked by the lock specified by that particular lock token.

String[]

getLockTokens()

Returns an array containing all lock tokens currently held by this session.

void

removeLockToken(String lt)

Removes the specified lock token from this session.