public class LockTokenMapper extends Object
The following notations are used:
opaquelocktoken:SESSIONSCOPED:NODEIDENTIFIER opaquelocktoken:OPENSCOPED:JCRLOCKTOKENThe first format is used if the JCR lock does not reveal a lock token, such as when it is a session-scoped lock (where SESSIONSCOPED is a constant UUID defined below, and NODEIDENTIFIER is the suitably escaped JCR Node identifier).
The second format is used for open-scoped locks (where OPENSCOPED is another constant UUID defined below, and JCRLOCKTOKEN is the suitably escaped JCR lock token).
Constructor and Description |
---|
LockTokenMapper() |
Modifier and Type | Method and Description |
---|---|
static String |
getDavLocktoken(javax.jcr.lock.Lock lock) |
static String |
getJcrLockToken(String token) |
static boolean |
isForSessionScopedLock(String token) |
public static String getDavLocktoken(javax.jcr.lock.Lock lock) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static String getJcrLockToken(String token) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static boolean isForSessionScopedLock(String token)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.