{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/andes/pulls/comments/149418480","pull_request_review_id":74807554,"id":149418480,"diff_hunk":"@@ -821,6 +890,148 @@ public void notifySubscriptionFlow(UUID channelId, boolean active, DisruptorEven\n     }\n \n     /**\n+     * Common method to restore a list of messages based on Id to its original queue or a different queue.\n+     *\n+     * @param messageIds             list of messages to be restored\n+     * @param sourceQueue            original destination queue of the messages.\n+     * @param targetQueue            new target destination of the messages.\n+     * @param restoreToOriginalQueue true if the messages need to be restored to their original\n+     *                               queues instead of a single target queue.\n+     * @return int Number of messages that were successfully restored.\n+     * @throws AndesException if the database calls to read/delete the messages/content fails.\n+     */\n+    public int moveMessagesFromDLCToNewDestination(List<Long> messageIds, String sourceQueue, String targetQueue,\n+                                                    boolean restoreToOriginalQueue)\n+            throws AndesException {\n+\n+        //crating an andes channel to move the messages","path":"modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/Andes.java","position":204,"original_position":204,"commit_id":"1ddc31929765d0d3f04564de9e1fe16c396be794","original_commit_id":"1ddc31929765d0d3f04564de9e1fe16c396be794","user":{"login":"a5anka","id":1148405,"avatar_url":"https://avatars3.githubusercontent.com/u/1148405?v=4","gravatar_id":"","url":"https://api.github.com/users/a5anka","html_url":"https://github.com/a5anka","followers_url":"https://api.github.com/users/a5anka/followers","following_url":"https://api.github.com/users/a5anka/following{/other_user}","gists_url":"https://api.github.com/users/a5anka/gists{/gist_id}","starred_url":"https://api.github.com/users/a5anka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a5anka/subscriptions","organizations_url":"https://api.github.com/users/a5anka/orgs","repos_url":"https://api.github.com/users/a5anka/repos","events_url":"https://api.github.com/users/a5anka/events{/privacy}","received_events_url":"https://api.github.com/users/a5anka/received_events","type":"User","site_admin":false},"body":"crating -> creating","created_at":"2017-11-07T16:05:27Z","updated_at":"2017-11-07T16:05:27Z","html_url":"https://github.com/wso2/andes/pull/908#discussion_r149418480","pull_request_url":"https://api.github.com/repos/wso2/andes/pulls/908","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/wso2/andes/pulls/comments/149418480"},"html":{"href":"https://github.com/wso2/andes/pull/908#discussion_r149418480"},"pull_request":{"href":"https://api.github.com/repos/wso2/andes/pulls/908"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/andes/pulls/908","id":126704190,"html_url":"https://github.com/wso2/andes/pull/908","diff_url":"https://github.com/wso2/andes/pull/908.diff","patch_url":"https://github.com/wso2/andes/pull/908.patch","issue_url":"https://api.github.com/repos/wso2/andes/issues/908","number":908,"state":"open","locked":false,"title":"Add methods to support REST API","user":{"login":"malakaganga","id":8380732,"avatar_url":"https://avatars1.githubusercontent.com/u/8380732?v=4","gravatar_id":"","url":"https://api.github.com/users/malakaganga","html_url":"https://github.com/malakaganga","followers_url":"https://api.github.com/users/malakaganga/followers","following_url":"https://api.github.com/users/malakaganga/following{/other_user}","gists_url":"https://api.github.com/users/malakaganga/gists{/gist_id}","starred_url":"https://api.github.com/users/malakaganga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malakaganga/subscriptions","organizations_url":"https://api.github.com/users/malakaganga/orgs","repos_url":"https://api.github.com/users/malakaganga/repos","events_url":"https://api.github.com/users/malakaganga/events{/privacy}","received_events_url":"https://api.github.com/users/malakaganga/received_events","type":"User","site_admin":false},"body":"Add methods to support reroute messages from dlc\r\nto given specific queue in Andes class.","created_at":"2017-06-21T08:19:20Z","updated_at":"2017-11-07T16:05:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bc36bf322cf22775d5683c7363e9ebfc89899df","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/andes/pulls/908/commits","review_comments_url":"https://api.github.com/repos/wso2/andes/pulls/908/comments","review_comment_url":"https://api.github.com/repos/wso2/andes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/andes/issues/908/comments","statuses_url":"https://api.github.com/repos/wso2/andes/statuses/1ddc31929765d0d3f04564de9e1fe16c396be794","head":{"label":"malakaganga:rest_service_added","ref":"rest_service_added","sha":"1ddc31929765d0d3f04564de9e1fe16c396be794","user":{"login":"malakaganga","id":8380732,"avatar_url":"https://avatars1.githubusercontent.com/u/8380732?v=4","gravatar_id":"","url":"https://api.github.com/users/malakaganga","html_url":"https://github.com/malakaganga","followers_url":"https://api.github.com/users/malakaganga/followers","following_url":"https://api.github.com/users/malakaganga/following{/other_user}","gists_url":"https://api.github.com/users/malakaganga/gists{/gist_id}","starred_url":"https://api.github.com/users/malakaganga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malakaganga/subscriptions","organizations_url":"https://api.github.com/users/malakaganga/orgs","repos_url":"https://api.github.com/users/malakaganga/repos","events_url":"https://api.github.com/users/malakaganga/events{/privacy}","received_events_url":"https://api.github.com/users/malakaganga/received_events","type":"User","site_admin":false},"repo":{"id":88505067,"name":"andes","full_name":"malakaganga/andes","owner":{"login":"malakaganga","id":8380732,"avatar_url":"https://avatars1.githubusercontent.com/u/8380732?v=4","gravatar_id":"","url":"https://api.github.com/users/malakaganga","html_url":"https://github.com/malakaganga","followers_url":"https://api.github.com/users/malakaganga/followers","following_url":"https://api.github.com/users/malakaganga/following{/other_user}","gists_url":"https://api.github.com/users/malakaganga/gists{/gist_id}","starred_url":"https://api.github.com/users/malakaganga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malakaganga/subscriptions","organizations_url":"https://api.github.com/users/malakaganga/orgs","repos_url":"https://api.github.com/users/malakaganga/repos","events_url":"https://api.github.com/users/malakaganga/events{/privacy}","received_events_url":"https://api.github.com/users/malakaganga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malakaganga/andes","description":null,"fork":true,"url":"https://api.github.com/repos/malakaganga/andes","forks_url":"https://api.github.com/repos/malakaganga/andes/forks","keys_url":"https://api.github.com/repos/malakaganga/andes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malakaganga/andes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malakaganga/andes/teams","hooks_url":"https://api.github.com/repos/malakaganga/andes/hooks","issue_events_url":"https://api.github.com/repos/malakaganga/andes/issues/events{/number}","events_url":"https://api.github.com/repos/malakaganga/andes/events","assignees_url":"https://api.github.com/repos/malakaganga/andes/assignees{/user}","branches_url":"https://api.github.com/repos/malakaganga/andes/branches{/branch}","tags_url":"https://api.github.com/repos/malakaganga/andes/tags","blobs_url":"https://api.github.com/repos/malakaganga/andes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malakaganga/andes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malakaganga/andes/git/refs{/sha}","trees_url":"https://api.github.com/repos/malakaganga/andes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malakaganga/andes/statuses/{sha}","languages_url":"https://api.github.com/repos/malakaganga/andes/languages","stargazers_url":"https://api.github.com/repos/malakaganga/andes/stargazers","contributors_url":"https://api.github.com/repos/malakaganga/andes/contributors","subscribers_url":"https://api.github.com/repos/malakaganga/andes/subscribers","subscription_url":"https://api.github.com/repos/malakaganga/andes/subscription","commits_url":"https://api.github.com/repos/malakaganga/andes/commits{/sha}","git_commits_url":"https://api.github.com/repos/malakaganga/andes/git/commits{/sha}","comments_url":"https://api.github.com/repos/malakaganga/andes/comments{/number}","issue_comment_url":"https://api.github.com/repos/malakaganga/andes/issues/comments{/number}","contents_url":"https://api.github.com/repos/malakaganga/andes/contents/{+path}","compare_url":"https://api.github.com/repos/malakaganga/andes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malakaganga/andes/merges","archive_url":"https://api.github.com/repos/malakaganga/andes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malakaganga/andes/downloads","issues_url":"https://api.github.com/repos/malakaganga/andes/issues{/number}","pulls_url":"https://api.github.com/repos/malakaganga/andes/pulls{/number}","milestones_url":"https://api.github.com/repos/malakaganga/andes/milestones{/number}","notifications_url":"https://api.github.com/repos/malakaganga/andes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malakaganga/andes/labels{/name}","releases_url":"https://api.github.com/repos/malakaganga/andes/releases{/id}","deployments_url":"https://api.github.com/repos/malakaganga/andes/deployments","created_at":"2017-04-17T12:16:06Z","updated_at":"2017-04-17T12:16:14Z","pushed_at":"2017-10-31T04:09:24Z","git_url":"git://github.com/malakaganga/andes.git","ssh_url":"git@github.com:malakaganga/andes.git","clone_url":"https://github.com/malakaganga/andes.git","svn_url":"https://github.com/malakaganga/andes","homepage":null,"size":69654,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:4.x.x","ref":"4.x.x","sha":"02b2eacae55c1a0a4ac44081aac1f0e24f3a69fa","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":20559270,"name":"andes","full_name":"wso2/andes","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/andes","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/andes","forks_url":"https://api.github.com/repos/wso2/andes/forks","keys_url":"https://api.github.com/repos/wso2/andes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/andes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/andes/teams","hooks_url":"https://api.github.com/repos/wso2/andes/hooks","issue_events_url":"https://api.github.com/repos/wso2/andes/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/andes/events","assignees_url":"https://api.github.com/repos/wso2/andes/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/andes/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/andes/tags","blobs_url":"https://api.github.com/repos/wso2/andes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/andes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/andes/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/andes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/andes/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/andes/languages","stargazers_url":"https://api.github.com/repos/wso2/andes/stargazers","contributors_url":"https://api.github.com/repos/wso2/andes/contributors","subscribers_url":"https://api.github.com/repos/wso2/andes/subscribers","subscription_url":"https://api.github.com/repos/wso2/andes/subscription","commits_url":"https://api.github.com/repos/wso2/andes/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/andes/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/andes/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/andes/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/andes/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/andes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/andes/merges","archive_url":"https://api.github.com/repos/wso2/andes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/andes/downloads","issues_url":"https://api.github.com/repos/wso2/andes/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/andes/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/andes/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/andes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/andes/labels{/name}","releases_url":"https://api.github.com/repos/wso2/andes/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/andes/deployments","created_at":"2014-06-06T10:04:24Z","updated_at":"2017-11-02T05:44:20Z","pushed_at":"2017-11-07T03:11:36Z","git_url":"git://github.com/wso2/andes.git","ssh_url":"git@github.com:wso2/andes.git","clone_url":"https://github.com/wso2/andes.git","svn_url":"https://github.com/wso2/andes","homepage":null,"size":69704,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"archived":false,"open_issues_count":3,"forks":70,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/andes/pulls/908"},"html":{"href":"https://github.com/wso2/andes/pull/908"},"issue":{"href":"https://api.github.com/repos/wso2/andes/issues/908"},"comments":{"href":"https://api.github.com/repos/wso2/andes/issues/908/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/andes/pulls/908/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/andes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/andes/pulls/908/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/andes/statuses/1ddc31929765d0d3f04564de9e1fe16c396be794"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"a5anka"}}