stable

Clone or download

Read-only

Be able to save the filename pattern via the UI

Part of story #24166 apply a naming pattern on files to enforce a convention Note about Docman_View_Admin_FilenamePattern file: to be able to display the content of the new menu we must name the file with at least Docman_View_XXXXX, if not the file is not imported and the content not displayed :( . How to test: - In Docman admin, go to the new File Pattern tab - Write the wanted pattern and save => If the pattern is invalid, an error is displayed => If the pattern is valid, an info feeback is displayed - Create a new file document or update an existing one. => The new pattern should be applied Change-Id: I5a27d2bb730983eaf360c7de199bdcc69791d326

Modified Files

Name
M plugins/docman/include/Docman_Actions.class.php +21 −1 Go to diff View file
M plugins/docman/include/Docman_Controller.class.php +9 −0 Go to diff View file
A plugins/docman/include/FilenamePattern/FilenamePatternFeedbackHandler.php +50 −0 Go to diff View file
A plugins/docman/include/FilenamePattern/FilenamePatternUpdater.php +41 −0 Go to diff View file
A plugins/docman/include/Settings/DAOSettings.php +29 −0 Go to diff View file
M plugins/docman/include/Settings/SettingsDAO.php +12 −1 Go to diff View file
M plugins/docman/include/docmanPlugin.php +1 −0 Go to diff View file
M plugins/docman/include/view/Admin/AdminView.php +11 −0 Go to diff View file
A plugins/docman/include/view/Docman_View_Admin_FilenamePattern.class.php +78 −0 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +43 −0 Go to diff View file
A plugins/docman/templates/admin/pattern-filename.mustache +51 −0 Go to diff View file
A plugins/docman/tests/unit/FilenamePattern/FilenamePatternFeedbackHandlerTest.php +57 −0 Go to diff View file
A plugins/docman/tests/unit/FilenamePattern/FilenamePatternUpdaterTest.php +52 −0 Go to diff View file
A plugins/docman/tests/unit/Stubs/ResponseFeedbackWrapperStub.php +48 −0 Go to diff View file
A plugins/docman/tests/unit/Stubs/SettingsDAOStub.php +49 −0 Go to diff View file