[ http://jira.nuxeo.org/browse/NXP-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alain Escaffre updated NXP-1632: -------------------------------- Description: For now in Nuxeo when you delete a document, there is no way to recover it from UI. After the realisation of this task, the user will have a "trashcan" or "bin" like he is used to in his OS. The developpements should be done in an external package. Here are the steps : Before reading note : in the following spec, I speak about "File, Note and Folder", ideally the implementation should never refer to this (only of course for the display of the new tab), so that it works for every new tab we create. - a new lifecycle state in the default lifecycle "deleted", this lifecycle state has transition to every sates and vice versa - in the querymodel associated to the listing of a folder content, we add : lifecycle.state<>"deleted" - the deletAction of the content view now behaves like a "sentToTrash" action, that is, it makes the state of the document passed to "deleted". Also, it acts for all the sub-content : if one of the selected documents to "delete" is a folder, all the documents whose path starts with this folder's path should be passed to "deleted" (when type is folder, Note, or File). Rq: the action first test if the transition is possible (by default will be, but there may be the case where the trnasition is not defined), if not it sends a message to user. - there is a new tab for folder, that lists all the first level children (Note, File and Folder) that are at state "deleted". By default, this tab will be displayed only for people having the "Everything" permission on the folder - in this tab, which is a kind of "trash content view", you can select documents, and there are two actions : - undelete : it follow the transition from "deleted" to " draft". This transition is also followed for every sub-content - purge : it really deletes (as today) the document - in the querymodel of the simple search (the righ upper corner search field) also add "livecycle.state <>"deleted" - in the advance search screen, propose a checkbox to specify you also want to search for "deleted" state documents, otherwise it doesn't return the "deleted" state documents - there is in the dasboard a new dashboard : all "my documents" at deleted state. was: For now in Nuxeo when you delete a document, there is no way to recover it from UI. After the realisation of this task, the user will have a "trashcan" or "bin" like he is used to in his OS. Here are the steps : Before reading note : in the following spec, I speak about "File, Note and Folder", ideally the implementation should never refer to this (only of course for the display of the new tab), so that it works for every new tab we create. - a new lifecycle state "deleted" for document types : File, Note, Folder - in the querymodel associated to the listing of a folder content, we add : lifecycle.state<>"deleted" - the deletAction of the content view now behaves like a "sentToTrash" action, that is, it makes the state of the document passed to "deleted". Also, it acts for all the sub-content : : if one of the selected documents to "delete" is a folder, all the documents whose path starts with this folder's path should be passed to "deleted" (when type is folder, Note, or File). - there is a new tab for folder, that lists all the first level children (Note, File and Folder) that are at state "deleted". By default, this tab will be displayed only for people having the "Everything" permission on the folder - in this tab, which is a kind of "trash content view", you can select documents, and there are two actions : - undelete : it follow the transition from "deleted" to " draft". This transition is also followed for every sub-content - purge : it really deletes (as today) the document - in the querymodel of the simple search (the righ upper corner search field) also add "livecycle.state <>"deleted" - in the advance search screen, propose a checkbox to specify you also want to search for "deleted" state documents, otherwise it doesn't return the "deleted" state documents - there is in the dasboard a new dashboard : all "my documents" at deleted state. added the fact that there should be a test to see if the transition is possible else return a message, > Trash management > ---------------- > > Key: NXP-1632 > URL: http://jira.nuxeo.org/browse/NXP-1632 > Project: Nuxeo Enterprise Platform 5 > Issue Type: New Feature > Reporter: Alain Escaffre > Assignee: Narcis Paslaru > Fix For: 5.1.2 > > > For now in Nuxeo when you delete a document, there is no way to recover it > from UI. After the realisation of this task, the user will have a "trashcan" > or "bin" like he is used to in his OS. The developpements should be done in > an external package. Here are the steps : > Before reading note : in the following spec, I speak about "File, Note and > Folder", ideally the implementation should never refer to this (only of > course for the display of the new tab), so that it works for every new tab we > create. > - a new lifecycle state in the default lifecycle "deleted", this lifecycle > state has transition to every sates and vice versa > - in the querymodel associated to the listing of a folder content, we add : > lifecycle.state<>"deleted" > - the deletAction of the content view now behaves like a "sentToTrash" > action, that is, it makes the state of the document passed to "deleted". > Also, it acts for all the sub-content : if one of the selected documents to > "delete" is a folder, all the documents whose path starts with this folder's > path should be passed to "deleted" (when type is folder, Note, or File). Rq: > the action first test if the transition is possible (by default will be, but > there may be the case where the trnasition is not defined), if not it sends a > message to user. > - there is a new tab for folder, that lists all the first level children > (Note, File and Folder) that are at state "deleted". By default, this tab > will be displayed only for people having the "Everything" permission on the > folder > - in this tab, which is a kind of "trash content view", you can select > documents, and there are two actions : > - undelete : it follow the transition from "deleted" to " draft". This > transition is also followed for every sub-content > - purge : it really deletes (as today) the document > - in the querymodel of the simple search (the righ upper corner search field) > also add "livecycle.state <>"deleted" > - in the advance search screen, propose a checkbox to specify you also want > to search for "deleted" state documents, otherwise it doesn't return the > "deleted" state documents > - there is in the dasboard a new dashboard : all "my documents" at deleted > state. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets