{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/comments/30059443","id":30059443,"diff_hunk":"@@ -132,4 +94,110 @@ public Response instantiateTemplate(@Context HttpServletRequest request, @PathPa\n \t\treturn response;\n \t}\n \t\n+\tprivate boolean parseAllAttribute(JsonObject parent) {\n+\t\tboolean result = false;\n+\t\tJsonElement allAttributes = parent.get(\"allAttributes\");\n+\t\tif (allAttributes != null) {\n+\t\t\tresult = allAttributes.getAsBoolean();\n+\t\t}\n+\t\treturn result;\n+\t}\n+\t\n+\tprivate List<Item> makeItemsFromDocument(JsonArray children, List<Item> childItems, ItemManager itemMan, LayerManager layerMan) {\n+\t\tMap<String, Item> childMap = makeChildItemMap(childItems);\n+\t\tIterator<JsonElement> iterator = children.iterator();\n+\n+\t\twhile (iterator.hasNext()) {\n+\t\t\t\n+\t\t\tString attr = \"\";\n+\t\t\tLayer layer = null;\n+\n+\t\t\tJsonObject child = iterator.next().getAsJsonObject();\n+\t\t\tJsonElement childId = child.get(\"id\");","path":"coastal-hazards-portal/src/main/java/gov/usgs/cida/coastalhazards/rest/data/TemplateResource.java","position":137,"original_position":137,"commit_id":"029a4248e028511341c828c7561cc3b101fe76f6","original_commit_id":"029a4248e028511341c828c7561cc3b101fe76f6","user":{"login":"isuftin","id":928288,"avatar_url":"https://avatars.githubusercontent.com/u/928288?v=3","gravatar_id":"","url":"https://api.github.com/users/isuftin","html_url":"https://github.com/isuftin","followers_url":"https://api.github.com/users/isuftin/followers","following_url":"https://api.github.com/users/isuftin/following{/other_user}","gists_url":"https://api.github.com/users/isuftin/gists{/gist_id}","starred_url":"https://api.github.com/users/isuftin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuftin/subscriptions","organizations_url":"https://api.github.com/users/isuftin/orgs","repos_url":"https://api.github.com/users/isuftin/repos","events_url":"https://api.github.com/users/isuftin/events{/privacy}","received_events_url":"https://api.github.com/users/isuftin/received_events","type":"User","site_admin":false},"body":"Did you not want to make ENUMs for this?","created_at":"2015-05-11T17:11:44Z","updated_at":"2015-05-11T17:11:44Z","html_url":"https://github.com/USGS-CIDA/coastal-hazards/pull/1189#discussion_r30059443","pull_request_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189","_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/comments/30059443"},"html":{"href":"https://github.com/USGS-CIDA/coastal-hazards/pull/1189#discussion_r30059443"},"pull_request":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189","id":35147667,"html_url":"https://github.com/USGS-CIDA/coastal-hazards/pull/1189","diff_url":"https://github.com/USGS-CIDA/coastal-hazards/pull/1189.diff","patch_url":"https://github.com/USGS-CIDA/coastal-hazards/pull/1189.patch","issue_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues/1189","number":1189,"state":"open","locked":false,"title":"#1323","user":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-11T17:07:06Z","updated_at":"2015-05-11T17:11:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5939bd5413b02c432f2f71f31dc3407dd0d410c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189/commits","review_comments_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189/comments","review_comment_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues/1189/comments","statuses_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/statuses/029a4248e028511341c828c7561cc3b101fe76f6","head":{"label":"jiwalker-usgs:trello-1323","ref":"trello-1323","sha":"029a4248e028511341c828c7561cc3b101fe76f6","user":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"repo":{"id":7410186,"name":"coastal-hazards","full_name":"jiwalker-usgs/coastal-hazards","owner":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jiwalker-usgs/coastal-hazards","description":"","fork":true,"url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards","forks_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/forks","keys_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/teams","hooks_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/hooks","issue_events_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/issues/events{/number}","events_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/events","assignees_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/assignees{/user}","branches_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/branches{/branch}","tags_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/tags","blobs_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/git/refs{/sha}","trees_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/statuses/{sha}","languages_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/languages","stargazers_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/stargazers","contributors_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/contributors","subscribers_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/subscribers","subscription_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/subscription","commits_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/commits{/sha}","git_commits_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/git/commits{/sha}","comments_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/comments{/number}","issue_comment_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/issues/comments{/number}","contents_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/contents/{+path}","compare_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/merges","archive_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/downloads","issues_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/issues{/number}","pulls_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/pulls{/number}","milestones_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/milestones{/number}","notifications_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/labels{/name}","releases_url":"https://api.github.com/repos/jiwalker-usgs/coastal-hazards/releases{/id}","created_at":"2013-01-02T17:06:24Z","updated_at":"2015-04-17T20:13:58Z","pushed_at":"2015-05-11T17:06:47Z","git_url":"git://github.com/jiwalker-usgs/coastal-hazards.git","ssh_url":"git@github.com:jiwalker-usgs/coastal-hazards.git","clone_url":"https://github.com/jiwalker-usgs/coastal-hazards.git","svn_url":"https://github.com/jiwalker-usgs/coastal-hazards","homepage":null,"size":34814,"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":"USGS-CIDA:master","ref":"master","sha":"a6e3d4f469d8023eec25d15fd2115be7cefba902","user":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"repo":{"id":6888625,"name":"coastal-hazards","full_name":"USGS-CIDA/coastal-hazards","owner":{"login":"USGS-CIDA","id":918179,"avatar_url":"https://avatars.githubusercontent.com/u/918179?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-CIDA/coastal-hazards","description":"Portal for Coastal Change Hazards","fork":false,"url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards","forks_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/forks","keys_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/teams","hooks_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/hooks","issue_events_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/events","assignees_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/tags","blobs_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/languages","stargazers_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/stargazers","contributors_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/contributors","subscribers_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/subscribers","subscription_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/subscription","commits_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/merges","archive_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/downloads","issues_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/labels{/name}","releases_url":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/releases{/id}","created_at":"2012-11-27T18:34:12Z","updated_at":"2015-05-08T19:58:17Z","pushed_at":"2015-05-11T17:07:06Z","git_url":"git://github.com/USGS-CIDA/coastal-hazards.git","ssh_url":"git@github.com:USGS-CIDA/coastal-hazards.git","clone_url":"https://github.com/USGS-CIDA/coastal-hazards.git","svn_url":"https://github.com/USGS-CIDA/coastal-hazards","homepage":"http://marine.usgs.gov/coastalchangehazardsportal","size":38835,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189"},"html":{"href":"https://github.com/USGS-CIDA/coastal-hazards/pull/1189"},"issue":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues/1189"},"comments":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/issues/1189/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/pulls/1189/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-CIDA/coastal-hazards/statuses/029a4248e028511341c828c7561cc3b101fe76f6"}}}}