{"action":"created","comment":{"url":"https://api.github.com/repos/diging/quadriga/pulls/comments/55849665","id":55849665,"diff_hunk":"@@ -0,0 +1,102 @@\n+package edu.asu.spring.quadriga.web.publicwebsite;\n+\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+import java.util.List;\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.context.annotation.PropertySource;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.ui.Model;\n+import org.springframework.web.bind.annotation.PathVariable;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestMethod;\n+\n+import edu.asu.spring.quadriga.domain.workbench.IProject;\n+import edu.asu.spring.quadriga.exceptions.QuadrigaStorageException;\n+import edu.asu.spring.quadriga.service.workbench.IRetrieveProjectManager;\n+\n+@PropertySource(value = \"classpath:/user.properties\")\n+@Controller\n+/**\n+ * This controller class is responsible for providing views for project blog creation.\n+ *\n+ * @author Pawan Mahalle\n+ *\n+ */\n+public class PublicBlogController {\n+\t@Autowired\n+\tprivate IRetrieveProjectManager projectManager;\n+\n+\tprivate IProject getProjectDetails(String name) throws QuadrigaStorageException {\n+\t\treturn projectManager.getProjectDetailsByUnixName(name);\n+\t}\n+\n+\t/**\n+\t * This method gives the the projectblog\n+\t * \n+\t * @param projectUnixName\n+\t *            The project unix name\n+\t * @param model\n+\t *            Model\n+\t * @return view\n+\t * @throws QuadrigaStorageException\n+\t */\n+\t@RequestMapping(value = \"sites/{projectUnixName}/projectblog\", method = RequestMethod.GET)\n+\tpublic String projectblog(@PathVariable(\"projectUnixName\") String projectUnixName, Model model)\n+\t\t\tthrows QuadrigaStorageException {\n+\t\tIProject project = getProjectDetails(projectUnixName);\n+\n+\t\tif (project == null) {\n+\t\t\treturn \"forbidden\";\n+\t\t}\n+\n+\t\t// Creating Dummy Object\n+\t\tList dummyList = new ArrayList();\n+\t\tHashMap<String, String> map = new HashMap<String, String>();\n+\t\tmap.put(\"title\", \"Article: Apple’s iPhone Blunder\");\n+\t\tmap.put(\"text\",\n+\t\t\t\t\"<b> Can the United States <b> government compel Apple to help break into the phone of Syed Rizwan Farook, who, along with his wife Tafsheen Malil, gunned down fourteen innocent people last December at the Inland Regional Center in San Bernardino? That question has sparked fireworks in recent days. The dispute arises because Apple has equipped its new iPhones with encryption settings that erase the data contained on the phone whenever ten false password entries have been made. It was agreed on all sides that only Apple has the technology that might overcome the encryption device. [...]\");\n+\t\tmap.put(\"date\", \"February 22, 2016\");\n+\t\tmap.put(\"author\", \"Daniel T. Richards \");","path":"Quadriga/src/main/java/edu/asu/spring/quadriga/web/publicwebsite/PublicBlogController.java","position":61,"original_position":61,"commit_id":"c1a021759a6e99692ec5438d8310401ccc2fac86","original_commit_id":"c1a021759a6e99692ec5438d8310401ccc2fac86","user":{"login":"jdamerow","id":8881141,"avatar_url":"https://avatars.githubusercontent.com/u/8881141?v=3","gravatar_id":"","url":"https://api.github.com/users/jdamerow","html_url":"https://github.com/jdamerow","followers_url":"https://api.github.com/users/jdamerow/followers","following_url":"https://api.github.com/users/jdamerow/following{/other_user}","gists_url":"https://api.github.com/users/jdamerow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamerow/subscriptions","organizations_url":"https://api.github.com/users/jdamerow/orgs","repos_url":"https://api.github.com/users/jdamerow/repos","events_url":"https://api.github.com/users/jdamerow/events{/privacy}","received_events_url":"https://api.github.com/users/jdamerow/received_events","type":"User","site_admin":false},"body":"You should probably create a class for this rather than using a hashmap to hold the data you want to display on the page. ","created_at":"2016-03-11T16:09:20Z","updated_at":"2016-03-11T16:09:20Z","html_url":"https://github.com/diging/quadriga/pull/132#discussion_r55849665","pull_request_url":"https://api.github.com/repos/diging/quadriga/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/diging/quadriga/pulls/comments/55849665"},"html":{"href":"https://github.com/diging/quadriga/pull/132#discussion_r55849665"},"pull_request":{"href":"https://api.github.com/repos/diging/quadriga/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/diging/quadriga/pulls/132","id":61314825,"html_url":"https://github.com/diging/quadriga/pull/132","diff_url":"https://github.com/diging/quadriga/pull/132.diff","patch_url":"https://github.com/diging/quadriga/pull/132.patch","issue_url":"https://api.github.com/repos/diging/quadriga/issues/132","number":132,"state":"open","locked":false,"title":"Story/quad 113","user":{"login":"PawanMahalle","id":14005471,"avatar_url":"https://avatars.githubusercontent.com/u/14005471?v=3","gravatar_id":"","url":"https://api.github.com/users/PawanMahalle","html_url":"https://github.com/PawanMahalle","followers_url":"https://api.github.com/users/PawanMahalle/followers","following_url":"https://api.github.com/users/PawanMahalle/following{/other_user}","gists_url":"https://api.github.com/users/PawanMahalle/gists{/gist_id}","starred_url":"https://api.github.com/users/PawanMahalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PawanMahalle/subscriptions","organizations_url":"https://api.github.com/users/PawanMahalle/orgs","repos_url":"https://api.github.com/users/PawanMahalle/repos","events_url":"https://api.github.com/users/PawanMahalle/events{/privacy}","received_events_url":"https://api.github.com/users/PawanMahalle/received_events","type":"User","site_admin":false},"body":"Making a pull request with intermediate modifications at the end of sprint.","created_at":"2016-03-01T21:53:14Z","updated_at":"2016-03-11T16:09:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b080a851cc8dd8feb7ce83e583fb977807898c1e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diging/quadriga/pulls/132/commits","review_comments_url":"https://api.github.com/repos/diging/quadriga/pulls/132/comments","review_comment_url":"https://api.github.com/repos/diging/quadriga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diging/quadriga/issues/132/comments","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/c1a021759a6e99692ec5438d8310401ccc2fac86","head":{"label":"diging:story/QUAD-113","ref":"story/QUAD-113","sha":"c1a021759a6e99692ec5438d8310401ccc2fac86","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32819066,"name":"quadriga","full_name":"diging/quadriga","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/quadriga","description":"","fork":false,"url":"https://api.github.com/repos/diging/quadriga","forks_url":"https://api.github.com/repos/diging/quadriga/forks","keys_url":"https://api.github.com/repos/diging/quadriga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/quadriga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/quadriga/teams","hooks_url":"https://api.github.com/repos/diging/quadriga/hooks","issue_events_url":"https://api.github.com/repos/diging/quadriga/issues/events{/number}","events_url":"https://api.github.com/repos/diging/quadriga/events","assignees_url":"https://api.github.com/repos/diging/quadriga/assignees{/user}","branches_url":"https://api.github.com/repos/diging/quadriga/branches{/branch}","tags_url":"https://api.github.com/repos/diging/quadriga/tags","blobs_url":"https://api.github.com/repos/diging/quadriga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/quadriga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/quadriga/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/quadriga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/quadriga/languages","stargazers_url":"https://api.github.com/repos/diging/quadriga/stargazers","contributors_url":"https://api.github.com/repos/diging/quadriga/contributors","subscribers_url":"https://api.github.com/repos/diging/quadriga/subscribers","subscription_url":"https://api.github.com/repos/diging/quadriga/subscription","commits_url":"https://api.github.com/repos/diging/quadriga/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/quadriga/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/quadriga/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/quadriga/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/quadriga/contents/{+path}","compare_url":"https://api.github.com/repos/diging/quadriga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/quadriga/merges","archive_url":"https://api.github.com/repos/diging/quadriga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/quadriga/downloads","issues_url":"https://api.github.com/repos/diging/quadriga/issues{/number}","pulls_url":"https://api.github.com/repos/diging/quadriga/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/quadriga/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/quadriga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/quadriga/labels{/name}","releases_url":"https://api.github.com/repos/diging/quadriga/releases{/id}","deployments_url":"https://api.github.com/repos/diging/quadriga/deployments","created_at":"2015-03-24T19:05:57Z","updated_at":"2016-03-07T03:29:55Z","pushed_at":"2016-03-11T14:40:58Z","git_url":"git://github.com/diging/quadriga.git","ssh_url":"git@github.com:diging/quadriga.git","clone_url":"https://github.com/diging/quadriga.git","svn_url":"https://github.com/diging/quadriga","homepage":"http://diging.github.io/quadriga/","size":10598,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":12,"forks":2,"open_issues":12,"watchers":3,"default_branch":"develop"}},"base":{"label":"diging:develop","ref":"develop","sha":"c508a7be5aab41b1313ccf47f2f52c0cb06c139f","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32819066,"name":"quadriga","full_name":"diging/quadriga","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/quadriga","description":"","fork":false,"url":"https://api.github.com/repos/diging/quadriga","forks_url":"https://api.github.com/repos/diging/quadriga/forks","keys_url":"https://api.github.com/repos/diging/quadriga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/quadriga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/quadriga/teams","hooks_url":"https://api.github.com/repos/diging/quadriga/hooks","issue_events_url":"https://api.github.com/repos/diging/quadriga/issues/events{/number}","events_url":"https://api.github.com/repos/diging/quadriga/events","assignees_url":"https://api.github.com/repos/diging/quadriga/assignees{/user}","branches_url":"https://api.github.com/repos/diging/quadriga/branches{/branch}","tags_url":"https://api.github.com/repos/diging/quadriga/tags","blobs_url":"https://api.github.com/repos/diging/quadriga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/quadriga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/quadriga/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/quadriga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/quadriga/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/quadriga/languages","stargazers_url":"https://api.github.com/repos/diging/quadriga/stargazers","contributors_url":"https://api.github.com/repos/diging/quadriga/contributors","subscribers_url":"https://api.github.com/repos/diging/quadriga/subscribers","subscription_url":"https://api.github.com/repos/diging/quadriga/subscription","commits_url":"https://api.github.com/repos/diging/quadriga/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/quadriga/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/quadriga/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/quadriga/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/quadriga/contents/{+path}","compare_url":"https://api.github.com/repos/diging/quadriga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/quadriga/merges","archive_url":"https://api.github.com/repos/diging/quadriga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/quadriga/downloads","issues_url":"https://api.github.com/repos/diging/quadriga/issues{/number}","pulls_url":"https://api.github.com/repos/diging/quadriga/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/quadriga/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/quadriga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/quadriga/labels{/name}","releases_url":"https://api.github.com/repos/diging/quadriga/releases{/id}","deployments_url":"https://api.github.com/repos/diging/quadriga/deployments","created_at":"2015-03-24T19:05:57Z","updated_at":"2016-03-07T03:29:55Z","pushed_at":"2016-03-11T14:40:58Z","git_url":"git://github.com/diging/quadriga.git","ssh_url":"git@github.com:diging/quadriga.git","clone_url":"https://github.com/diging/quadriga.git","svn_url":"https://github.com/diging/quadriga","homepage":"http://diging.github.io/quadriga/","size":10598,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":12,"forks":2,"open_issues":12,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diging/quadriga/pulls/132"},"html":{"href":"https://github.com/diging/quadriga/pull/132"},"issue":{"href":"https://api.github.com/repos/diging/quadriga/issues/132"},"comments":{"href":"https://api.github.com/repos/diging/quadriga/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/diging/quadriga/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/diging/quadriga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diging/quadriga/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/diging/quadriga/statuses/c1a021759a6e99692ec5438d8310401ccc2fac86"}}}}