[ 
https://jira.nuxeo.com/browse/NXP-6054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=88483#action_88483
 ] 

Florent Guillaume edited comment on NXP-6054 at 2/4/11 4:51 PM:
----------------------------------------------------------------

re-cache lock state in DocumentModelImpl for performance
http://hg.nuxeo.org/nuxeo/nuxeo-core/rev/fca1033c314e
http://hg.nuxeo.org/nuxeo/nuxeo-core/rev/6d132b44aeb9


      was (Author: fguillaume):
    re-cache lock state in DocumentModelImpl for performance
http://hg.nuxeo.org/nuxeo/nuxeo-core/rev/fca1033c314e
  
> Better lock format to store user and timestamp; always enforce single locker
> ----------------------------------------------------------------------------
>
>                 Key: NXP-6054
>                 URL: https://jira.nuxeo.com/browse/NXP-6054
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Improvement
>          Components: Core, Core SQL Storage
>    Affects Versions: 5.3.2
>            Reporter: Florent Guillaume
>            Assignee: Florent Guillaume
>            Priority: Major
>             Fix For: 5.4.1
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to