{"action":"created","comment":{"url":"https://api.github.com/repos/apereo/cas/pulls/comments/68326463","id":68326463,"diff_hunk":"@@ -0,0 +1,33 @@\n+package org.apereo.cas.mgmt.web;\n+\n+import org.springframework.boot.Banner;\n+import org.springframework.core.env.Environment;\n+\n+import java.io.PrintStream;\n+\n+/**\n+ * This is {@link CasManagementBanner}.\n+ *\n+ * @author Misagh Moayyed\n+ * @since 5.0.0\n+ */\n+public class CasManagementBanner implements Banner {\n+\n+    private static final String[] BANNER = {\n+            \"  ____    _    ____    __  __                                                   _   \",\n+            \" / ___|  / \\\\  / ___|  |  \\\\/  | __ _ _ __   __ _  __ _  ___ _ __ ___   ___ _ __ | |_ \",\n+            \"| |     / _ \\\\ \\\\___ \\\\  | |\\\\/| |/ _` | '_ \\\\ / _` |/ _` |/ _ \\\\ '_ ` _ \\\\ / _ \\\\ '_ \\\\| __|\",","path":"cas-management-webapp-support/src/main/java/org/apereo/cas/mgmt/web/CasManagementBanner.java","position":19,"original_position":19,"commit_id":"90c09fcd837b75f25c485939538df0a305b3f862","original_commit_id":"90c09fcd837b75f25c485939538df0a305b3f862","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: ['array initialization' child have incorrect indentation level 12, expected level should be 8.](https://www.codacy.com/app/mmoayyed/cas/file/2830507660/issues/source?bid=3256115&fileBranchId=3357337#l19)","created_at":"2016-06-23T22:24:46Z","updated_at":"2016-06-23T22:24:46Z","html_url":"https://github.com/apereo/cas/pull/1834#discussion_r68326463","pull_request_url":"https://api.github.com/repos/apereo/cas/pulls/1834","_links":{"self":{"href":"https://api.github.com/repos/apereo/cas/pulls/comments/68326463"},"html":{"href":"https://github.com/apereo/cas/pull/1834#discussion_r68326463"},"pull_request":{"href":"https://api.github.com/repos/apereo/cas/pulls/1834"}}},"pull_request":{"url":"https://api.github.com/repos/apereo/cas/pulls/1834","id":73680272,"html_url":"https://github.com/apereo/cas/pull/1834","diff_url":"https://github.com/apereo/cas/pull/1834.diff","patch_url":"https://github.com/apereo/cas/pull/1834.patch","issue_url":"https://api.github.com/repos/apereo/cas/issues/1834","number":1834,"state":"open","locked":false,"title":"Refactor management of CAS properties & Configuration classes","user":{"login":"mmoayyed","id":1205228,"avatar_url":"https://avatars.githubusercontent.com/u/1205228?v=3","gravatar_id":"","url":"https://api.github.com/users/mmoayyed","html_url":"https://github.com/mmoayyed","followers_url":"https://api.github.com/users/mmoayyed/followers","following_url":"https://api.github.com/users/mmoayyed/following{/other_user}","gists_url":"https://api.github.com/users/mmoayyed/gists{/gist_id}","starred_url":"https://api.github.com/users/mmoayyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmoayyed/subscriptions","organizations_url":"https://api.github.com/users/mmoayyed/orgs","repos_url":"https://api.github.com/users/mmoayyed/repos","events_url":"https://api.github.com/users/mmoayyed/events{/privacy}","received_events_url":"https://api.github.com/users/mmoayyed/received_events","type":"User","site_admin":false},"body":"Closes #1779 , https://github.com/apereo/cas/issues/1822, https://github.com/apereo/cas/issues/1820, https://github.com/apereo/cas/issues/1817, https://github.com/apereo/cas/issues/1772\r\n\r\n## Overview\r\n\r\nThis pull request represents a large body of work @dima767 and I have been working on. The objectives are the following:\r\n\r\n- Ensure CAS configuration is entirely handled by `@Configuration` classes appropriate for all CAS modules. This effectively means moving away from XML configuration and `@Autowired` injections directly in core components, delegating the entire context construction to dedicated `@Configuration` classes.\r\n\r\n- Refactoring of all CAS properties and settings as well as those provided by Spring Boot in a consistent, organized and typesafe way by taking advantage of `@ConfigurationProperties` annotations. A new module has been added `cas-server-core-configuration` that is responsible for mapping CAS settings into appropriate POJOs. As a result, CAS properties have been massaged to a degree. This work means there will no longer be a need for `@Value` annotations. That strategy is replaced with the following:\r\n\r\n\r\n```java\r\n\r\n@Autowired\r\nprivate CasConfigurationProperties casProperties;\r\n    \r\n...\r\n\r\ncasProperties.getXYZ()...\r\n```\r\n\r\nYou can see the full set of properties here:\r\nhttps://github.com/Unicon/cas/blob/cond-beans-config/cas-server-documentation/installation/Configuration-Properties.md\r\n\r\n- In order to move away from XML configuration, background jobs and schedulers are now handled by `@Scheduled` annotations.\r\n- CAS is now based on Spring 4.3 GA to make some of this possible.\r\n- As a result of cleaning up properties, the embedded tomcat container is now enhanced to allow support for AJP and HTTP connections.\r\n- In order to minimize the XML configuration noise, CAS now attempts to auto-inject beans into the context based on the presence of the appropriate module, via `@Conditional`beans. For instance, the default ticket registry bean is only defined  as a bean of `ticketRegistry` if there is already nothing defined for that bean. An Ehcache module, for instance, will override this check and will add the ehcache ticket registry instance instead via the same bean id. As a result, the only instance of the `ticketRegistry` remaining in the context is that of Ehcache. This effectively means that component aliasing is being deprecated and removed moving more towards auto configuration modules based on the absence or presence of a given dependency. \r\n\r\n## TODO\r\n\r\n- Some XML configuration still remains in CAS that bootstraps a number of test cases. This shall be gradually moved and converted. ","created_at":"2016-06-14T04:55:59Z","updated_at":"2016-06-23T22:24:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28c8feb1cad892e485b7ebb12f82a8ff104bc96b","assignee":{"login":"dima767","id":12629,"avatar_url":"https://avatars.githubusercontent.com/u/12629?v=3","gravatar_id":"","url":"https://api.github.com/users/dima767","html_url":"https://github.com/dima767","followers_url":"https://api.github.com/users/dima767/followers","following_url":"https://api.github.com/users/dima767/following{/other_user}","gists_url":"https://api.github.com/users/dima767/gists{/gist_id}","starred_url":"https://api.github.com/users/dima767/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dima767/subscriptions","organizations_url":"https://api.github.com/users/dima767/orgs","repos_url":"https://api.github.com/users/dima767/repos","events_url":"https://api.github.com/users/dima767/events{/privacy}","received_events_url":"https://api.github.com/users/dima767/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/apereo/cas/milestones/31","html_url":"https://github.com/apereo/cas/milestones/5.0.0.M3","labels_url":"https://api.github.com/repos/apereo/cas/milestones/31/labels","id":1752366,"number":31,"title":"5.0.0.M3","description":"Major release: Milestone (Alpha)","creator":{"login":"dima767","id":12629,"avatar_url":"https://avatars.githubusercontent.com/u/12629?v=3","gravatar_id":"","url":"https://api.github.com/users/dima767","html_url":"https://github.com/dima767","followers_url":"https://api.github.com/users/dima767/followers","following_url":"https://api.github.com/users/dima767/following{/other_user}","gists_url":"https://api.github.com/users/dima767/gists{/gist_id}","starred_url":"https://api.github.com/users/dima767/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dima767/subscriptions","organizations_url":"https://api.github.com/users/dima767/orgs","repos_url":"https://api.github.com/users/dima767/repos","events_url":"https://api.github.com/users/dima767/events{/privacy}","received_events_url":"https://api.github.com/users/dima767/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":4,"state":"open","created_at":"2016-05-06T20:15:35Z","updated_at":"2016-06-17T22:30:21Z","due_on":"2016-07-15T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/apereo/cas/pulls/1834/commits","review_comments_url":"https://api.github.com/repos/apereo/cas/pulls/1834/comments","review_comment_url":"https://api.github.com/repos/apereo/cas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apereo/cas/issues/1834/comments","statuses_url":"https://api.github.com/repos/apereo/cas/statuses/90c09fcd837b75f25c485939538df0a305b3f862","head":{"label":"Unicon:cond-beans-config","ref":"cond-beans-config","sha":"90c09fcd837b75f25c485939538df0a305b3f862","user":{"login":"Unicon","id":835400,"avatar_url":"https://avatars.githubusercontent.com/u/835400?v=3","gravatar_id":"","url":"https://api.github.com/users/Unicon","html_url":"https://github.com/Unicon","followers_url":"https://api.github.com/users/Unicon/followers","following_url":"https://api.github.com/users/Unicon/following{/other_user}","gists_url":"https://api.github.com/users/Unicon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unicon/subscriptions","organizations_url":"https://api.github.com/users/Unicon/orgs","repos_url":"https://api.github.com/users/Unicon/repos","events_url":"https://api.github.com/users/Unicon/events{/privacy}","received_events_url":"https://api.github.com/users/Unicon/received_events","type":"Organization","site_admin":false},"repo":{"id":6410069,"name":"cas","full_name":"Unicon/cas","owner":{"login":"Unicon","id":835400,"avatar_url":"https://avatars.githubusercontent.com/u/835400?v=3","gravatar_id":"","url":"https://api.github.com/users/Unicon","html_url":"https://github.com/Unicon","followers_url":"https://api.github.com/users/Unicon/followers","following_url":"https://api.github.com/users/Unicon/following{/other_user}","gists_url":"https://api.github.com/users/Unicon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unicon/subscriptions","organizations_url":"https://api.github.com/users/Unicon/orgs","repos_url":"https://api.github.com/users/Unicon/repos","events_url":"https://api.github.com/users/Unicon/events{/privacy}","received_events_url":"https://api.github.com/users/Unicon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Unicon/cas","description":"Jasig CAS - Single Sign On for the Web","fork":true,"url":"https://api.github.com/repos/Unicon/cas","forks_url":"https://api.github.com/repos/Unicon/cas/forks","keys_url":"https://api.github.com/repos/Unicon/cas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Unicon/cas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Unicon/cas/teams","hooks_url":"https://api.github.com/repos/Unicon/cas/hooks","issue_events_url":"https://api.github.com/repos/Unicon/cas/issues/events{/number}","events_url":"https://api.github.com/repos/Unicon/cas/events","assignees_url":"https://api.github.com/repos/Unicon/cas/assignees{/user}","branches_url":"https://api.github.com/repos/Unicon/cas/branches{/branch}","tags_url":"https://api.github.com/repos/Unicon/cas/tags","blobs_url":"https://api.github.com/repos/Unicon/cas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Unicon/cas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Unicon/cas/git/refs{/sha}","trees_url":"https://api.github.com/repos/Unicon/cas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Unicon/cas/statuses/{sha}","languages_url":"https://api.github.com/repos/Unicon/cas/languages","stargazers_url":"https://api.github.com/repos/Unicon/cas/stargazers","contributors_url":"https://api.github.com/repos/Unicon/cas/contributors","subscribers_url":"https://api.github.com/repos/Unicon/cas/subscribers","subscription_url":"https://api.github.com/repos/Unicon/cas/subscription","commits_url":"https://api.github.com/repos/Unicon/cas/commits{/sha}","git_commits_url":"https://api.github.com/repos/Unicon/cas/git/commits{/sha}","comments_url":"https://api.github.com/repos/Unicon/cas/comments{/number}","issue_comment_url":"https://api.github.com/repos/Unicon/cas/issues/comments{/number}","contents_url":"https://api.github.com/repos/Unicon/cas/contents/{+path}","compare_url":"https://api.github.com/repos/Unicon/cas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Unicon/cas/merges","archive_url":"https://api.github.com/repos/Unicon/cas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Unicon/cas/downloads","issues_url":"https://api.github.com/repos/Unicon/cas/issues{/number}","pulls_url":"https://api.github.com/repos/Unicon/cas/pulls{/number}","milestones_url":"https://api.github.com/repos/Unicon/cas/milestones{/number}","notifications_url":"https://api.github.com/repos/Unicon/cas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Unicon/cas/labels{/name}","releases_url":"https://api.github.com/repos/Unicon/cas/releases{/id}","deployments_url":"https://api.github.com/repos/Unicon/cas/deployments","created_at":"2012-10-26T20:34:46Z","updated_at":"2015-11-25T01:55:15Z","pushed_at":"2016-06-23T22:08:45Z","git_url":"git://github.com/Unicon/cas.git","ssh_url":"git@github.com:Unicon/cas.git","clone_url":"https://github.com/Unicon/cas.git","svn_url":"https://github.com/Unicon/cas","homepage":"http://www.jasig.org/cas","size":1125636,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":0,"forks":24,"open_issues":0,"watchers":22,"default_branch":"master"}},"base":{"label":"apereo:master","ref":"master","sha":"8cacb5bf6d17569ba2c4301c4f2935a08f3835b6","user":{"login":"apereo","id":4679233,"avatar_url":"https://avatars.githubusercontent.com/u/4679233?v=3","gravatar_id":"","url":"https://api.github.com/users/apereo","html_url":"https://github.com/apereo","followers_url":"https://api.github.com/users/apereo/followers","following_url":"https://api.github.com/users/apereo/following{/other_user}","gists_url":"https://api.github.com/users/apereo/gists{/gist_id}","starred_url":"https://api.github.com/users/apereo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apereo/subscriptions","organizations_url":"https://api.github.com/users/apereo/orgs","repos_url":"https://api.github.com/users/apereo/repos","events_url":"https://api.github.com/users/apereo/events{/privacy}","received_events_url":"https://api.github.com/users/apereo/received_events","type":"Organization","site_admin":false},"repo":{"id":2352744,"name":"cas","full_name":"apereo/cas","owner":{"login":"apereo","id":4679233,"avatar_url":"https://avatars.githubusercontent.com/u/4679233?v=3","gravatar_id":"","url":"https://api.github.com/users/apereo","html_url":"https://github.com/apereo","followers_url":"https://api.github.com/users/apereo/followers","following_url":"https://api.github.com/users/apereo/following{/other_user}","gists_url":"https://api.github.com/users/apereo/gists{/gist_id}","starred_url":"https://api.github.com/users/apereo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apereo/subscriptions","organizations_url":"https://api.github.com/users/apereo/orgs","repos_url":"https://api.github.com/users/apereo/repos","events_url":"https://api.github.com/users/apereo/events{/privacy}","received_events_url":"https://api.github.com/users/apereo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apereo/cas","description":"Apereo CAS - Enterprise Single Sign On for all","fork":false,"url":"https://api.github.com/repos/apereo/cas","forks_url":"https://api.github.com/repos/apereo/cas/forks","keys_url":"https://api.github.com/repos/apereo/cas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apereo/cas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apereo/cas/teams","hooks_url":"https://api.github.com/repos/apereo/cas/hooks","issue_events_url":"https://api.github.com/repos/apereo/cas/issues/events{/number}","events_url":"https://api.github.com/repos/apereo/cas/events","assignees_url":"https://api.github.com/repos/apereo/cas/assignees{/user}","branches_url":"https://api.github.com/repos/apereo/cas/branches{/branch}","tags_url":"https://api.github.com/repos/apereo/cas/tags","blobs_url":"https://api.github.com/repos/apereo/cas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apereo/cas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apereo/cas/git/refs{/sha}","trees_url":"https://api.github.com/repos/apereo/cas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apereo/cas/statuses/{sha}","languages_url":"https://api.github.com/repos/apereo/cas/languages","stargazers_url":"https://api.github.com/repos/apereo/cas/stargazers","contributors_url":"https://api.github.com/repos/apereo/cas/contributors","subscribers_url":"https://api.github.com/repos/apereo/cas/subscribers","subscription_url":"https://api.github.com/repos/apereo/cas/subscription","commits_url":"https://api.github.com/repos/apereo/cas/commits{/sha}","git_commits_url":"https://api.github.com/repos/apereo/cas/git/commits{/sha}","comments_url":"https://api.github.com/repos/apereo/cas/comments{/number}","issue_comment_url":"https://api.github.com/repos/apereo/cas/issues/comments{/number}","contents_url":"https://api.github.com/repos/apereo/cas/contents/{+path}","compare_url":"https://api.github.com/repos/apereo/cas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apereo/cas/merges","archive_url":"https://api.github.com/repos/apereo/cas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apereo/cas/downloads","issues_url":"https://api.github.com/repos/apereo/cas/issues{/number}","pulls_url":"https://api.github.com/repos/apereo/cas/pulls{/number}","milestones_url":"https://api.github.com/repos/apereo/cas/milestones{/number}","notifications_url":"https://api.github.com/repos/apereo/cas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apereo/cas/labels{/name}","releases_url":"https://api.github.com/repos/apereo/cas/releases{/id}","deployments_url":"https://api.github.com/repos/apereo/cas/deployments","created_at":"2011-09-09T01:36:42Z","updated_at":"2016-06-23T17:41:52Z","pushed_at":"2016-06-23T22:08:46Z","git_url":"git://github.com/apereo/cas.git","ssh_url":"git@github.com:apereo/cas.git","clone_url":"https://github.com/apereo/cas.git","svn_url":"https://github.com/apereo/cas","homepage":"https://apereo.github.io/cas/","size":1237589,"stargazers_count":1498,"watchers_count":1498,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1041,"mirror_url":null,"open_issues_count":36,"forks":1041,"open_issues":36,"watchers":1498,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apereo/cas/pulls/1834"},"html":{"href":"https://github.com/apereo/cas/pull/1834"},"issue":{"href":"https://api.github.com/repos/apereo/cas/issues/1834"},"comments":{"href":"https://api.github.com/repos/apereo/cas/issues/1834/comments"},"review_comments":{"href":"https://api.github.com/repos/apereo/cas/pulls/1834/comments"},"review_comment":{"href":"https://api.github.com/repos/apereo/cas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apereo/cas/pulls/1834/commits"},"statuses":{"href":"https://api.github.com/repos/apereo/cas/statuses/90c09fcd837b75f25c485939538df0a305b3f862"}}}}
{"actor":{"display_login":"codacy-bot"}}