{"action":"created","comment":{"url":"https://api.github.com/repos/georchestra/georchestra/pulls/comments/57625243","id":57625243,"diff_hunk":"@@ -0,0 +1,59 @@\n+/*\n+ * Copyright (C) 2009-2016 by the geOrchestra PSC\n+ *\n+ * This file is part of geOrchestra.\n+ *\n+ * geOrchestra is free software: you can redistribute it and/or modify it under\n+ * the terms of the GNU General Public License as published by the Free\n+ * Software Foundation, either version 3 of the License, or (at your option)\n+ * any later version.\n+ *\n+ * geOrchestra is distributed in the hope that it will be useful, but WITHOUT\n+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for\n+ * more details.\n+ *\n+ * You should have received a copy of the GNU General Public License along with\n+ * geOrchestra.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+package org.georchestra.mapfishapp.ws;\n+\n+import org.georchestra.mapfishapp.model.ConnectionPool;\n+\n+/**\n+ * This service handles the storage and the loading of a Filter Encoding file\n+ *\n+ * @author yoann buch  - yoann.buch@gmail.com\n+ * @author jean-denis giguère - jdenisgiguere@gmail.com\n+ *\n+ */\n+\n+public class FEDocService extends A_DocService {\n+\n+    public static final String FILE_EXTENSION = \".xml\";\n+    public static final String MIME_TYPE = \"application/xml\";\n+\n+    public FEDocService(final String tempDir, ConnectionPool pgpool) {\n+        super(FILE_EXTENSION, MIME_TYPE, tempDir, pgpool);\n+    }\n+\n+    /**\n+     * Called before saving the content\n+     * @throws DocServiceException\n+     */\n+    @Override\n+    protected void preSave() throws DocServiceException {\n+\n+    }\n+\n+    /**\n+     * Called right after the loading of the file content\n+     * @throws DocServiceException\n+     */\n+    @Override\n+    protected void postLoad() throws DocServiceException {","path":"mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/FEDocService.java","position":55,"original_position":55,"commit_id":"a40fa9e778088a609c7da191b0e8b7ef2871d875","original_commit_id":"a40fa9e778088a609c7da191b0e8b7ef2871d875","user":{"login":"fvanderbiest","id":265319,"avatar_url":"https://avatars.githubusercontent.com/u/265319?v=3","gravatar_id":"","url":"https://api.github.com/users/fvanderbiest","html_url":"https://github.com/fvanderbiest","followers_url":"https://api.github.com/users/fvanderbiest/followers","following_url":"https://api.github.com/users/fvanderbiest/following{/other_user}","gists_url":"https://api.github.com/users/fvanderbiest/gists{/gist_id}","starred_url":"https://api.github.com/users/fvanderbiest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvanderbiest/subscriptions","organizations_url":"https://api.github.com/users/fvanderbiest/orgs","repos_url":"https://api.github.com/users/fvanderbiest/repos","events_url":"https://api.github.com/users/fvanderbiest/events{/privacy}","received_events_url":"https://api.github.com/users/fvanderbiest/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Document empty method body](https://www.codacy.com/app/francois-vanderbiest/georchestra/file/2316359062/issues/source?bid=3200181&fileBranchId=3202742#l55)","created_at":"2016-03-28T20:08:52Z","updated_at":"2016-03-28T20:08:52Z","html_url":"https://github.com/georchestra/georchestra/pull/1335#discussion_r57625243","pull_request_url":"https://api.github.com/repos/georchestra/georchestra/pulls/1335","_links":{"self":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/comments/57625243"},"html":{"href":"https://github.com/georchestra/georchestra/pull/1335#discussion_r57625243"},"pull_request":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1335"}}},"pull_request":{"url":"https://api.github.com/repos/georchestra/georchestra/pulls/1335","id":64357015,"html_url":"https://github.com/georchestra/georchestra/pull/1335","diff_url":"https://github.com/georchestra/georchestra/pull/1335.diff","patch_url":"https://github.com/georchestra/georchestra/pull/1335.patch","issue_url":"https://api.github.com/repos/georchestra/georchestra/issues/1335","number":1335,"state":"open","locked":false,"title":"Querier : Filters can be saved and loaded to/from XML files","user":{"login":"jdenisgiguere","id":973241,"avatar_url":"https://avatars.githubusercontent.com/u/973241?v=3","gravatar_id":"","url":"https://api.github.com/users/jdenisgiguere","html_url":"https://github.com/jdenisgiguere","followers_url":"https://api.github.com/users/jdenisgiguere/followers","following_url":"https://api.github.com/users/jdenisgiguere/following{/other_user}","gists_url":"https://api.github.com/users/jdenisgiguere/gists{/gist_id}","starred_url":"https://api.github.com/users/jdenisgiguere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdenisgiguere/subscriptions","organizations_url":"https://api.github.com/users/jdenisgiguere/orgs","repos_url":"https://api.github.com/users/jdenisgiguere/repos","events_url":"https://api.github.com/users/jdenisgiguere/events{/privacy}","received_events_url":"https://api.github.com/users/jdenisgiguere/received_events","type":"User","site_admin":false},"body":"We can save or load filters to/from XML files. Buttons are added to the filter builder toolbar to make this available.\r\nSee https://github.com/georchestra/styler/pull/12 for change on the Styler library side.\r\n\r\nThis pull request contains a new Doc Service for OGC Filter Encoding. The `allowSaveFilter` property is set in the querier object. The reference to the styler submodule is updated.\r\n\r\n","created_at":"2016-03-28T18:45:00Z","updated_at":"2016-03-28T20:08:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ec58d473522c06a20301651e194c5aed5d7e37a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/georchestra/georchestra/pulls/1335/commits","review_comments_url":"https://api.github.com/repos/georchestra/georchestra/pulls/1335/comments","review_comment_url":"https://api.github.com/repos/georchestra/georchestra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/georchestra/georchestra/issues/1335/comments","statuses_url":"https://api.github.com/repos/georchestra/georchestra/statuses/a40fa9e778088a609c7da191b0e8b7ef2871d875","head":{"label":"jdenisgiguere:FilterBuilder_save_load","ref":"FilterBuilder_save_load","sha":"a40fa9e778088a609c7da191b0e8b7ef2871d875","user":{"login":"jdenisgiguere","id":973241,"avatar_url":"https://avatars.githubusercontent.com/u/973241?v=3","gravatar_id":"","url":"https://api.github.com/users/jdenisgiguere","html_url":"https://github.com/jdenisgiguere","followers_url":"https://api.github.com/users/jdenisgiguere/followers","following_url":"https://api.github.com/users/jdenisgiguere/following{/other_user}","gists_url":"https://api.github.com/users/jdenisgiguere/gists{/gist_id}","starred_url":"https://api.github.com/users/jdenisgiguere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdenisgiguere/subscriptions","organizations_url":"https://api.github.com/users/jdenisgiguere/orgs","repos_url":"https://api.github.com/users/jdenisgiguere/repos","events_url":"https://api.github.com/users/jdenisgiguere/events{/privacy}","received_events_url":"https://api.github.com/users/jdenisgiguere/received_events","type":"User","site_admin":false},"repo":{"id":53415839,"name":"georchestra","full_name":"jdenisgiguere/georchestra","owner":{"login":"jdenisgiguere","id":973241,"avatar_url":"https://avatars.githubusercontent.com/u/973241?v=3","gravatar_id":"","url":"https://api.github.com/users/jdenisgiguere","html_url":"https://github.com/jdenisgiguere","followers_url":"https://api.github.com/users/jdenisgiguere/followers","following_url":"https://api.github.com/users/jdenisgiguere/following{/other_user}","gists_url":"https://api.github.com/users/jdenisgiguere/gists{/gist_id}","starred_url":"https://api.github.com/users/jdenisgiguere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdenisgiguere/subscriptions","organizations_url":"https://api.github.com/users/jdenisgiguere/orgs","repos_url":"https://api.github.com/users/jdenisgiguere/repos","events_url":"https://api.github.com/users/jdenisgiguere/events{/privacy}","received_events_url":"https://api.github.com/users/jdenisgiguere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jdenisgiguere/georchestra","description":"This is the main geOrchestra Spatial Data Infrastructure repository, which hosts the source code.","fork":true,"url":"https://api.github.com/repos/jdenisgiguere/georchestra","forks_url":"https://api.github.com/repos/jdenisgiguere/georchestra/forks","keys_url":"https://api.github.com/repos/jdenisgiguere/georchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jdenisgiguere/georchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jdenisgiguere/georchestra/teams","hooks_url":"https://api.github.com/repos/jdenisgiguere/georchestra/hooks","issue_events_url":"https://api.github.com/repos/jdenisgiguere/georchestra/issues/events{/number}","events_url":"https://api.github.com/repos/jdenisgiguere/georchestra/events","assignees_url":"https://api.github.com/repos/jdenisgiguere/georchestra/assignees{/user}","branches_url":"https://api.github.com/repos/jdenisgiguere/georchestra/branches{/branch}","tags_url":"https://api.github.com/repos/jdenisgiguere/georchestra/tags","blobs_url":"https://api.github.com/repos/jdenisgiguere/georchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jdenisgiguere/georchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jdenisgiguere/georchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/jdenisgiguere/georchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jdenisgiguere/georchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/jdenisgiguere/georchestra/languages","stargazers_url":"https://api.github.com/repos/jdenisgiguere/georchestra/stargazers","contributors_url":"https://api.github.com/repos/jdenisgiguere/georchestra/contributors","subscribers_url":"https://api.github.com/repos/jdenisgiguere/georchestra/subscribers","subscription_url":"https://api.github.com/repos/jdenisgiguere/georchestra/subscription","commits_url":"https://api.github.com/repos/jdenisgiguere/georchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/jdenisgiguere/georchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/jdenisgiguere/georchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/jdenisgiguere/georchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/jdenisgiguere/georchestra/contents/{+path}","compare_url":"https://api.github.com/repos/jdenisgiguere/georchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jdenisgiguere/georchestra/merges","archive_url":"https://api.github.com/repos/jdenisgiguere/georchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jdenisgiguere/georchestra/downloads","issues_url":"https://api.github.com/repos/jdenisgiguere/georchestra/issues{/number}","pulls_url":"https://api.github.com/repos/jdenisgiguere/georchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/jdenisgiguere/georchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/jdenisgiguere/georchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jdenisgiguere/georchestra/labels{/name}","releases_url":"https://api.github.com/repos/jdenisgiguere/georchestra/releases{/id}","deployments_url":"https://api.github.com/repos/jdenisgiguere/georchestra/deployments","created_at":"2016-03-08T13:50:13Z","updated_at":"2016-03-08T13:50:21Z","pushed_at":"2016-03-28T20:02:31Z","git_url":"git://github.com/jdenisgiguere/georchestra.git","ssh_url":"git@github.com:jdenisgiguere/georchestra.git","clone_url":"https://github.com/jdenisgiguere/georchestra.git","svn_url":"https://github.com/jdenisgiguere/georchestra","homepage":"http://www.georchestra.org/","size":234438,"stargazers_count":0,"watchers_count":0,"language":"Game Maker Language","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"15.12"}},"base":{"label":"georchestra:15.12","ref":"15.12","sha":"53a9aae9aa25367d8fecc36b8190b370b0aa8508","user":{"login":"georchestra","id":773831,"avatar_url":"https://avatars.githubusercontent.com/u/773831?v=3","gravatar_id":"","url":"https://api.github.com/users/georchestra","html_url":"https://github.com/georchestra","followers_url":"https://api.github.com/users/georchestra/followers","following_url":"https://api.github.com/users/georchestra/following{/other_user}","gists_url":"https://api.github.com/users/georchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/georchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georchestra/subscriptions","organizations_url":"https://api.github.com/users/georchestra/orgs","repos_url":"https://api.github.com/users/georchestra/repos","events_url":"https://api.github.com/users/georchestra/events{/privacy}","received_events_url":"https://api.github.com/users/georchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":6066709,"name":"georchestra","full_name":"georchestra/georchestra","owner":{"login":"georchestra","id":773831,"avatar_url":"https://avatars.githubusercontent.com/u/773831?v=3","gravatar_id":"","url":"https://api.github.com/users/georchestra","html_url":"https://github.com/georchestra","followers_url":"https://api.github.com/users/georchestra/followers","following_url":"https://api.github.com/users/georchestra/following{/other_user}","gists_url":"https://api.github.com/users/georchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/georchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georchestra/subscriptions","organizations_url":"https://api.github.com/users/georchestra/orgs","repos_url":"https://api.github.com/users/georchestra/repos","events_url":"https://api.github.com/users/georchestra/events{/privacy}","received_events_url":"https://api.github.com/users/georchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/georchestra/georchestra","description":"This is the main geOrchestra Spatial Data Infrastructure repository, which hosts the source code.","fork":false,"url":"https://api.github.com/repos/georchestra/georchestra","forks_url":"https://api.github.com/repos/georchestra/georchestra/forks","keys_url":"https://api.github.com/repos/georchestra/georchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/georchestra/georchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/georchestra/georchestra/teams","hooks_url":"https://api.github.com/repos/georchestra/georchestra/hooks","issue_events_url":"https://api.github.com/repos/georchestra/georchestra/issues/events{/number}","events_url":"https://api.github.com/repos/georchestra/georchestra/events","assignees_url":"https://api.github.com/repos/georchestra/georchestra/assignees{/user}","branches_url":"https://api.github.com/repos/georchestra/georchestra/branches{/branch}","tags_url":"https://api.github.com/repos/georchestra/georchestra/tags","blobs_url":"https://api.github.com/repos/georchestra/georchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/georchestra/georchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/georchestra/georchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/georchestra/georchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/georchestra/georchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/georchestra/georchestra/languages","stargazers_url":"https://api.github.com/repos/georchestra/georchestra/stargazers","contributors_url":"https://api.github.com/repos/georchestra/georchestra/contributors","subscribers_url":"https://api.github.com/repos/georchestra/georchestra/subscribers","subscription_url":"https://api.github.com/repos/georchestra/georchestra/subscription","commits_url":"https://api.github.com/repos/georchestra/georchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/georchestra/georchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/georchestra/georchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/georchestra/georchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/georchestra/georchestra/contents/{+path}","compare_url":"https://api.github.com/repos/georchestra/georchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/georchestra/georchestra/merges","archive_url":"https://api.github.com/repos/georchestra/georchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/georchestra/georchestra/downloads","issues_url":"https://api.github.com/repos/georchestra/georchestra/issues{/number}","pulls_url":"https://api.github.com/repos/georchestra/georchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/georchestra/georchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/georchestra/georchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/georchestra/georchestra/labels{/name}","releases_url":"https://api.github.com/repos/georchestra/georchestra/releases{/id}","deployments_url":"https://api.github.com/repos/georchestra/georchestra/deployments","created_at":"2012-10-03T20:55:45Z","updated_at":"2016-03-16T15:16:24Z","pushed_at":"2016-03-28T20:02:31Z","git_url":"git://github.com/georchestra/georchestra.git","ssh_url":"git@github.com:georchestra/georchestra.git","clone_url":"https://github.com/georchestra/georchestra.git","svn_url":"https://github.com/georchestra/georchestra","homepage":"http://www.georchestra.org/","size":246351,"stargazers_count":28,"watchers_count":28,"language":"Game Maker Language","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":304,"forks":50,"open_issues":304,"watchers":28,"default_branch":"15.12"}},"_links":{"self":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1335"},"html":{"href":"https://github.com/georchestra/georchestra/pull/1335"},"issue":{"href":"https://api.github.com/repos/georchestra/georchestra/issues/1335"},"comments":{"href":"https://api.github.com/repos/georchestra/georchestra/issues/1335/comments"},"review_comments":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1335/comments"},"review_comment":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1335/commits"},"statuses":{"href":"https://api.github.com/repos/georchestra/georchestra/statuses/a40fa9e778088a609c7da191b0e8b7ef2871d875"}}}}