stable

Clone or download

Read-only

Merge remote-tracking branch 'gerrit/7688_version_docman_links' into tuleap-stable-master

* gerrit/7688_version_docman_links: Fix index of approval tables Refactor approval tables Add support for approval tables story #7688: update via SOAP creates a new version story #7688: fulltext search event for link update story #7688: adding version on link creation (with SOAP example) story #7688: be able to add a new version of a link in the UI story #7688: showing all current link documents as if they were the first version Change-Id: Ie8bdc1dc185044fc4cc02758a5381eda2b0dd23a

Modified Files

Name
M plugins/docman/db/install.sql +14 −0 Go to diff View file
A plugins/docman/db/mysql/updates/2014/201416121631_add_link_version_table.php +61 −0 Go to diff View file
M plugins/docman/db/uninstall.sql +1 −0 Go to diff View file
R plugins/docman/include/Docman_ApprovalTable.class.php Go to diff View file
A plugins/docman/include/ApprovalTable/Dao.class.php +176 −0 Go to diff View file
R plugins/docman/include/Docman_ApprovalTableFactoriesFactory.class.php Go to diff View file
A plugins/docman/include/ApprovalTable/Factory.class.php +209 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/File/File.class.php +39 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/File/FileDao.class.php +53 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/File/FileFactory.class.php +125 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Item/Item.class.php +38 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Item/ItemFactory.class.php +78 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Link/Link.class.php +43 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Link/LinkDao.class.php +53 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Link/LinkFactory.class.php +117 −0 Go to diff View file
R plugins/docman/include/Docman_ApprovalTableNotificationCycle.class.php Go to diff View file
R plugins/docman/include/Docman_ApprovalTableReminder.class.php Go to diff View file
R plugins/docman/include/Docman_ApprovalTableReviewer.class.php Go to diff View file
R plugins/docman/include/Docman_ApprovalTableReviewerDao.class.php Go to diff View file
R plugins/docman/include/Docman_ApprovalTableReviewerFactory.class.php Go to diff View file
A plugins/docman/include/ApprovalTable/Versionned/Versionned.class.php +33 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Versionned/VersionnedFactory.class.php +159 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Wiki/Wiki.class.php +52 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Wiki/WikiDao.class.php +128 −0 Go to diff View file
A plugins/docman/include/ApprovalTable/Wiki/WikiFactory.class.php +138 −0 Go to diff View file
M plugins/docman/include/Docman_Actions.class.php +96 −59 Go to diff View file
D plugins/docman/include/Docman_ApprovalTableDao.class.php +0 −344 Go to diff View file
D plugins/docman/include/Docman_ApprovalTableFactory.class.php +0 −660 Go to diff View file
M plugins/docman/include/Docman_ItemDao.class.php +29 −15 Go to diff View file
M plugins/docman/include/Docman_ItemFactory.class.php +37 −1 Go to diff View file
M plugins/docman/include/Docman_Link.class.php +10 −4 Go to diff View file
A plugins/docman/include/Docman_LinkVersion.class.php +114 −0 Go to diff View file
A plugins/docman/include/Docman_LinkVersionDao.class.php +76 −0 Go to diff View file
A plugins/docman/include/Docman_LinkVersionFactory.class.php +74 −0 Go to diff View file
M plugins/docman/include/Docman_SqlFilter.class.php +1 −1 Go to diff View file
M plugins/docman/include/Docman_Widget_MyDocman.class.php +0 −5 Go to diff View file
M plugins/docman/include/Docman_Widget_MyDocmanSearch.class.php +0 −6 Go to diff View file
M plugins/docman/include/autoload.php +27 −22 Go to diff View file
M plugins/docman/include/constants.php +24 −0 Go to diff View file
M plugins/docman/include/view/Docman_View_GetMenuItemsVisitor.class.php +3 −2 Go to diff View file
M plugins/docman/include/view/Docman_View_ItemDetailsSectionActions.class.php +12 −21 Go to diff View file
M plugins/docman/include/view/Docman_View_ItemDetailsSectionApproval.class.php +0 −5 Go to diff View file
M plugins/docman/include/view/Docman_View_ItemDetailsSectionApprovalCreate.class.php +0 −4 Go to diff View file
M plugins/docman/include/view/Docman_View_ItemDetailsSectionHistory.class.php +120 −64 Go to diff View file
M plugins/docman/include/view/Docman_View_ItemDetailsSectionNewVersion.class.php +8 −1 Go to diff View file
M plugins/docman/include/view/Docman_View_Redirect.class.php +12 −1 Go to diff View file
M plugins/docman/site-content/en_US/docman.tab +1 −0 Go to diff View file
M plugins/docman/site-content/fr_FR/docman.tab +1 −0 Go to diff View file
M plugins/docman/tests/ApprovalTableNotificationCycleTest.php +1 −4 Go to diff View file
M plugins/docman/tests/ApprovalTableTest.php +1 −4 Go to diff View file
M plugins/docman/tests/BuildItemMappingVisitorTest.php +2 −3 Go to diff View file
M plugins/docman/tests/CopyItemsTest.php +24 −26 Go to diff View file
M plugins/docman/tests/DocmanActionsTest.php +9 −18 Go to diff View file
M plugins/docman/tests/Docman_MIMETypeDetectorTest.php +2 −2 Go to diff View file
M plugins/docman/tests/Docman_SOAPActionsTest.php +69 −75 Go to diff View file
M plugins/docman/tests/ErrorPermissionDeniedTest.php +1 −3 Go to diff View file
M plugins/docman/tests/FilterFactoryTest.php +5 −7 Go to diff View file
M plugins/docman/tests/ItemFactoryTest.php +15 −17 Go to diff View file
M plugins/docman/tests/MetadataListOfValuesElementDaoTest.php +11 −15 Go to diff View file
M plugins/docman/tests/MetadataListOfValuesElementFactoryTest.php +13 −16 Go to diff View file
M plugins/docman/tests/MetadataTest.php +25 −204 Go to diff View file
M plugins/docman/tests/NotificationManagerTest.php +4 −14 Go to diff View file
M plugins/docman/tests/NotificationsManager_DeleteTest.php +3 −8 Go to diff View file
M plugins/docman/tests/NotificationsManager_MoveTest.php +33 −44 Go to diff View file
M plugins/docman/tests/PermissionsItemManagerTest.php +1 −6 Go to diff View file
M plugins/docman/tests/PermissionsManagerLockTest.php +15 −19 Go to diff View file
M plugins/docman/tests/PermissionsManagerPerfTest.php +16 −17 Go to diff View file
M plugins/docman/tests/PermissionsManagerTest.php +2 −4 Go to diff View file
M plugins/docman/tests/RenameProjectTest.php +11 −14 Go to diff View file
M plugins/docman/tests/SqlFilterChoiceTest.php +13 −15 Go to diff View file
M plugins/docman/tests/TokenTest.php +41 −45 Go to diff View file
M plugins/docman/tests/VersionFactoryTest.php +5 −7 Go to diff View file
A plugins/docman/tests/bootstrap.php +22 −0 Go to diff View file
M plugins/fulltextsearch/include/FullTextSearch/DocmanSystemEventManager.class.php +16 −3 Go to diff View file
M plugins/fulltextsearch/include/FullTextSearchDocmanActions.class.php +21 −3 Go to diff View file
M plugins/fulltextsearch/include/SystemEvent_FULLTEXTSEARCH_DOCMAN.class.php +15 −4 Go to diff View file
M plugins/fulltextsearch/include/SystemEvent_FULLTEXTSEARCH_DOCMAN_APPROVAL_TABLE_COMMENT.class.php +1 −8 Go to diff View file
A plugins/fulltextsearch/include/SystemEvent_FULLTEXTSEARCH_DOCMAN_UPDATELINK.class.php +42 −0 Go to diff View file
M plugins/fulltextsearch/include/autoload.php +3 −2 Go to diff View file
M plugins/fulltextsearch/include/fulltextsearchPlugin.class.php +11 −2 Go to diff View file
M plugins/fulltextsearch/tests/SystemEvent_FULLTEXTSEARCH_DOCMANTest.class.php +3 −1 Go to diff View file
M plugins/fulltextsearch/tests/SystemEvent_FULLTEXTSEARCH_DOCMAN_WIKI_INDEXTest.php +1 −1 Go to diff View file
M plugins/fulltextsearch/tests/SystemEvent_FULLTEXTSEARCH_DOCMAN_WIKI_UPDATETest.php +1 −1 Go to diff View file
A tools/examples/soap/docman/add_docman_link.php +44 −0 Go to diff View file
A tools/examples/soap/docman/update_docman_link.php +45 −0 Go to diff View file