{"action":"created","comment":{"url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/comments/38617009","id":38617009,"diff_hunk":"@@ -0,0 +1,69 @@\n+/*\n+ * Copyright (C) 2005 - 2014 Jaspersoft Corporation. All rights  reserved.\n+ * http://www.jaspersoft.com.\n+ *\n+ * Unless you have purchased  a commercial license agreement from Jaspersoft,\n+ * the following license terms  apply:\n+ *\n+ * This program is free software: you can redistribute it and/or  modify\n+ * it under the terms of the GNU Affero General Public License  as\n+ * published by the Free Software Foundation, either version 3 of  the\n+ * License, or (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU Affero  General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public  License\n+ * along with this program.&nbsp; If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+package com.jaspersoft.jasperserver.jaxrs.client.apiadapters.bundles;\n+\n+import com.jaspersoft.jasperserver.jaxrs.client.apiadapters.AbstractAdapter;\n+import com.jaspersoft.jasperserver.jaxrs.client.apiadapters.settings.SingleSettingsAdapter;\n+import com.jaspersoft.jasperserver.jaxrs.client.core.JerseyRequest;\n+import com.jaspersoft.jasperserver.jaxrs.client.core.SessionStorage;\n+import com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.handling.DefaultErrorHandler;\n+import com.jaspersoft.jasperserver.jaxrs.client.core.operationresult.OperationResult;\n+import org.codehaus.jettison.json.JSONObject;\n+\n+import javax.ws.rs.core.MediaType;\n+import java.util.Locale;\n+\n+\n+public class BundlesService extends AbstractAdapter {\n+\n+    private Locale locale;\n+\n+    public BundlesService(SessionStorage sessionStorage) {\n+        super(sessionStorage);\n+        this.locale = Locale.getDefault();\n+    }\n+\n+    public BundlesService forLocale(String locale) {\n+        if (locale != null) {\n+            this.locale = new Locale(locale);\n+        }\n+        return this;\n+    }\n+\n+    public OperationResult<JSONObject> bundles() {\n+        return buildBundleRequest(\"/bundles\").addParam(\"expanded\", \"true\").get();\n+    }\n+\n+    public OperationResult<JSONObject> bundles(String name) {","path":"src/main/java/com/jaspersoft/jasperserver/jaxrs/client/apiadapters/bundles/BundlesService.java","position":56,"original_position":56,"commit_id":"16b4261056b26e13e22674a2a633e941460482a6","original_commit_id":"16b4261056b26e13e22674a2a633e941460482a6","user":{"login":"yaroslav-kovalchyk","id":9320045,"avatar_url":"https://avatars.githubusercontent.com/u/9320045?v=3","gravatar_id":"","url":"https://api.github.com/users/yaroslav-kovalchyk","html_url":"https://github.com/yaroslav-kovalchyk","followers_url":"https://api.github.com/users/yaroslav-kovalchyk/followers","following_url":"https://api.github.com/users/yaroslav-kovalchyk/following{/other_user}","gists_url":"https://api.github.com/users/yaroslav-kovalchyk/gists{/gist_id}","starred_url":"https://api.github.com/users/yaroslav-kovalchyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaroslav-kovalchyk/subscriptions","organizations_url":"https://api.github.com/users/yaroslav-kovalchyk/orgs","repos_url":"https://api.github.com/users/yaroslav-kovalchyk/repos","events_url":"https://api.github.com/users/yaroslav-kovalchyk/events{/privacy}","received_events_url":"https://api.github.com/users/yaroslav-kovalchyk/received_events","type":"User","site_admin":false},"body":"I would rename this method to jusut 'bundle'","created_at":"2015-09-03T06:43:47Z","updated_at":"2015-09-03T06:43:47Z","html_url":"https://github.com/Jaspersoft/jrs-rest-java-client/pull/109#discussion_r38617009","pull_request_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/comments/38617009"},"html":{"href":"https://github.com/Jaspersoft/jrs-rest-java-client/pull/109#discussion_r38617009"},"pull_request":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109","id":43982020,"html_url":"https://github.com/Jaspersoft/jrs-rest-java-client/pull/109","diff_url":"https://github.com/Jaspersoft/jrs-rest-java-client/pull/109.diff","patch_url":"https://github.com/Jaspersoft/jrs-rest-java-client/pull/109.patch","issue_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/109","number":109,"state":"open","locked":false,"title":"Added BundlesService support","user":{"login":"TanyaEf","id":8988631,"avatar_url":"https://avatars.githubusercontent.com/u/8988631?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaEf","html_url":"https://github.com/TanyaEf","followers_url":"https://api.github.com/users/TanyaEf/followers","following_url":"https://api.github.com/users/TanyaEf/following{/other_user}","gists_url":"https://api.github.com/users/TanyaEf/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaEf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaEf/subscriptions","organizations_url":"https://api.github.com/users/TanyaEf/orgs","repos_url":"https://api.github.com/users/TanyaEf/repos","events_url":"https://api.github.com/users/TanyaEf/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaEf/received_events","type":"User","site_admin":false},"body":"Added BundlesService support (issue #102), unit and integration tests and updated ReadMe.md","created_at":"2015-09-02T11:45:16Z","updated_at":"2015-09-03T06:43:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5500ca59fd99f0955a6a89f8f54e667124473974","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109/commits","review_comments_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109/comments","review_comment_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/109/comments","statuses_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/statuses/16b4261056b26e13e22674a2a633e941460482a6","head":{"label":"TanyaEf:master","ref":"master","sha":"16b4261056b26e13e22674a2a633e941460482a6","user":{"login":"TanyaEf","id":8988631,"avatar_url":"https://avatars.githubusercontent.com/u/8988631?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaEf","html_url":"https://github.com/TanyaEf","followers_url":"https://api.github.com/users/TanyaEf/followers","following_url":"https://api.github.com/users/TanyaEf/following{/other_user}","gists_url":"https://api.github.com/users/TanyaEf/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaEf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaEf/subscriptions","organizations_url":"https://api.github.com/users/TanyaEf/orgs","repos_url":"https://api.github.com/users/TanyaEf/repos","events_url":"https://api.github.com/users/TanyaEf/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaEf/received_events","type":"User","site_admin":false},"repo":{"id":38879721,"name":"jrs-rest-java-client","full_name":"TanyaEf/jrs-rest-java-client","owner":{"login":"TanyaEf","id":8988631,"avatar_url":"https://avatars.githubusercontent.com/u/8988631?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaEf","html_url":"https://github.com/TanyaEf","followers_url":"https://api.github.com/users/TanyaEf/followers","following_url":"https://api.github.com/users/TanyaEf/following{/other_user}","gists_url":"https://api.github.com/users/TanyaEf/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaEf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaEf/subscriptions","organizations_url":"https://api.github.com/users/TanyaEf/orgs","repos_url":"https://api.github.com/users/TanyaEf/repos","events_url":"https://api.github.com/users/TanyaEf/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaEf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TanyaEf/jrs-rest-java-client","description":"Java Rest Client for JasperReports Server","fork":true,"url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client","forks_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/forks","keys_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/teams","hooks_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/hooks","issue_events_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/issues/events{/number}","events_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/events","assignees_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/assignees{/user}","branches_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/branches{/branch}","tags_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/tags","blobs_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/statuses/{sha}","languages_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/languages","stargazers_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/stargazers","contributors_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/contributors","subscribers_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/subscribers","subscription_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/subscription","commits_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/contents/{+path}","compare_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/merges","archive_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/downloads","issues_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/issues{/number}","pulls_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/pulls{/number}","milestones_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/milestones{/number}","notifications_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/labels{/name}","releases_url":"https://api.github.com/repos/TanyaEf/jrs-rest-java-client/releases{/id}","created_at":"2015-07-10T12:41:11Z","updated_at":"2015-07-10T12:41:14Z","pushed_at":"2015-09-02T12:42:09Z","git_url":"git://github.com/TanyaEf/jrs-rest-java-client.git","ssh_url":"git@github.com:TanyaEf/jrs-rest-java-client.git","clone_url":"https://github.com/TanyaEf/jrs-rest-java-client.git","svn_url":"https://github.com/TanyaEf/jrs-rest-java-client","homepage":null,"size":6092,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"master"}},"base":{"label":"Jaspersoft:master","ref":"master","sha":"ddc91bfeb8fc314ffefea6ab9aea3b4ce172ea68","user":{"login":"Jaspersoft","id":2073963,"avatar_url":"https://avatars.githubusercontent.com/u/2073963?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaspersoft","html_url":"https://github.com/Jaspersoft","followers_url":"https://api.github.com/users/Jaspersoft/followers","following_url":"https://api.github.com/users/Jaspersoft/following{/other_user}","gists_url":"https://api.github.com/users/Jaspersoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaspersoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaspersoft/subscriptions","organizations_url":"https://api.github.com/users/Jaspersoft/orgs","repos_url":"https://api.github.com/users/Jaspersoft/repos","events_url":"https://api.github.com/users/Jaspersoft/events{/privacy}","received_events_url":"https://api.github.com/users/Jaspersoft/received_events","type":"Organization","site_admin":false},"repo":{"id":16914399,"name":"jrs-rest-java-client","full_name":"Jaspersoft/jrs-rest-java-client","owner":{"login":"Jaspersoft","id":2073963,"avatar_url":"https://avatars.githubusercontent.com/u/2073963?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaspersoft","html_url":"https://github.com/Jaspersoft","followers_url":"https://api.github.com/users/Jaspersoft/followers","following_url":"https://api.github.com/users/Jaspersoft/following{/other_user}","gists_url":"https://api.github.com/users/Jaspersoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaspersoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaspersoft/subscriptions","organizations_url":"https://api.github.com/users/Jaspersoft/orgs","repos_url":"https://api.github.com/users/Jaspersoft/repos","events_url":"https://api.github.com/users/Jaspersoft/events{/privacy}","received_events_url":"https://api.github.com/users/Jaspersoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Jaspersoft/jrs-rest-java-client","description":"Java Rest Client for JasperReports Server","fork":false,"url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client","forks_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/forks","keys_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/teams","hooks_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/hooks","issue_events_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/events{/number}","events_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/events","assignees_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/assignees{/user}","branches_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/branches{/branch}","tags_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/tags","blobs_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/languages","stargazers_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/stargazers","contributors_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/contributors","subscribers_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/subscribers","subscription_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/subscription","commits_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/contents/{+path}","compare_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/merges","archive_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/downloads","issues_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues{/number}","pulls_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/labels{/name}","releases_url":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/releases{/id}","created_at":"2014-02-17T13:56:01Z","updated_at":"2015-07-29T10:40:41Z","pushed_at":"2015-09-02T11:45:16Z","git_url":"git://github.com/Jaspersoft/jrs-rest-java-client.git","ssh_url":"git@github.com:Jaspersoft/jrs-rest-java-client.git","clone_url":"https://github.com/Jaspersoft/jrs-rest-java-client.git","svn_url":"https://github.com/Jaspersoft/jrs-rest-java-client","homepage":null,"size":7153,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":29,"forks":22,"open_issues":29,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109"},"html":{"href":"https://github.com/Jaspersoft/jrs-rest-java-client/pull/109"},"issue":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/109"},"comments":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/Jaspersoft/jrs-rest-java-client/statuses/16b4261056b26e13e22674a2a633e941460482a6"}}}}