{"action":"created","comment":{"url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/comments/24664866","id":24664866,"diff_hunk":"@@ -0,0 +1,36 @@\n+package org.softserveinc.converters;\n+\n+\n+import org.softserveinc.domain.Bookmark;\n+import org.softserveinc.domain.BookmarkReference;\n+import org.softserveinc.service.BookmarkService;\n+import org.softserveinc.util.ReferenceType;\n+import org.softserveinc.util.json.AbstractJsonObject;\n+\n+import java.util.List;\n+import java.util.Map;\n+\n+public abstract class AbstractJsonBuilder {\n+    BookmarkService bookmarkService;\n+    List<BookmarkReference> bookmarkReferences;\n+    Map<Integer, Bookmark> mapOfIdsAndBookmarks;\n+\n+    void setBookmarkService(BookmarkService bookmarkService){\n+        this.bookmarkService = bookmarkService;\n+    }\n+\n+    void setMapOfIdsAndBookmarks(){\n+        mapOfIdsAndBookmarks = bookmarkService.getMapOfIdsAndBookmarks(bookmarkReferences);\n+    }\n+\n+    void setBookmarkReferencesByOwnerId(ReferenceType owner, String referenceId){","path":"src/main/java/org/softserveinc/converters/AbstractJsonBuilder.java","position":26,"original_position":26,"commit_id":"b809fac4b45012aab46a837b40f8168cbeb7a5ee","original_commit_id":"b809fac4b45012aab46a837b40f8168cbeb7a5ee","user":{"login":"amandziy","id":1485625,"avatar_url":"https://avatars.githubusercontent.com/u/1485625?v=3","gravatar_id":"","url":"https://api.github.com/users/amandziy","html_url":"https://github.com/amandziy","followers_url":"https://api.github.com/users/amandziy/followers","following_url":"https://api.github.com/users/amandziy/following{/other_user}","gists_url":"https://api.github.com/users/amandziy/gists{/gist_id}","starred_url":"https://api.github.com/users/amandziy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amandziy/subscriptions","organizations_url":"https://api.github.com/users/amandziy/orgs","repos_url":"https://api.github.com/users/amandziy/repos","events_url":"https://api.github.com/users/amandziy/events{/privacy}","received_events_url":"https://api.github.com/users/amandziy/received_events","type":"User","site_admin":false},"body":"*_ownerReferenceType_","created_at":"2015-02-13T13:54:56Z","updated_at":"2015-02-13T13:54:56Z","html_url":"https://github.com/amandziy/BookmarkShareTool/pull/28#discussion_r24664866","pull_request_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/comments/24664866"},"html":{"href":"https://github.com/amandziy/BookmarkShareTool/pull/28#discussion_r24664866"},"pull_request":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28","id":28957100,"html_url":"https://github.com/amandziy/BookmarkShareTool/pull/28","diff_url":"https://github.com/amandziy/BookmarkShareTool/pull/28.diff","patch_url":"https://github.com/amandziy/BookmarkShareTool/pull/28.patch","issue_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues/28","number":28,"state":"open","locked":false,"title":"refactoring after adding new functionality","user":{"login":"KushnirykOleh","id":9840368,"avatar_url":"https://avatars.githubusercontent.com/u/9840368?v=3","gravatar_id":"","url":"https://api.github.com/users/KushnirykOleh","html_url":"https://github.com/KushnirykOleh","followers_url":"https://api.github.com/users/KushnirykOleh/followers","following_url":"https://api.github.com/users/KushnirykOleh/following{/other_user}","gists_url":"https://api.github.com/users/KushnirykOleh/gists{/gist_id}","starred_url":"https://api.github.com/users/KushnirykOleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KushnirykOleh/subscriptions","organizations_url":"https://api.github.com/users/KushnirykOleh/orgs","repos_url":"https://api.github.com/users/KushnirykOleh/repos","events_url":"https://api.github.com/users/KushnirykOleh/events{/privacy}","received_events_url":"https://api.github.com/users/KushnirykOleh/received_events","type":"User","site_admin":false},"body":"1) Organize imports\r\n2)Change @Autowired to @Inject\r\n3)Delete useless @Component\r\n4)Move creating json to builders, refactor json creating scope","created_at":"2015-02-09T21:15:19Z","updated_at":"2015-02-13T13:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ed6444abbcf3489af020751020c3860f4f4ab87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28/commits","review_comments_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28/comments","review_comment_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/comments/{number}","comments_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues/28/comments","statuses_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/statuses/b809fac4b45012aab46a837b40f8168cbeb7a5ee","head":{"label":"KushnirykOleh:ChromeJson","ref":"ChromeJson","sha":"b809fac4b45012aab46a837b40f8168cbeb7a5ee","user":{"login":"KushnirykOleh","id":9840368,"avatar_url":"https://avatars.githubusercontent.com/u/9840368?v=3","gravatar_id":"","url":"https://api.github.com/users/KushnirykOleh","html_url":"https://github.com/KushnirykOleh","followers_url":"https://api.github.com/users/KushnirykOleh/followers","following_url":"https://api.github.com/users/KushnirykOleh/following{/other_user}","gists_url":"https://api.github.com/users/KushnirykOleh/gists{/gist_id}","starred_url":"https://api.github.com/users/KushnirykOleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KushnirykOleh/subscriptions","organizations_url":"https://api.github.com/users/KushnirykOleh/orgs","repos_url":"https://api.github.com/users/KushnirykOleh/repos","events_url":"https://api.github.com/users/KushnirykOleh/events{/privacy}","received_events_url":"https://api.github.com/users/KushnirykOleh/received_events","type":"User","site_admin":false},"repo":{"id":27387505,"name":"BookmarkShareTool","full_name":"KushnirykOleh/BookmarkShareTool","owner":{"login":"KushnirykOleh","id":9840368,"avatar_url":"https://avatars.githubusercontent.com/u/9840368?v=3","gravatar_id":"","url":"https://api.github.com/users/KushnirykOleh","html_url":"https://github.com/KushnirykOleh","followers_url":"https://api.github.com/users/KushnirykOleh/followers","following_url":"https://api.github.com/users/KushnirykOleh/following{/other_user}","gists_url":"https://api.github.com/users/KushnirykOleh/gists{/gist_id}","starred_url":"https://api.github.com/users/KushnirykOleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KushnirykOleh/subscriptions","organizations_url":"https://api.github.com/users/KushnirykOleh/orgs","repos_url":"https://api.github.com/users/KushnirykOleh/repos","events_url":"https://api.github.com/users/KushnirykOleh/events{/privacy}","received_events_url":"https://api.github.com/users/KushnirykOleh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KushnirykOleh/BookmarkShareTool","description":"App to manage and share bookmarks","fork":true,"url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool","forks_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/forks","keys_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/teams","hooks_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/hooks","issue_events_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/issues/events{/number}","events_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/events","assignees_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/assignees{/user}","branches_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/branches{/branch}","tags_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/tags","blobs_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/git/refs{/sha}","trees_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/statuses/{sha}","languages_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/languages","stargazers_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/stargazers","contributors_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/contributors","subscribers_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/subscribers","subscription_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/subscription","commits_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/commits{/sha}","git_commits_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/git/commits{/sha}","comments_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/comments{/number}","issue_comment_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/issues/comments/{number}","contents_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/contents/{+path}","compare_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/merges","archive_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/downloads","issues_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/issues{/number}","pulls_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/pulls{/number}","milestones_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/milestones{/number}","notifications_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/labels{/name}","releases_url":"https://api.github.com/repos/KushnirykOleh/BookmarkShareTool/releases{/id}","created_at":"2014-12-01T16:12:37Z","updated_at":"2014-12-12T14:20:07Z","pushed_at":"2015-02-09T21:12:17Z","git_url":"git://github.com/KushnirykOleh/BookmarkShareTool.git","ssh_url":"git@github.com:KushnirykOleh/BookmarkShareTool.git","clone_url":"https://github.com/KushnirykOleh/BookmarkShareTool.git","svn_url":"https://github.com/KushnirykOleh/BookmarkShareTool","homepage":"","size":621,"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":"amandziy:master","ref":"master","sha":"c6000ed814e346124506551a1322d5466f8629d3","user":{"login":"amandziy","id":1485625,"avatar_url":"https://avatars.githubusercontent.com/u/1485625?v=3","gravatar_id":"","url":"https://api.github.com/users/amandziy","html_url":"https://github.com/amandziy","followers_url":"https://api.github.com/users/amandziy/followers","following_url":"https://api.github.com/users/amandziy/following{/other_user}","gists_url":"https://api.github.com/users/amandziy/gists{/gist_id}","starred_url":"https://api.github.com/users/amandziy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amandziy/subscriptions","organizations_url":"https://api.github.com/users/amandziy/orgs","repos_url":"https://api.github.com/users/amandziy/repos","events_url":"https://api.github.com/users/amandziy/events{/privacy}","received_events_url":"https://api.github.com/users/amandziy/received_events","type":"User","site_admin":false},"repo":{"id":27385748,"name":"BookmarkShareTool","full_name":"amandziy/BookmarkShareTool","owner":{"login":"amandziy","id":1485625,"avatar_url":"https://avatars.githubusercontent.com/u/1485625?v=3","gravatar_id":"","url":"https://api.github.com/users/amandziy","html_url":"https://github.com/amandziy","followers_url":"https://api.github.com/users/amandziy/followers","following_url":"https://api.github.com/users/amandziy/following{/other_user}","gists_url":"https://api.github.com/users/amandziy/gists{/gist_id}","starred_url":"https://api.github.com/users/amandziy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amandziy/subscriptions","organizations_url":"https://api.github.com/users/amandziy/orgs","repos_url":"https://api.github.com/users/amandziy/repos","events_url":"https://api.github.com/users/amandziy/events{/privacy}","received_events_url":"https://api.github.com/users/amandziy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amandziy/BookmarkShareTool","description":"App to manage and share bookmarks","fork":false,"url":"https://api.github.com/repos/amandziy/BookmarkShareTool","forks_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/forks","keys_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/teams","hooks_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/hooks","issue_events_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues/events{/number}","events_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/events","assignees_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/assignees{/user}","branches_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/branches{/branch}","tags_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/tags","blobs_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/git/refs{/sha}","trees_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/statuses/{sha}","languages_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/languages","stargazers_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/stargazers","contributors_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/contributors","subscribers_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/subscribers","subscription_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/subscription","commits_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/commits{/sha}","git_commits_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/git/commits{/sha}","comments_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/comments{/number}","issue_comment_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues/comments/{number}","contents_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/contents/{+path}","compare_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/merges","archive_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/downloads","issues_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues{/number}","pulls_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls{/number}","milestones_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/milestones{/number}","notifications_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/labels{/name}","releases_url":"https://api.github.com/repos/amandziy/BookmarkShareTool/releases{/id}","created_at":"2014-12-01T15:32:54Z","updated_at":"2015-02-13T13:25:04Z","pushed_at":"2015-02-13T13:25:03Z","git_url":"git://github.com/amandziy/BookmarkShareTool.git","ssh_url":"git@github.com:amandziy/BookmarkShareTool.git","clone_url":"https://github.com/amandziy/BookmarkShareTool.git","svn_url":"https://github.com/amandziy/BookmarkShareTool","homepage":"","size":860,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28"},"html":{"href":"https://github.com/amandziy/BookmarkShareTool/pull/28"},"issue":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues/28"},"comments":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/amandziy/BookmarkShareTool/statuses/b809fac4b45012aab46a837b40f8168cbeb7a5ee"}}}}