History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-736
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Bogdan Tatar
Reporter: Thierry Delprat
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

Document Locking

Created: 05/03/07 17:15   Updated: 10/06/08 02:15
Component/s: Security
Affects Version/s: None
Fix Version/s: 5.1 M2

Time Tracking:
Original Estimate: 2 days
Original Estimate - 2 days
Remaining Estimate: 1 week
Time Spent - 4 hours Remaining Estimate - 1 week
Time Spent: 4 hours
Time Spent - 4 hours Remaining Estimate - 1 week

Resolution Date: 06/04/07 11:10
Participants: Bogdan Tatar and Thierry Delprat
Date of First Response: 21/03/07 19:57
Tags:


 Description  « Hide
Integrate Core Locking feature into nuxeo 5.

Basically add a Seam Action Listener that will :
 - provide methods to lock/unlock a document
 - provide methods to lock/unlock the current document (shortcut)
 - provide methods to lock/unlock a list of documents (see later, based on DocumentsListManager)

This AL should be conversation scoped.

1 - First step is to integrate actions lock/unlock on the currentDocument.
You will need to define a new action contribution and define guards on it.
 - document can be locked if user has write acces on the doc + doc is not locked
...
You may have to define methods on the ActionListener that will be called by the action system to check these guards.
Only add the action on non-folderish documents (DENY guard on Facet folderish)


2 - UI
- Integrate into the documents_tables a icon that indicates if a document is locked
- integrate into the summary view the information about lock :
  => if document is locked : display by who and til when

3 - FileManager integration
FileManager is used by the browser plugin and by the Office Plugin

for the Browser Plugin, the FileManager overwrite the document if a file with the same name is already present
=> should check before if document is not locked

for the Office plugin
the plugin ask to the FileManager for pre-edit actions and post-edit
=> lock should be available as pre-edit
=> unlock should be available as post-edit
Should also not render the LiveEdit link on documents that are locked :)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Bogdan Tatar - 21/03/07 19:57
Hi Thierry,

Hope I will be able to start working on this task on Friday if not on Monday 25 for sure.