Currently the lock API is
CoreSession.setLock(DocumentRef docRef, String key)
Where the key is of the form "jdoe" or "jdoe:Nov 29, 2010" and has to be generated by the caller.
Conversely the getLock() API returns a String that has to be parsed if we want to extract the date.
Problems:
- there's many repeated places where date generation/parsing occurs,
- it's not possible to store a precise timestamp.
-> Change the lock API to generate the timestamp automatically, and provide an API that returns it.
Also, store the timestamp in the database in a proper column (with database migration).
- is required by
-
NXP-2149 locked document created with CoreSession.copy(...)
- Resolved
-
NXP-2435 "Privilege 'Write' is not granted to XXXXXX'" for locked documents
- Resolved
-
NXP-6634 Fix NPE on document and session old lock compatibility method
- Resolved
-
NXP-3639 Fix lock/unlock core concurency issue
- Resolved