{"action":"created","comment":{"url":"https://api.github.com/repos/eklavya/activeGrid/pulls/comments/84005446","pull_request_review_id":4810466,"id":84005446,"diff_hunk":"@@ -0,0 +1,59 @@\n+package com.activegrid.model\n+\n+import com.activegrid.model.Graph.Neo4jRep\n+import org.neo4j.graphdb.Node\n+\n+/**\n+  * Created by shareefn on 7/10/16.\n+  */\n+case class KeyPairInfo(override val id: Option[Long],keyName: String,keyFingerprint: String,keyMaterial: String, filePath:String, status: KeyPairStatus, defaultUser: String, passPhrase: String )  extends BaseEntity\n+\n+object KeyPairInfo{\n+\n+  implicit class KeyPairInfoImpl(keyPairInfo: KeyPairInfo) extends Neo4jRep[KeyPairInfo] {\n+\n+    val label = \"KeyPairInfo\"\n+\n+    override def toNeo4jGraph(entity: KeyPairInfo): Option[Node] = {\n+\n+      val map = Map(\n+        \"keyName\" -> entity.keyName,\n+        \"keyFingerprint\" -> entity.keyFingerprint,\n+        \"keyMaterial\" -> entity.keyMaterial,\n+        \"filePath\" -> entity.filePath,\n+        \"status\" -> entity.status.toString,\n+        \"defaultUser\" -> entity.defaultUser,\n+        \"passPhrase\" -> entity.passPhrase)\n+      val node = GraphDBExecutor.createGraphNodeWithPrimitives[KeyPairInfo](label, map)\n+      node\n+\n+    }\n+\n+    override def fromNeo4jGraph(id: Option[Long]): Option[KeyPairInfo] = {\n+     KeyPairInfo.fromNeo4jGraph(id)\n+    }\n+\n+  }\n+\n+  def fromNeo4jGraph(id: Option[Long]): Option[KeyPairInfo] = {\n+    id match {\n+      case Some(nodeId) => {\n+        val listOfKeys = List(\"keyName\", \"keyFingerprint\", \"keyMaterial\", \"filePath\", \"status\", \"defaultUser\", \"passPhrase\")\n+        val propertyValues = GraphDBExecutor.getGraphProperties(nodeId, listOfKeys)\n+        val keyName = propertyValues.get(\"keyName\").get.toString","path":"src/main/scala/com/activegrid/model/KeyPairInfo.scala","position":null,"original_position":43,"commit_id":"a95419bee8bdb0fad815bedebc78d38618a4f72c","original_commit_id":"bf0587607c8566aa9532e46bbb0dec35cc632354","user":{"login":"naveed050","id":21192895,"avatar_url":"https://avatars.githubusercontent.com/u/21192895?v=3","gravatar_id":"","url":"https://api.github.com/users/naveed050","html_url":"https://github.com/naveed050","followers_url":"https://api.github.com/users/naveed050/followers","following_url":"https://api.github.com/users/naveed050/following{/other_user}","gists_url":"https://api.github.com/users/naveed050/gists{/gist_id}","starred_url":"https://api.github.com/users/naveed050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveed050/subscriptions","organizations_url":"https://api.github.com/users/naveed050/orgs","repos_url":"https://api.github.com/users/naveed050/repos","events_url":"https://api.github.com/users/naveed050/events{/privacy}","received_events_url":"https://api.github.com/users/naveed050/received_events","type":"User","site_admin":false},"body":"Also we changed it to propertyValues(\"keyName\").toString","created_at":"2016-10-19T06:44:20Z","updated_at":"2016-10-19T06:44:20Z","html_url":"https://github.com/eklavya/activeGrid/pull/10#discussion_r84005446","pull_request_url":"https://api.github.com/repos/eklavya/activeGrid/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/eklavya/activeGrid/pulls/comments/84005446"},"html":{"href":"https://github.com/eklavya/activeGrid/pull/10#discussion_r84005446"},"pull_request":{"href":"https://api.github.com/repos/eklavya/activeGrid/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/eklavya/activeGrid/pulls/10","id":88983921,"html_url":"https://github.com/eklavya/activeGrid/pull/10","diff_url":"https://github.com/eklavya/activeGrid/pull/10.diff","patch_url":"https://github.com/eklavya/activeGrid/pull/10.patch","issue_url":"https://api.github.com/repos/eklavya/activeGrid/issues/10","number":10,"state":"open","locked":false,"title":"Catalog Services with exception handling","user":{"login":"naveed050","id":21192895,"avatar_url":"https://avatars.githubusercontent.com/u/21192895?v=3","gravatar_id":"","url":"https://api.github.com/users/naveed050","html_url":"https://github.com/naveed050","followers_url":"https://api.github.com/users/naveed050/followers","following_url":"https://api.github.com/users/naveed050/following{/other_user}","gists_url":"https://api.github.com/users/naveed050/gists{/gist_id}","starred_url":"https://api.github.com/users/naveed050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveed050/subscriptions","organizations_url":"https://api.github.com/users/naveed050/orgs","repos_url":"https://api.github.com/users/naveed050/repos","events_url":"https://api.github.com/users/naveed050/events{/privacy}","received_events_url":"https://api.github.com/users/naveed050/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T09:41:28Z","updated_at":"2016-10-19T06:44:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"102d4fa52d3caf2d4841cdd3c1bd36eda1a33cf9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eklavya/activeGrid/pulls/10/commits","review_comments_url":"https://api.github.com/repos/eklavya/activeGrid/pulls/10/comments","review_comment_url":"https://api.github.com/repos/eklavya/activeGrid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eklavya/activeGrid/issues/10/comments","statuses_url":"https://api.github.com/repos/eklavya/activeGrid/statuses/a95419bee8bdb0fad815bedebc78d38618a4f72c","head":{"label":"naveed050:master","ref":"master","sha":"a95419bee8bdb0fad815bedebc78d38618a4f72c","user":{"login":"naveed050","id":21192895,"avatar_url":"https://avatars.githubusercontent.com/u/21192895?v=3","gravatar_id":"","url":"https://api.github.com/users/naveed050","html_url":"https://github.com/naveed050","followers_url":"https://api.github.com/users/naveed050/followers","following_url":"https://api.github.com/users/naveed050/following{/other_user}","gists_url":"https://api.github.com/users/naveed050/gists{/gist_id}","starred_url":"https://api.github.com/users/naveed050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveed050/subscriptions","organizations_url":"https://api.github.com/users/naveed050/orgs","repos_url":"https://api.github.com/users/naveed050/repos","events_url":"https://api.github.com/users/naveed050/events{/privacy}","received_events_url":"https://api.github.com/users/naveed050/received_events","type":"User","site_admin":false},"repo":{"id":68197692,"name":"activeGrid","full_name":"naveed050/activeGrid","owner":{"login":"naveed050","id":21192895,"avatar_url":"https://avatars.githubusercontent.com/u/21192895?v=3","gravatar_id":"","url":"https://api.github.com/users/naveed050","html_url":"https://github.com/naveed050","followers_url":"https://api.github.com/users/naveed050/followers","following_url":"https://api.github.com/users/naveed050/following{/other_user}","gists_url":"https://api.github.com/users/naveed050/gists{/gist_id}","starred_url":"https://api.github.com/users/naveed050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveed050/subscriptions","organizations_url":"https://api.github.com/users/naveed050/orgs","repos_url":"https://api.github.com/users/naveed050/repos","events_url":"https://api.github.com/users/naveed050/events{/privacy}","received_events_url":"https://api.github.com/users/naveed050/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naveed050/activeGrid","description":"activeGrid in Scala","fork":true,"url":"https://api.github.com/repos/naveed050/activeGrid","forks_url":"https://api.github.com/repos/naveed050/activeGrid/forks","keys_url":"https://api.github.com/repos/naveed050/activeGrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naveed050/activeGrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naveed050/activeGrid/teams","hooks_url":"https://api.github.com/repos/naveed050/activeGrid/hooks","issue_events_url":"https://api.github.com/repos/naveed050/activeGrid/issues/events{/number}","events_url":"https://api.github.com/repos/naveed050/activeGrid/events","assignees_url":"https://api.github.com/repos/naveed050/activeGrid/assignees{/user}","branches_url":"https://api.github.com/repos/naveed050/activeGrid/branches{/branch}","tags_url":"https://api.github.com/repos/naveed050/activeGrid/tags","blobs_url":"https://api.github.com/repos/naveed050/activeGrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naveed050/activeGrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naveed050/activeGrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/naveed050/activeGrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naveed050/activeGrid/statuses/{sha}","languages_url":"https://api.github.com/repos/naveed050/activeGrid/languages","stargazers_url":"https://api.github.com/repos/naveed050/activeGrid/stargazers","contributors_url":"https://api.github.com/repos/naveed050/activeGrid/contributors","subscribers_url":"https://api.github.com/repos/naveed050/activeGrid/subscribers","subscription_url":"https://api.github.com/repos/naveed050/activeGrid/subscription","commits_url":"https://api.github.com/repos/naveed050/activeGrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/naveed050/activeGrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/naveed050/activeGrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/naveed050/activeGrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/naveed050/activeGrid/contents/{+path}","compare_url":"https://api.github.com/repos/naveed050/activeGrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naveed050/activeGrid/merges","archive_url":"https://api.github.com/repos/naveed050/activeGrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naveed050/activeGrid/downloads","issues_url":"https://api.github.com/repos/naveed050/activeGrid/issues{/number}","pulls_url":"https://api.github.com/repos/naveed050/activeGrid/pulls{/number}","milestones_url":"https://api.github.com/repos/naveed050/activeGrid/milestones{/number}","notifications_url":"https://api.github.com/repos/naveed050/activeGrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naveed050/activeGrid/labels{/name}","releases_url":"https://api.github.com/repos/naveed050/activeGrid/releases{/id}","deployments_url":"https://api.github.com/repos/naveed050/activeGrid/deployments","created_at":"2016-09-14T10:40:24Z","updated_at":"2016-09-14T10:40:25Z","pushed_at":"2016-10-19T06:06:13Z","git_url":"git://github.com/naveed050/activeGrid.git","ssh_url":"git@github.com:naveed050/activeGrid.git","clone_url":"https://github.com/naveed050/activeGrid.git","svn_url":"https://github.com/naveed050/activeGrid","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"eklavya:master","ref":"master","sha":"923536ea892fffe9f066507a4f16f37415aedbec","user":{"login":"eklavya","id":1136647,"avatar_url":"https://avatars.githubusercontent.com/u/1136647?v=3","gravatar_id":"","url":"https://api.github.com/users/eklavya","html_url":"https://github.com/eklavya","followers_url":"https://api.github.com/users/eklavya/followers","following_url":"https://api.github.com/users/eklavya/following{/other_user}","gists_url":"https://api.github.com/users/eklavya/gists{/gist_id}","starred_url":"https://api.github.com/users/eklavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eklavya/subscriptions","organizations_url":"https://api.github.com/users/eklavya/orgs","repos_url":"https://api.github.com/users/eklavya/repos","events_url":"https://api.github.com/users/eklavya/events{/privacy}","received_events_url":"https://api.github.com/users/eklavya/received_events","type":"User","site_admin":false},"repo":{"id":67215805,"name":"activeGrid","full_name":"eklavya/activeGrid","owner":{"login":"eklavya","id":1136647,"avatar_url":"https://avatars.githubusercontent.com/u/1136647?v=3","gravatar_id":"","url":"https://api.github.com/users/eklavya","html_url":"https://github.com/eklavya","followers_url":"https://api.github.com/users/eklavya/followers","following_url":"https://api.github.com/users/eklavya/following{/other_user}","gists_url":"https://api.github.com/users/eklavya/gists{/gist_id}","starred_url":"https://api.github.com/users/eklavya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eklavya/subscriptions","organizations_url":"https://api.github.com/users/eklavya/orgs","repos_url":"https://api.github.com/users/eklavya/repos","events_url":"https://api.github.com/users/eklavya/events{/privacy}","received_events_url":"https://api.github.com/users/eklavya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eklavya/activeGrid","description":"activeGrid in Scala","fork":false,"url":"https://api.github.com/repos/eklavya/activeGrid","forks_url":"https://api.github.com/repos/eklavya/activeGrid/forks","keys_url":"https://api.github.com/repos/eklavya/activeGrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eklavya/activeGrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eklavya/activeGrid/teams","hooks_url":"https://api.github.com/repos/eklavya/activeGrid/hooks","issue_events_url":"https://api.github.com/repos/eklavya/activeGrid/issues/events{/number}","events_url":"https://api.github.com/repos/eklavya/activeGrid/events","assignees_url":"https://api.github.com/repos/eklavya/activeGrid/assignees{/user}","branches_url":"https://api.github.com/repos/eklavya/activeGrid/branches{/branch}","tags_url":"https://api.github.com/repos/eklavya/activeGrid/tags","blobs_url":"https://api.github.com/repos/eklavya/activeGrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eklavya/activeGrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eklavya/activeGrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/eklavya/activeGrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eklavya/activeGrid/statuses/{sha}","languages_url":"https://api.github.com/repos/eklavya/activeGrid/languages","stargazers_url":"https://api.github.com/repos/eklavya/activeGrid/stargazers","contributors_url":"https://api.github.com/repos/eklavya/activeGrid/contributors","subscribers_url":"https://api.github.com/repos/eklavya/activeGrid/subscribers","subscription_url":"https://api.github.com/repos/eklavya/activeGrid/subscription","commits_url":"https://api.github.com/repos/eklavya/activeGrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/eklavya/activeGrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/eklavya/activeGrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/eklavya/activeGrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/eklavya/activeGrid/contents/{+path}","compare_url":"https://api.github.com/repos/eklavya/activeGrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eklavya/activeGrid/merges","archive_url":"https://api.github.com/repos/eklavya/activeGrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eklavya/activeGrid/downloads","issues_url":"https://api.github.com/repos/eklavya/activeGrid/issues{/number}","pulls_url":"https://api.github.com/repos/eklavya/activeGrid/pulls{/number}","milestones_url":"https://api.github.com/repos/eklavya/activeGrid/milestones{/number}","notifications_url":"https://api.github.com/repos/eklavya/activeGrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eklavya/activeGrid/labels{/name}","releases_url":"https://api.github.com/repos/eklavya/activeGrid/releases{/id}","deployments_url":"https://api.github.com/repos/eklavya/activeGrid/deployments","created_at":"2016-09-02T11:04:28Z","updated_at":"2016-09-06T10:01:52Z","pushed_at":"2016-10-19T06:06:13Z","git_url":"git://github.com/eklavya/activeGrid.git","ssh_url":"git@github.com:eklavya/activeGrid.git","clone_url":"https://github.com/eklavya/activeGrid.git","svn_url":"https://github.com/eklavya/activeGrid","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":8,"forks":7,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eklavya/activeGrid/pulls/10"},"html":{"href":"https://github.com/eklavya/activeGrid/pull/10"},"issue":{"href":"https://api.github.com/repos/eklavya/activeGrid/issues/10"},"comments":{"href":"https://api.github.com/repos/eklavya/activeGrid/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/eklavya/activeGrid/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/eklavya/activeGrid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eklavya/activeGrid/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/eklavya/activeGrid/statuses/a95419bee8bdb0fad815bedebc78d38618a4f72c"}}}}
{"actor":{"display_login":"naveed050"}}