{"action":"created","comment":{"url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/comments/168958158","pull_request_review_id":97409249,"id":168958158,"diff_hunk":"@@ -0,0 +1,115 @@\n+/* Copyright Taylors University */\n+package com.taylorsuniversity.models;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import javax.inject.Inject;\n+\n+import org.apache.commons.lang3.StringUtils;\n+import org.apache.sling.api.SlingHttpServletRequest;\n+import org.apache.sling.api.resource.Resource;\n+import org.apache.sling.api.resource.ResourceResolver;\n+import org.apache.sling.api.resource.ValueMap;\n+import org.apache.sling.models.annotations.Model;\n+import org.apache.sling.models.annotations.Optional;\n+import org.apache.sling.models.annotations.Via;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import com.taylorsuniversity.models.bean.CourseTilesModelBean;\n+import com.taylorsuniversity.utils.CoreUtils;\n+\n+/**\n+ *This class is used to retrieve the properties configured in\n+ * the Course Tiles component\n+ *\n+ */\n+@Model(adaptables = SlingHttpServletRequest.class)\n+public final class CourseTilesModel {\n+\n+    @Optional\n+    @Inject\n+    @Via(\"resource\")\n+    private List<Resource> coursePaths;\n+\n+    @Inject\n+    private ResourceResolver resolver;\n+\n+    private List<CourseTilesModelBean> coursePathsItems;\n+    private Logger logger = LoggerFactory.getLogger(CourseTilesModel.class);\n+\n+    /**\n+     * @return List\n+    */\n+    public List<CourseTilesModelBean> getCoursePathsItems() {\n+        if (null != coursePaths && !coursePaths.isEmpty()) {\n+            coursePathsItems = new ArrayList<>();\n+\n+            for (Resource tile : coursePaths) {\n+                logger.debug(\"Course Path Tile item is :\", tile);\n+\n+                if (null != tile.getValueMap()\n+                    && !(tile.getValueMap().get(\"linkPath\").toString().isEmpty())) {","path":"core/src/main/java/com/taylorsuniversity/models/CourseTilesModel.java","position":53,"original_position":53,"commit_id":"456d27897f530b0afc12a77021e690b1140c1496","original_commit_id":"456d27897f530b0afc12a77021e690b1140c1496","user":{"login":"PradeepRajput07","id":17328751,"avatar_url":"https://avatars1.githubusercontent.com/u/17328751?v=4","gravatar_id":"","url":"https://api.github.com/users/PradeepRajput07","html_url":"https://github.com/PradeepRajput07","followers_url":"https://api.github.com/users/PradeepRajput07/followers","following_url":"https://api.github.com/users/PradeepRajput07/following{/other_user}","gists_url":"https://api.github.com/users/PradeepRajput07/gists{/gist_id}","starred_url":"https://api.github.com/users/PradeepRajput07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PradeepRajput07/subscriptions","organizations_url":"https://api.github.com/users/PradeepRajput07/orgs","repos_url":"https://api.github.com/users/PradeepRajput07/repos","events_url":"https://api.github.com/users/PradeepRajput07/events{/privacy}","received_events_url":"https://api.github.com/users/PradeepRajput07/received_events","type":"User","site_admin":false},"body":"Done. Added additional check","created_at":"2018-02-18T17:01:10Z","updated_at":"2018-02-18T17:01:10Z","html_url":"https://github.com/TaylorsUniversity/AEM/pull/34#discussion_r168958158","pull_request_url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/comments/168958158"},"html":{"href":"https://github.com/TaylorsUniversity/AEM/pull/34#discussion_r168958158"},"pull_request":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34"}},"in_reply_to_id":168956986},"pull_request":{"url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34","id":169079201,"html_url":"https://github.com/TaylorsUniversity/AEM/pull/34","diff_url":"https://github.com/TaylorsUniversity/AEM/pull/34.diff","patch_url":"https://github.com/TaylorsUniversity/AEM/pull/34.patch","issue_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/34","number":34,"state":"open","locked":false,"title":"Feature/course tiles","user":{"login":"PradeepRajput07","id":17328751,"avatar_url":"https://avatars1.githubusercontent.com/u/17328751?v=4","gravatar_id":"","url":"https://api.github.com/users/PradeepRajput07","html_url":"https://github.com/PradeepRajput07","followers_url":"https://api.github.com/users/PradeepRajput07/followers","following_url":"https://api.github.com/users/PradeepRajput07/following{/other_user}","gists_url":"https://api.github.com/users/PradeepRajput07/gists{/gist_id}","starred_url":"https://api.github.com/users/PradeepRajput07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PradeepRajput07/subscriptions","organizations_url":"https://api.github.com/users/PradeepRajput07/orgs","repos_url":"https://api.github.com/users/PradeepRajput07/repos","events_url":"https://api.github.com/users/PradeepRajput07/events{/privacy}","received_events_url":"https://api.github.com/users/PradeepRajput07/received_events","type":"User","site_admin":false},"body":"Please review","created_at":"2018-02-14T11:00:42Z","updated_at":"2018-02-18T17:01:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27a3fe81a995057e034294cdff3afcf5e873c025","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34/commits","review_comments_url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34/comments","review_comment_url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/34/comments","statuses_url":"https://api.github.com/repos/TaylorsUniversity/AEM/statuses/456d27897f530b0afc12a77021e690b1140c1496","head":{"label":"TaylorsUniversity:feature/course-tiles","ref":"feature/course-tiles","sha":"456d27897f530b0afc12a77021e690b1140c1496","user":{"login":"TaylorsUniversity","id":35791176,"avatar_url":"https://avatars2.githubusercontent.com/u/35791176?v=4","gravatar_id":"","url":"https://api.github.com/users/TaylorsUniversity","html_url":"https://github.com/TaylorsUniversity","followers_url":"https://api.github.com/users/TaylorsUniversity/followers","following_url":"https://api.github.com/users/TaylorsUniversity/following{/other_user}","gists_url":"https://api.github.com/users/TaylorsUniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorsUniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorsUniversity/subscriptions","organizations_url":"https://api.github.com/users/TaylorsUniversity/orgs","repos_url":"https://api.github.com/users/TaylorsUniversity/repos","events_url":"https://api.github.com/users/TaylorsUniversity/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorsUniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":118917473,"name":"AEM","full_name":"TaylorsUniversity/AEM","owner":{"login":"TaylorsUniversity","id":35791176,"avatar_url":"https://avatars2.githubusercontent.com/u/35791176?v=4","gravatar_id":"","url":"https://api.github.com/users/TaylorsUniversity","html_url":"https://github.com/TaylorsUniversity","followers_url":"https://api.github.com/users/TaylorsUniversity/followers","following_url":"https://api.github.com/users/TaylorsUniversity/following{/other_user}","gists_url":"https://api.github.com/users/TaylorsUniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorsUniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorsUniversity/subscriptions","organizations_url":"https://api.github.com/users/TaylorsUniversity/orgs","repos_url":"https://api.github.com/users/TaylorsUniversity/repos","events_url":"https://api.github.com/users/TaylorsUniversity/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorsUniversity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TaylorsUniversity/AEM","description":"Repo for AEM","fork":false,"url":"https://api.github.com/repos/TaylorsUniversity/AEM","forks_url":"https://api.github.com/repos/TaylorsUniversity/AEM/forks","keys_url":"https://api.github.com/repos/TaylorsUniversity/AEM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TaylorsUniversity/AEM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TaylorsUniversity/AEM/teams","hooks_url":"https://api.github.com/repos/TaylorsUniversity/AEM/hooks","issue_events_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/events{/number}","events_url":"https://api.github.com/repos/TaylorsUniversity/AEM/events","assignees_url":"https://api.github.com/repos/TaylorsUniversity/AEM/assignees{/user}","branches_url":"https://api.github.com/repos/TaylorsUniversity/AEM/branches{/branch}","tags_url":"https://api.github.com/repos/TaylorsUniversity/AEM/tags","blobs_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/refs{/sha}","trees_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TaylorsUniversity/AEM/statuses/{sha}","languages_url":"https://api.github.com/repos/TaylorsUniversity/AEM/languages","stargazers_url":"https://api.github.com/repos/TaylorsUniversity/AEM/stargazers","contributors_url":"https://api.github.com/repos/TaylorsUniversity/AEM/contributors","subscribers_url":"https://api.github.com/repos/TaylorsUniversity/AEM/subscribers","subscription_url":"https://api.github.com/repos/TaylorsUniversity/AEM/subscription","commits_url":"https://api.github.com/repos/TaylorsUniversity/AEM/commits{/sha}","git_commits_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/commits{/sha}","comments_url":"https://api.github.com/repos/TaylorsUniversity/AEM/comments{/number}","issue_comment_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/comments{/number}","contents_url":"https://api.github.com/repos/TaylorsUniversity/AEM/contents/{+path}","compare_url":"https://api.github.com/repos/TaylorsUniversity/AEM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TaylorsUniversity/AEM/merges","archive_url":"https://api.github.com/repos/TaylorsUniversity/AEM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TaylorsUniversity/AEM/downloads","issues_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues{/number}","pulls_url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls{/number}","milestones_url":"https://api.github.com/repos/TaylorsUniversity/AEM/milestones{/number}","notifications_url":"https://api.github.com/repos/TaylorsUniversity/AEM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TaylorsUniversity/AEM/labels{/name}","releases_url":"https://api.github.com/repos/TaylorsUniversity/AEM/releases{/id}","deployments_url":"https://api.github.com/repos/TaylorsUniversity/AEM/deployments","created_at":"2018-01-25T13:40:27Z","updated_at":"2018-01-30T08:29:53Z","pushed_at":"2018-02-18T15:57:48Z","git_url":"git://github.com/TaylorsUniversity/AEM.git","ssh_url":"git@github.com:TaylorsUniversity/AEM.git","clone_url":"https://github.com/TaylorsUniversity/AEM.git","svn_url":"https://github.com/TaylorsUniversity/AEM","homepage":null,"size":14684,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"TaylorsUniversity:develop","ref":"develop","sha":"3fece8671a4aa5c302f5f6b76e22f640bb76a621","user":{"login":"TaylorsUniversity","id":35791176,"avatar_url":"https://avatars2.githubusercontent.com/u/35791176?v=4","gravatar_id":"","url":"https://api.github.com/users/TaylorsUniversity","html_url":"https://github.com/TaylorsUniversity","followers_url":"https://api.github.com/users/TaylorsUniversity/followers","following_url":"https://api.github.com/users/TaylorsUniversity/following{/other_user}","gists_url":"https://api.github.com/users/TaylorsUniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorsUniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorsUniversity/subscriptions","organizations_url":"https://api.github.com/users/TaylorsUniversity/orgs","repos_url":"https://api.github.com/users/TaylorsUniversity/repos","events_url":"https://api.github.com/users/TaylorsUniversity/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorsUniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":118917473,"name":"AEM","full_name":"TaylorsUniversity/AEM","owner":{"login":"TaylorsUniversity","id":35791176,"avatar_url":"https://avatars2.githubusercontent.com/u/35791176?v=4","gravatar_id":"","url":"https://api.github.com/users/TaylorsUniversity","html_url":"https://github.com/TaylorsUniversity","followers_url":"https://api.github.com/users/TaylorsUniversity/followers","following_url":"https://api.github.com/users/TaylorsUniversity/following{/other_user}","gists_url":"https://api.github.com/users/TaylorsUniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorsUniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorsUniversity/subscriptions","organizations_url":"https://api.github.com/users/TaylorsUniversity/orgs","repos_url":"https://api.github.com/users/TaylorsUniversity/repos","events_url":"https://api.github.com/users/TaylorsUniversity/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorsUniversity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TaylorsUniversity/AEM","description":"Repo for AEM","fork":false,"url":"https://api.github.com/repos/TaylorsUniversity/AEM","forks_url":"https://api.github.com/repos/TaylorsUniversity/AEM/forks","keys_url":"https://api.github.com/repos/TaylorsUniversity/AEM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TaylorsUniversity/AEM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TaylorsUniversity/AEM/teams","hooks_url":"https://api.github.com/repos/TaylorsUniversity/AEM/hooks","issue_events_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/events{/number}","events_url":"https://api.github.com/repos/TaylorsUniversity/AEM/events","assignees_url":"https://api.github.com/repos/TaylorsUniversity/AEM/assignees{/user}","branches_url":"https://api.github.com/repos/TaylorsUniversity/AEM/branches{/branch}","tags_url":"https://api.github.com/repos/TaylorsUniversity/AEM/tags","blobs_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/refs{/sha}","trees_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TaylorsUniversity/AEM/statuses/{sha}","languages_url":"https://api.github.com/repos/TaylorsUniversity/AEM/languages","stargazers_url":"https://api.github.com/repos/TaylorsUniversity/AEM/stargazers","contributors_url":"https://api.github.com/repos/TaylorsUniversity/AEM/contributors","subscribers_url":"https://api.github.com/repos/TaylorsUniversity/AEM/subscribers","subscription_url":"https://api.github.com/repos/TaylorsUniversity/AEM/subscription","commits_url":"https://api.github.com/repos/TaylorsUniversity/AEM/commits{/sha}","git_commits_url":"https://api.github.com/repos/TaylorsUniversity/AEM/git/commits{/sha}","comments_url":"https://api.github.com/repos/TaylorsUniversity/AEM/comments{/number}","issue_comment_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/comments{/number}","contents_url":"https://api.github.com/repos/TaylorsUniversity/AEM/contents/{+path}","compare_url":"https://api.github.com/repos/TaylorsUniversity/AEM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TaylorsUniversity/AEM/merges","archive_url":"https://api.github.com/repos/TaylorsUniversity/AEM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TaylorsUniversity/AEM/downloads","issues_url":"https://api.github.com/repos/TaylorsUniversity/AEM/issues{/number}","pulls_url":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls{/number}","milestones_url":"https://api.github.com/repos/TaylorsUniversity/AEM/milestones{/number}","notifications_url":"https://api.github.com/repos/TaylorsUniversity/AEM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TaylorsUniversity/AEM/labels{/name}","releases_url":"https://api.github.com/repos/TaylorsUniversity/AEM/releases{/id}","deployments_url":"https://api.github.com/repos/TaylorsUniversity/AEM/deployments","created_at":"2018-01-25T13:40:27Z","updated_at":"2018-01-30T08:29:53Z","pushed_at":"2018-02-18T15:57:48Z","git_url":"git://github.com/TaylorsUniversity/AEM.git","ssh_url":"git@github.com:TaylorsUniversity/AEM.git","clone_url":"https://github.com/TaylorsUniversity/AEM.git","svn_url":"https://github.com/TaylorsUniversity/AEM","homepage":null,"size":14684,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34"},"html":{"href":"https://github.com/TaylorsUniversity/AEM/pull/34"},"issue":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/34"},"comments":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/TaylorsUniversity/AEM/statuses/456d27897f530b0afc12a77021e690b1140c1496"}},"author_association":"NONE"}}
{"actor":{"display_login":"PradeepRajput07"}}