Class LockTokenMapper
- java.lang.Object
-
- org.apache.jackrabbit.webdav.jcr.lock.LockTokenMapper
-
public class LockTokenMapper extends Object
Maps between WebDAV lock tokens and JCR lock tokens.The following notations are used:
opaquelocktoken:SESSIONSCOPED:NODEIDENTIFIER opaquelocktoken:OPENSCOPED:JCRLOCKTOKEN
The 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 Summary
Constructors Constructor Description LockTokenMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getDavLocktoken(Lock lock)
static String
getJcrLockToken(String token)
static boolean
isForSessionScopedLock(String token)
-
-
-
Method Detail
-
getDavLocktoken
public static String getDavLocktoken(Lock lock) throws RepositoryException
- Throws:
RepositoryException
-
getJcrLockToken
public static String getJcrLockToken(String token) throws RepositoryException
- Throws:
RepositoryException
-
isForSessionScopedLock
public static boolean isForSessionScopedLock(String token)
-
-