{"action":"created","comment":{"url":"https://api.github.com/repos/rutor/PA165-projekt/pulls/comments/241988361","pull_request_review_id":185396057,"id":241988361,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTk4ODM2MQ==","diff_hunk":"@@ -0,0 +1,123 @@\n+package cz.muni.fi.pa165.mvc.controllers;\n+\n+import cz.muni.fi.pa165.dto.CreateRoleDTO;\n+import cz.muni.fi.pa165.dto.RoleDTO;\n+import cz.muni.fi.pa165.facade.RoleFacade;\n+\n+import cz.muni.fi.pa165.facade.UserFacade;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.ui.Model;\n+import org.springframework.validation.BindingResult;\n+import org.springframework.validation.FieldError;\n+import org.springframework.web.bind.annotation.*;\n+import org.springframework.web.servlet.mvc.support.RedirectAttributes;\n+import org.springframework.web.util.UriComponentsBuilder;\n+\n+import javax.validation.Valid;\n+import javax.inject.Inject;\n+\n+\n+/**\n+ * Implements the role management and display interface.\n+ *\n+ * @author xdudasr\n+ */\n+@Controller\n+@RequestMapping(value = {WebUrls.URL_ROLE})\n+public class RoleController {\n+\n+    @Inject\n+    private RoleFacade roleFacade;\n+    @Inject\n+    private UserFacade userFacade;\n+\n+\n+    @RequestMapping(value = \"/\", method = RequestMethod.GET)","path":"web/src/main/java/cz/muni/fi/pa165/mvc/controllers/RoleController.java","position":35,"original_position":35,"commit_id":"9d11f380a0456078d9f25a40ddab0099d4216983","original_commit_id":"9d11f380a0456078d9f25a40ddab0099d4216983","user":{"login":"rutor","id":10315791,"node_id":"MDQ6VXNlcjEwMzE1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/10315791?v=4","gravatar_id":"","url":"https://api.github.com/users/rutor","html_url":"https://github.com/rutor","followers_url":"https://api.github.com/users/rutor/followers","following_url":"https://api.github.com/users/rutor/following{/other_user}","gists_url":"https://api.github.com/users/rutor/gists{/gist_id}","starred_url":"https://api.github.com/users/rutor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutor/subscriptions","organizations_url":"https://api.github.com/users/rutor/orgs","repos_url":"https://api.github.com/users/rutor/repos","events_url":"https://api.github.com/users/rutor/events{/privacy}","received_events_url":"https://api.github.com/users/rutor/received_events","type":"User","site_admin":false},"body":"Misto `\"/\"` dej `{\"/\",\"\"}`. Zacne tim fungovat nejen /role/, ale i /role","created_at":"2018-12-16T17:15:51Z","updated_at":"2018-12-16T17:15:51Z","html_url":"https://github.com/rutor/PA165-projekt/pull/74#discussion_r241988361","pull_request_url":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rutor/PA165-projekt/pulls/comments/241988361"},"html":{"href":"https://github.com/rutor/PA165-projekt/pull/74#discussion_r241988361"},"pull_request":{"href":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74","id":238977984,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4OTc3OTg0","html_url":"https://github.com/rutor/PA165-projekt/pull/74","diff_url":"https://github.com/rutor/PA165-projekt/pull/74.diff","patch_url":"https://github.com/rutor/PA165-projekt/pull/74.patch","issue_url":"https://api.github.com/repos/rutor/PA165-projekt/issues/74","number":74,"state":"open","locked":false,"title":"Milestone3/role contr","user":{"login":"xdudasr","id":7438434,"node_id":"MDQ6VXNlcjc0Mzg0MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7438434?v=4","gravatar_id":"","url":"https://api.github.com/users/xdudasr","html_url":"https://github.com/xdudasr","followers_url":"https://api.github.com/users/xdudasr/followers","following_url":"https://api.github.com/users/xdudasr/following{/other_user}","gists_url":"https://api.github.com/users/xdudasr/gists{/gist_id}","starred_url":"https://api.github.com/users/xdudasr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdudasr/subscriptions","organizations_url":"https://api.github.com/users/xdudasr/orgs","repos_url":"https://api.github.com/users/xdudasr/repos","events_url":"https://api.github.com/users/xdudasr/events{/privacy}","received_events_url":"https://api.github.com/users/xdudasr/received_events","type":"User","site_admin":false},"body":"Role Controller","created_at":"2018-12-16T17:04:45Z","updated_at":"2018-12-16T17:15:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84f98875de2f68dea0ab8e7b722f74e69977224f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74/commits","review_comments_url":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74/comments","review_comment_url":"https://api.github.com/repos/rutor/PA165-projekt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rutor/PA165-projekt/issues/74/comments","statuses_url":"https://api.github.com/repos/rutor/PA165-projekt/statuses/9d11f380a0456078d9f25a40ddab0099d4216983","head":{"label":"rutor:milestone3/RoleContr","ref":"milestone3/RoleContr","sha":"9d11f380a0456078d9f25a40ddab0099d4216983","user":{"login":"rutor","id":10315791,"node_id":"MDQ6VXNlcjEwMzE1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/10315791?v=4","gravatar_id":"","url":"https://api.github.com/users/rutor","html_url":"https://github.com/rutor","followers_url":"https://api.github.com/users/rutor/followers","following_url":"https://api.github.com/users/rutor/following{/other_user}","gists_url":"https://api.github.com/users/rutor/gists{/gist_id}","starred_url":"https://api.github.com/users/rutor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutor/subscriptions","organizations_url":"https://api.github.com/users/rutor/orgs","repos_url":"https://api.github.com/users/rutor/repos","events_url":"https://api.github.com/users/rutor/events{/privacy}","received_events_url":"https://api.github.com/users/rutor/received_events","type":"User","site_admin":false},"repo":{"id":152389116,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzODkxMTY=","name":"PA165-projekt","full_name":"rutor/PA165-projekt","private":false,"owner":{"login":"rutor","id":10315791,"node_id":"MDQ6VXNlcjEwMzE1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/10315791?v=4","gravatar_id":"","url":"https://api.github.com/users/rutor","html_url":"https://github.com/rutor","followers_url":"https://api.github.com/users/rutor/followers","following_url":"https://api.github.com/users/rutor/following{/other_user}","gists_url":"https://api.github.com/users/rutor/gists{/gist_id}","starred_url":"https://api.github.com/users/rutor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutor/subscriptions","organizations_url":"https://api.github.com/users/rutor/orgs","repos_url":"https://api.github.com/users/rutor/repos","events_url":"https://api.github.com/users/rutor/events{/privacy}","received_events_url":"https://api.github.com/users/rutor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rutor/PA165-projekt","description":"Projekt do předmětu PA165","fork":false,"url":"https://api.github.com/repos/rutor/PA165-projekt","forks_url":"https://api.github.com/repos/rutor/PA165-projekt/forks","keys_url":"https://api.github.com/repos/rutor/PA165-projekt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rutor/PA165-projekt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rutor/PA165-projekt/teams","hooks_url":"https://api.github.com/repos/rutor/PA165-projekt/hooks","issue_events_url":"https://api.github.com/repos/rutor/PA165-projekt/issues/events{/number}","events_url":"https://api.github.com/repos/rutor/PA165-projekt/events","assignees_url":"https://api.github.com/repos/rutor/PA165-projekt/assignees{/user}","branches_url":"https://api.github.com/repos/rutor/PA165-projekt/branches{/branch}","tags_url":"https://api.github.com/repos/rutor/PA165-projekt/tags","blobs_url":"https://api.github.com/repos/rutor/PA165-projekt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rutor/PA165-projekt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rutor/PA165-projekt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rutor/PA165-projekt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rutor/PA165-projekt/statuses/{sha}","languages_url":"https://api.github.com/repos/rutor/PA165-projekt/languages","stargazers_url":"https://api.github.com/repos/rutor/PA165-projekt/stargazers","contributors_url":"https://api.github.com/repos/rutor/PA165-projekt/contributors","subscribers_url":"https://api.github.com/repos/rutor/PA165-projekt/subscribers","subscription_url":"https://api.github.com/repos/rutor/PA165-projekt/subscription","commits_url":"https://api.github.com/repos/rutor/PA165-projekt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rutor/PA165-projekt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rutor/PA165-projekt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rutor/PA165-projekt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rutor/PA165-projekt/contents/{+path}","compare_url":"https://api.github.com/repos/rutor/PA165-projekt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rutor/PA165-projekt/merges","archive_url":"https://api.github.com/repos/rutor/PA165-projekt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rutor/PA165-projekt/downloads","issues_url":"https://api.github.com/repos/rutor/PA165-projekt/issues{/number}","pulls_url":"https://api.github.com/repos/rutor/PA165-projekt/pulls{/number}","milestones_url":"https://api.github.com/repos/rutor/PA165-projekt/milestones{/number}","notifications_url":"https://api.github.com/repos/rutor/PA165-projekt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rutor/PA165-projekt/labels{/name}","releases_url":"https://api.github.com/repos/rutor/PA165-projekt/releases{/id}","deployments_url":"https://api.github.com/repos/rutor/PA165-projekt/deployments","created_at":"2018-10-10T08:28:48Z","updated_at":"2018-12-16T12:42:37Z","pushed_at":"2018-12-16T17:04:46Z","git_url":"git://github.com/rutor/PA165-projekt.git","ssh_url":"git@github.com:rutor/PA165-projekt.git","clone_url":"https://github.com/rutor/PA165-projekt.git","svn_url":"https://github.com/rutor/PA165-projekt","homepage":null,"size":5675,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"milestone3/integration"}},"base":{"label":"rutor:milestone3/integration","ref":"milestone3/integration","sha":"7f427c5783ea14a5bd8264777b38616e72553114","user":{"login":"rutor","id":10315791,"node_id":"MDQ6VXNlcjEwMzE1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/10315791?v=4","gravatar_id":"","url":"https://api.github.com/users/rutor","html_url":"https://github.com/rutor","followers_url":"https://api.github.com/users/rutor/followers","following_url":"https://api.github.com/users/rutor/following{/other_user}","gists_url":"https://api.github.com/users/rutor/gists{/gist_id}","starred_url":"https://api.github.com/users/rutor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutor/subscriptions","organizations_url":"https://api.github.com/users/rutor/orgs","repos_url":"https://api.github.com/users/rutor/repos","events_url":"https://api.github.com/users/rutor/events{/privacy}","received_events_url":"https://api.github.com/users/rutor/received_events","type":"User","site_admin":false},"repo":{"id":152389116,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzODkxMTY=","name":"PA165-projekt","full_name":"rutor/PA165-projekt","private":false,"owner":{"login":"rutor","id":10315791,"node_id":"MDQ6VXNlcjEwMzE1Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/10315791?v=4","gravatar_id":"","url":"https://api.github.com/users/rutor","html_url":"https://github.com/rutor","followers_url":"https://api.github.com/users/rutor/followers","following_url":"https://api.github.com/users/rutor/following{/other_user}","gists_url":"https://api.github.com/users/rutor/gists{/gist_id}","starred_url":"https://api.github.com/users/rutor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rutor/subscriptions","organizations_url":"https://api.github.com/users/rutor/orgs","repos_url":"https://api.github.com/users/rutor/repos","events_url":"https://api.github.com/users/rutor/events{/privacy}","received_events_url":"https://api.github.com/users/rutor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rutor/PA165-projekt","description":"Projekt do předmětu PA165","fork":false,"url":"https://api.github.com/repos/rutor/PA165-projekt","forks_url":"https://api.github.com/repos/rutor/PA165-projekt/forks","keys_url":"https://api.github.com/repos/rutor/PA165-projekt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rutor/PA165-projekt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rutor/PA165-projekt/teams","hooks_url":"https://api.github.com/repos/rutor/PA165-projekt/hooks","issue_events_url":"https://api.github.com/repos/rutor/PA165-projekt/issues/events{/number}","events_url":"https://api.github.com/repos/rutor/PA165-projekt/events","assignees_url":"https://api.github.com/repos/rutor/PA165-projekt/assignees{/user}","branches_url":"https://api.github.com/repos/rutor/PA165-projekt/branches{/branch}","tags_url":"https://api.github.com/repos/rutor/PA165-projekt/tags","blobs_url":"https://api.github.com/repos/rutor/PA165-projekt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rutor/PA165-projekt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rutor/PA165-projekt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rutor/PA165-projekt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rutor/PA165-projekt/statuses/{sha}","languages_url":"https://api.github.com/repos/rutor/PA165-projekt/languages","stargazers_url":"https://api.github.com/repos/rutor/PA165-projekt/stargazers","contributors_url":"https://api.github.com/repos/rutor/PA165-projekt/contributors","subscribers_url":"https://api.github.com/repos/rutor/PA165-projekt/subscribers","subscription_url":"https://api.github.com/repos/rutor/PA165-projekt/subscription","commits_url":"https://api.github.com/repos/rutor/PA165-projekt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rutor/PA165-projekt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rutor/PA165-projekt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rutor/PA165-projekt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rutor/PA165-projekt/contents/{+path}","compare_url":"https://api.github.com/repos/rutor/PA165-projekt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rutor/PA165-projekt/merges","archive_url":"https://api.github.com/repos/rutor/PA165-projekt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rutor/PA165-projekt/downloads","issues_url":"https://api.github.com/repos/rutor/PA165-projekt/issues{/number}","pulls_url":"https://api.github.com/repos/rutor/PA165-projekt/pulls{/number}","milestones_url":"https://api.github.com/repos/rutor/PA165-projekt/milestones{/number}","notifications_url":"https://api.github.com/repos/rutor/PA165-projekt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rutor/PA165-projekt/labels{/name}","releases_url":"https://api.github.com/repos/rutor/PA165-projekt/releases{/id}","deployments_url":"https://api.github.com/repos/rutor/PA165-projekt/deployments","created_at":"2018-10-10T08:28:48Z","updated_at":"2018-12-16T12:42:37Z","pushed_at":"2018-12-16T17:04:46Z","git_url":"git://github.com/rutor/PA165-projekt.git","ssh_url":"git@github.com:rutor/PA165-projekt.git","clone_url":"https://github.com/rutor/PA165-projekt.git","svn_url":"https://github.com/rutor/PA165-projekt","homepage":null,"size":5675,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"milestone3/integration"}},"_links":{"self":{"href":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74"},"html":{"href":"https://github.com/rutor/PA165-projekt/pull/74"},"issue":{"href":"https://api.github.com/repos/rutor/PA165-projekt/issues/74"},"comments":{"href":"https://api.github.com/repos/rutor/PA165-projekt/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/rutor/PA165-projekt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rutor/PA165-projekt/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/rutor/PA165-projekt/statuses/9d11f380a0456078d9f25a40ddab0099d4216983"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"rutor"}}