payload: {"action":"created","comment":{"url":"https://api.github.com/repos/exodev/ecms/pulls/comments/362215668","pull_request_review_id":337376031,"id":362215668,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MjIxNTY2OA==","diff_hunk":"@@ -0,0 +1,137 @@\n+package org.exoplatform.ecm.webui.component.explorer.documents;\n+\n+import java.util.List;\n+import java.util.Map;\n+\n+import javax.jcr.Node;\n+\n+import org.exoplatform.container.component.ComponentPlugin;\n+\n+/**\n+ * Provides APIs to manage document template and editor plugins.\n+ * With these API types, you can:\n+\n+ * <ul>\n+ * <li>Register DocumentTemplatePlugin or DocumentEditorPlugin.</li>\n+ * <li>Get registered DocumentTemplatePlugin or DocumentEditorPlugin.</li>\n+ * <li>Check if any document template plugin is registered</li>\n+ * <li>Get document templates</li>\n+ * <li>Create a new document</li>\n+ * </ul>\n+ * \n+ */\n+public interface NewDocumentService {\n+\n+  /**\n+   * Adds the document template plugin.\n+   *\n+   * @param plugin the plugin\n+   */\n+  void addDocumentTemplatePlugin(ComponentPlugin plugin);\n+\n+  /**\n+   * Adds the document editor plugin.\n+   *\n+   * @param plugin the plugin\n+   */\n+  void addDocumentEditorPlugin(ComponentPlugin plugin);\n+\n+  /**\n+   * Creates the document.\n+   *\n+   * @param currentNode the current node\n+   * @param title the title\n+   * @param template the template\n+   * @return the node\n+   * @throws Exception the exception\n+   */\n+  Node createDocument(Node currentNode, String title, DocumentTemplate template) throws Exception;","path":"core/webui-explorer/src/main/java/org/exoplatform/ecm/webui/component/explorer/documents/NewDocumentService.java","position":48,"original_position":48,"commit_id":"4ed7209872a112f1db96d6d5c44e9d4e269ee15a","original_commit_id":"4ed7209872a112f1db96d6d5c44e9d4e269ee15a","user":{"login":"thomasdelhomenie","id":342645,"node_id":"MDQ6VXNlcjM0MjY0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/342645?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasdelhomenie","html_url":"https://github.com/thomasdelhomenie","followers_url":"https://api.github.com/users/thomasdelhomenie/followers","following_url":"https://api.github.com/users/thomasdelhomenie/following{/other_user}","gists_url":"https://api.github.com/users/thomasdelhomenie/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasdelhomenie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasdelhomenie/subscriptions","organizations_url":"https://api.github.com/users/thomasdelhomenie/orgs","repos_url":"https://api.github.com/users/thomasdelhomenie/repos","events_url":"https://api.github.com/users/thomasdelhomenie/events{/privacy}","received_events_url":"https://api.github.com/users/thomasdelhomenie/received_events","type":"User","site_admin":false},"body":"Why do you say we assume only \"office documents\" ? We can create any document from a template (it is just a copy), for example a txt, a xml, ...\r\n\r\n> Do you find current methods name/signature still good on the new place?\r\n\r\ncreateDocumentFromTemplate sounds good to me. WDYT ?","created_at":"2019-12-31T13:31:16Z","updated_at":"2019-12-31T13:31:16Z","html_url":"https://github.com/exodev/ecms/pull/510#discussion_r362215668","pull_request_url":"https://api.github.com/repos/exodev/ecms/pulls/510","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/exodev/ecms/pulls/comments/362215668"},"html":{"href":"https://github.com/exodev/ecms/pull/510#discussion_r362215668"},"pull_request":{"href":"https://api.github.com/repos/exodev/ecms/pulls/510"}},"in_reply_to_id":362192743},"pull_request":{"url":"https://api.github.com/repos/exodev/ecms/pulls/510","id":353536875,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUzNTM2ODc1","html_url":"https://github.com/exodev/ecms/pull/510","diff_url":"https://github.com/exodev/ecms/pull/510.diff","patch_url":"https://github.com/exodev/ecms/pull/510.patch","issue_url":"https://api.github.com/repos/exodev/ecms/issues/510","number":510,"state":"open","locked":false,"title":"Feature/new document","user":{"login":"VladMartyshevskyi","id":38792173,"node_id":"MDQ6VXNlcjM4NzkyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/38792173?v=4","gravatar_id":"","url":"https://api.github.com/users/VladMartyshevskyi","html_url":"https://github.com/VladMartyshevskyi","followers_url":"https://api.github.com/users/VladMartyshevskyi/followers","following_url":"https://api.github.com/users/VladMartyshevskyi/following{/other_user}","gists_url":"https://api.github.com/users/VladMartyshevskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/VladMartyshevskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladMartyshevskyi/subscriptions","organizations_url":"https://api.github.com/users/VladMartyshevskyi/orgs","repos_url":"https://api.github.com/users/VladMartyshevskyi/repos","events_url":"https://api.github.com/users/VladMartyshevskyi/events{/privacy}","received_events_url":"https://api.github.com/users/VladMartyshevskyi/received_events","type":"User","site_admin":false},"body":"Moved New Document feature from OnlyOffice to ECMS.","created_at":"2019-12-16T12:27:11Z","updated_at":"2019-12-31T13:31:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b17696140681947b462c73eacd3ee98b2d4d39e","assignee":{"login":"VladMartyshevskyi","id":38792173,"node_id":"MDQ6VXNlcjM4NzkyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/38792173?v=4","gravatar_id":"","url":"https://api.github.com/users/VladMartyshevskyi","html_url":"https://github.com/VladMartyshevskyi","followers_url":"https://api.github.com/users/VladMartyshevskyi/followers","following_url":"https://api.github.com/users/VladMartyshevskyi/following{/other_user}","gists_url":"https://api.github.com/users/VladMartyshevskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/VladMartyshevskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladMartyshevskyi/subscriptions","organizations_url":"https://api.github.com/users/VladMartyshevskyi/orgs","repos_url":"https://api.github.com/users/VladMartyshevskyi/repos","events_url":"https://api.github.com/users/VladMartyshevskyi/events{/privacy}","received_events_url":"https://api.github.com/users/VladMartyshevskyi/received_events","type":"User","site_admin":false},"assignees":[{"login":"VladMartyshevskyi","id":38792173,"node_id":"MDQ6VXNlcjM4NzkyMTcz","avatar_url":"https://avatars2.githubusercontent.com/u/38792173?v=4","gravatar_id":"","url":"https://api.github.com/users/VladMartyshevskyi","html_url":"https://github.com/VladMartyshevskyi","followers_url":"https://api.github.com/users/VladMartyshevskyi/followers","following_url":"https://api.github.com/users/VladMartyshevskyi/following{/other_user}","gists_url":"https://api.github.com/users/VladMartyshevskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/VladMartyshevskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladMartyshevskyi/subscriptions","organizations_url":"https://api.github.com/users/VladMartyshevskyi/orgs","repos_url":"https://api.github.com/users/VladMartyshevskyi/repos","events_url":"https://api.github.com/users/VladMartyshevskyi/events{/privacy}","received_events_url":"https://api.github.com/users/VladMartyshevskyi/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/exodev/ecms/pulls/510/commits","review_comments_url":"https://api.github.com/repos/exodev/ecms/pulls/510/comments","review_comment_url":"https://api.github.com/repos/exodev/ecms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exodev/ecms/issues/510/comments","statuses_url":"https://api.github.com/repos/exodev/ecms/statuses/4ed7209872a112f1db96d6d5c44e9d4e269ee15a","head":{"label":"exodev:feature/newDocument","ref":"feature/newDocument","sha":"4ed7209872a112f1db96d6d5c44e9d4e269ee15a","user":{"login":"exodev","id":1606522,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDY1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1606522?v=4","gravatar_id":"","url":"https://api.github.com/users/exodev","html_url":"https://github.com/exodev","followers_url":"https://api.github.com/users/exodev/followers","following_url":"https://api.github.com/users/exodev/following{/other_user}","gists_url":"https://api.github.com/users/exodev/gists{/gist_id}","starred_url":"https://api.github.com/users/exodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodev/subscriptions","organizations_url":"https://api.github.com/users/exodev/orgs","repos_url":"https://api.github.com/users/exodev/repos","events_url":"https://api.github.com/users/exodev/events{/privacy}","received_events_url":"https://api.github.com/users/exodev/received_events","type":"Organization","site_admin":false},"repo":{"id":4003238,"node_id":"MDEwOlJlcG9zaXRvcnk0MDAzMjM4","name":"ecms","full_name":"exodev/ecms","private":false,"owner":{"login":"exodev","id":1606522,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDY1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1606522?v=4","gravatar_id":"","url":"https://api.github.com/users/exodev","html_url":"https://github.com/exodev","followers_url":"https://api.github.com/users/exodev/followers","following_url":"https://api.github.com/users/exodev/following{/other_user}","gists_url":"https://api.github.com/users/exodev/gists{/gist_id}","starred_url":"https://api.github.com/users/exodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodev/subscriptions","organizations_url":"https://api.github.com/users/exodev/orgs","repos_url":"https://api.github.com/users/exodev/repos","events_url":"https://api.github.com/users/exodev/events{/privacy}","received_events_url":"https://api.github.com/users/exodev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/exodev/ecms","description":"eXo ECMS","fork":true,"url":"https://api.github.com/repos/exodev/ecms","forks_url":"https://api.github.com/repos/exodev/ecms/forks","keys_url":"https://api.github.com/repos/exodev/ecms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exodev/ecms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exodev/ecms/teams","hooks_url":"https://api.github.com/repos/exodev/ecms/hooks","issue_events_url":"https://api.github.com/repos/exodev/ecms/issues/events{/number}","events_url":"https://api.github.com/repos/exodev/ecms/events","assignees_url":"https://api.github.com/repos/exodev/ecms/assignees{/user}","branches_url":"https://api.github.com/repos/exodev/ecms/branches{/branch}","tags_url":"https://api.github.com/repos/exodev/ecms/tags","blobs_url":"https://api.github.com/repos/exodev/ecms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exodev/ecms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exodev/ecms/git/refs{/sha}","trees_url":"https://api.github.com/repos/exodev/ecms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exodev/ecms/statuses/{sha}","languages_url":"https://api.github.com/repos/exodev/ecms/languages","stargazers_url":"https://api.github.com/repos/exodev/ecms/stargazers","contributors_url":"https://api.github.com/repos/exodev/ecms/contributors","subscribers_url":"https://api.github.com/repos/exodev/ecms/subscribers","subscription_url":"https://api.github.com/repos/exodev/ecms/subscription","commits_url":"https://api.github.com/repos/exodev/ecms/commits{/sha}","git_commits_url":"https://api.github.com/repos/exodev/ecms/git/commits{/sha}","comments_url":"https://api.github.com/repos/exodev/ecms/comments{/number}","issue_comment_url":"https://api.github.com/repos/exodev/ecms/issues/comments{/number}","contents_url":"https://api.github.com/repos/exodev/ecms/contents/{+path}","compare_url":"https://api.github.com/repos/exodev/ecms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exodev/ecms/merges","archive_url":"https://api.github.com/repos/exodev/ecms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exodev/ecms/downloads","issues_url":"https://api.github.com/repos/exodev/ecms/issues{/number}","pulls_url":"https://api.github.com/repos/exodev/ecms/pulls{/number}","milestones_url":"https://api.github.com/repos/exodev/ecms/milestones{/number}","notifications_url":"https://api.github.com/repos/exodev/ecms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exodev/ecms/labels{/name}","releases_url":"https://api.github.com/repos/exodev/ecms/releases{/id}","deployments_url":"https://api.github.com/repos/exodev/ecms/deployments","created_at":"2012-04-12T09:40:08Z","updated_at":"2019-12-30T16:48:46Z","pushed_at":"2019-12-30T19:04:40Z","git_url":"git://github.com/exodev/ecms.git","ssh_url":"git@github.com:exodev/ecms.git","clone_url":"https://github.com/exodev/ecms.git","svn_url":"https://github.com/exodev/ecms","homepage":null,"size":246817,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":35,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":14,"open_issues":35,"watchers":3,"default_branch":"develop"}},"base":{"label":"exodev:develop","ref":"develop","sha":"3e57bd5f47a156c595020ecfc3caf3d24144e7ef","user":{"login":"exodev","id":1606522,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDY1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1606522?v=4","gravatar_id":"","url":"https://api.github.com/users/exodev","html_url":"https://github.com/exodev","followers_url":"https://api.github.com/users/exodev/followers","following_url":"https://api.github.com/users/exodev/following{/other_user}","gists_url":"https://api.github.com/users/exodev/gists{/gist_id}","starred_url":"https://api.github.com/users/exodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodev/subscriptions","organizations_url":"https://api.github.com/users/exodev/orgs","repos_url":"https://api.github.com/users/exodev/repos","events_url":"https://api.github.com/users/exodev/events{/privacy}","received_events_url":"https://api.github.com/users/exodev/received_events","type":"Organization","site_admin":false},"repo":{"id":4003238,"node_id":"MDEwOlJlcG9zaXRvcnk0MDAzMjM4","name":"ecms","full_name":"exodev/ecms","private":false,"owner":{"login":"exodev","id":1606522,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDY1MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1606522?v=4","gravatar_id":"","url":"https://api.github.com/users/exodev","html_url":"https://github.com/exodev","followers_url":"https://api.github.com/users/exodev/followers","following_url":"https://api.github.com/users/exodev/following{/other_user}","gists_url":"https://api.github.com/users/exodev/gists{/gist_id}","starred_url":"https://api.github.com/users/exodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exodev/subscriptions","organizations_url":"https://api.github.com/users/exodev/orgs","repos_url":"https://api.github.com/users/exodev/repos","events_url":"https://api.github.com/users/exodev/events{/privacy}","received_events_url":"https://api.github.com/users/exodev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/exodev/ecms","description":"eXo ECMS","fork":true,"url":"https://api.github.com/repos/exodev/ecms","forks_url":"https://api.github.com/repos/exodev/ecms/forks","keys_url":"https://api.github.com/repos/exodev/ecms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exodev/ecms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exodev/ecms/teams","hooks_url":"https://api.github.com/repos/exodev/ecms/hooks","issue_events_url":"https://api.github.com/repos/exodev/ecms/issues/events{/number}","events_url":"https://api.github.com/repos/exodev/ecms/events","assignees_url":"https://api.github.com/repos/exodev/ecms/assignees{/user}","branches_url":"https://api.github.com/repos/exodev/ecms/branches{/branch}","tags_url":"https://api.github.com/repos/exodev/ecms/tags","blobs_url":"https://api.github.com/repos/exodev/ecms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exodev/ecms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exodev/ecms/git/refs{/sha}","trees_url":"https://api.github.com/repos/exodev/ecms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exodev/ecms/statuses/{sha}","languages_url":"https://api.github.com/repos/exodev/ecms/languages","stargazers_url":"https://api.github.com/repos/exodev/ecms/stargazers","contributors_url":"https://api.github.com/repos/exodev/ecms/contributors","subscribers_url":"https://api.github.com/repos/exodev/ecms/subscribers","subscription_url":"https://api.github.com/repos/exodev/ecms/subscription","commits_url":"https://api.github.com/repos/exodev/ecms/commits{/sha}","git_commits_url":"https://api.github.com/repos/exodev/ecms/git/commits{/sha}","comments_url":"https://api.github.com/repos/exodev/ecms/comments{/number}","issue_comment_url":"https://api.github.com/repos/exodev/ecms/issues/comments{/number}","contents_url":"https://api.github.com/repos/exodev/ecms/contents/{+path}","compare_url":"https://api.github.com/repos/exodev/ecms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exodev/ecms/merges","archive_url":"https://api.github.com/repos/exodev/ecms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exodev/ecms/downloads","issues_url":"https://api.github.com/repos/exodev/ecms/issues{/number}","pulls_url":"https://api.github.com/repos/exodev/ecms/pulls{/number}","milestones_url":"https://api.github.com/repos/exodev/ecms/milestones{/number}","notifications_url":"https://api.github.com/repos/exodev/ecms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exodev/ecms/labels{/name}","releases_url":"https://api.github.com/repos/exodev/ecms/releases{/id}","deployments_url":"https://api.github.com/repos/exodev/ecms/deployments","created_at":"2012-04-12T09:40:08Z","updated_at":"2019-12-30T16:48:46Z","pushed_at":"2019-12-30T19:04:40Z","git_url":"git://github.com/exodev/ecms.git","ssh_url":"git@github.com:exodev/ecms.git","clone_url":"https://github.com/exodev/ecms.git","svn_url":"https://github.com/exodev/ecms","homepage":null,"size":246817,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":35,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":14,"open_issues":35,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/exodev/ecms/pulls/510"},"html":{"href":"https://github.com/exodev/ecms/pull/510"},"issue":{"href":"https://api.github.com/repos/exodev/ecms/issues/510"},"comments":{"href":"https://api.github.com/repos/exodev/ecms/issues/510/comments"},"review_comments":{"href":"https://api.github.com/repos/exodev/ecms/pulls/510/comments"},"review_comment":{"href":"https://api.github.com/repos/exodev/ecms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exodev/ecms/pulls/510/commits"},"statuses":{"href":"https://api.github.com/repos/exodev/ecms/statuses/4ed7209872a112f1db96d6d5c44e9d4e269ee15a"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"thomasdelhomenie"}}