{"action":"created","comment":{"url":"https://api.github.com/repos/sw360/sw360portal/pulls/comments/70776377","id":70776377,"diff_hunk":"@@ -0,0 +1,29 @@\n+/*\n+ * Copyright Siemens AG, 2016. Part of the SW360 Portal Project.\n+ *\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v1.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ */\n+package com.siemens.sw360.cliservice.parsers;\n+\n+import com.siemens.sw360.datahandler.couchdb.AttachmentConnector;\n+import com.siemens.sw360.datahandler.thrift.attachments.AttachmentContent;\n+import com.siemens.sw360.datahandler.thrift.cliservice.CopyrightLicenseInfo;\n+\n+/**\n+ * @author: alex.borodin@evosoft.com\n+ */\n+public abstract class CopyrightLicenseInfoParser {\n+    //    private static final Logger log = Logger.getLogger(CLIHandler.class);\n+    public static final String FILETYPE_PARSING_IMPOSSIBLE = \"NONE\";\n+    protected final AttachmentConnector attachmentConnector;\n+\n+    protected CopyrightLicenseInfoParser(AttachmentConnector attachmentConnector){\n+        this.attachmentConnector = attachmentConnector;\n+    }\n+\n+    public abstract boolean isApplicableTo(AttachmentContent attachmentContent);\n+    public abstract CopyrightLicenseInfo getCLI(AttachmentContent attachmentContent);","path":"backend/src/src-cliservice/src/main/java/com/siemens/sw360/cliservice/parsers/CopyrightLicenseInfoParser.java","position":28,"original_position":28,"commit_id":"2ae651922481843d3989523cf2146eb106330853","original_commit_id":"2ae651922481843d3989523cf2146eb106330853","user":{"login":"maximilianhuber","id":1187050,"avatar_url":"https://avatars.githubusercontent.com/u/1187050?v=3","gravatar_id":"","url":"https://api.github.com/users/maximilianhuber","html_url":"https://github.com/maximilianhuber","followers_url":"https://api.github.com/users/maximilianhuber/followers","following_url":"https://api.github.com/users/maximilianhuber/following{/other_user}","gists_url":"https://api.github.com/users/maximilianhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/maximilianhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximilianhuber/subscriptions","organizations_url":"https://api.github.com/users/maximilianhuber/orgs","repos_url":"https://api.github.com/users/maximilianhuber/repos","events_url":"https://api.github.com/users/maximilianhuber/events{/privacy}","received_events_url":"https://api.github.com/users/maximilianhuber/received_events","type":"User","site_admin":false},"body":"What about returning `Optional<CopyrightLicenseInfo>` to signal parsing problems?","created_at":"2016-07-14T09:35:21Z","updated_at":"2016-07-14T09:35:21Z","html_url":"https://github.com/sw360/sw360portal/pull/195#discussion_r70776377","pull_request_url":"https://api.github.com/repos/sw360/sw360portal/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/sw360/sw360portal/pulls/comments/70776377"},"html":{"href":"https://github.com/sw360/sw360portal/pull/195#discussion_r70776377"},"pull_request":{"href":"https://api.github.com/repos/sw360/sw360portal/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/sw360/sw360portal/pulls/195","id":77280890,"html_url":"https://github.com/sw360/sw360portal/pull/195","diff_url":"https://github.com/sw360/sw360portal/pull/195.diff","patch_url":"https://github.com/sw360/sw360portal/pull/195.patch","issue_url":"https://api.github.com/repos/sw360/sw360portal/issues/195","number":195,"state":"open","locked":false,"title":"CopyrightLicenseInfo service","user":{"login":"alex-evo","id":16780167,"avatar_url":"https://avatars.githubusercontent.com/u/16780167?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-evo","html_url":"https://github.com/alex-evo","followers_url":"https://api.github.com/users/alex-evo/followers","following_url":"https://api.github.com/users/alex-evo/following{/other_user}","gists_url":"https://api.github.com/users/alex-evo/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-evo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-evo/subscriptions","organizations_url":"https://api.github.com/users/alex-evo/orgs","repos_url":"https://api.github.com/users/alex-evo/repos","events_url":"https://api.github.com/users/alex-evo/events{/privacy}","received_events_url":"https://api.github.com/users/alex-evo/received_events","type":"User","site_admin":false},"body":"is hereby open for discussion","created_at":"2016-07-13T12:37:03Z","updated_at":"2016-07-14T09:35:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb0a5908fd50b86ee45e92eab21a27dd11cd316d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sw360/sw360portal/pulls/195/commits","review_comments_url":"https://api.github.com/repos/sw360/sw360portal/pulls/195/comments","review_comment_url":"https://api.github.com/repos/sw360/sw360portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sw360/sw360portal/issues/195/comments","statuses_url":"https://api.github.com/repos/sw360/sw360portal/statuses/2ae651922481843d3989523cf2146eb106330853","head":{"label":"sw360:dev/cliService#180","ref":"dev/cliService#180","sha":"2ae651922481843d3989523cf2146eb106330853","user":{"login":"sw360","id":16389175,"avatar_url":"https://avatars.githubusercontent.com/u/16389175?v=3","gravatar_id":"","url":"https://api.github.com/users/sw360","html_url":"https://github.com/sw360","followers_url":"https://api.github.com/users/sw360/followers","following_url":"https://api.github.com/users/sw360/following{/other_user}","gists_url":"https://api.github.com/users/sw360/gists{/gist_id}","starred_url":"https://api.github.com/users/sw360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw360/subscriptions","organizations_url":"https://api.github.com/users/sw360/orgs","repos_url":"https://api.github.com/users/sw360/repos","events_url":"https://api.github.com/users/sw360/events{/privacy}","received_events_url":"https://api.github.com/users/sw360/received_events","type":"Organization","site_admin":false},"repo":{"id":43326581,"name":"sw360portal","full_name":"sw360/sw360portal","owner":{"login":"sw360","id":16389175,"avatar_url":"https://avatars.githubusercontent.com/u/16389175?v=3","gravatar_id":"","url":"https://api.github.com/users/sw360","html_url":"https://github.com/sw360","followers_url":"https://api.github.com/users/sw360/followers","following_url":"https://api.github.com/users/sw360/following{/other_user}","gists_url":"https://api.github.com/users/sw360/gists{/gist_id}","starred_url":"https://api.github.com/users/sw360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw360/subscriptions","organizations_url":"https://api.github.com/users/sw360/orgs","repos_url":"https://api.github.com/users/sw360/repos","events_url":"https://api.github.com/users/sw360/events{/privacy}","received_events_url":"https://api.github.com/users/sw360/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sw360/sw360portal","description":"A software component catalogue application - designed to work with FOSSology.","fork":false,"url":"https://api.github.com/repos/sw360/sw360portal","forks_url":"https://api.github.com/repos/sw360/sw360portal/forks","keys_url":"https://api.github.com/repos/sw360/sw360portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sw360/sw360portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sw360/sw360portal/teams","hooks_url":"https://api.github.com/repos/sw360/sw360portal/hooks","issue_events_url":"https://api.github.com/repos/sw360/sw360portal/issues/events{/number}","events_url":"https://api.github.com/repos/sw360/sw360portal/events","assignees_url":"https://api.github.com/repos/sw360/sw360portal/assignees{/user}","branches_url":"https://api.github.com/repos/sw360/sw360portal/branches{/branch}","tags_url":"https://api.github.com/repos/sw360/sw360portal/tags","blobs_url":"https://api.github.com/repos/sw360/sw360portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sw360/sw360portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sw360/sw360portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sw360/sw360portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sw360/sw360portal/statuses/{sha}","languages_url":"https://api.github.com/repos/sw360/sw360portal/languages","stargazers_url":"https://api.github.com/repos/sw360/sw360portal/stargazers","contributors_url":"https://api.github.com/repos/sw360/sw360portal/contributors","subscribers_url":"https://api.github.com/repos/sw360/sw360portal/subscribers","subscription_url":"https://api.github.com/repos/sw360/sw360portal/subscription","commits_url":"https://api.github.com/repos/sw360/sw360portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sw360/sw360portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sw360/sw360portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sw360/sw360portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sw360/sw360portal/contents/{+path}","compare_url":"https://api.github.com/repos/sw360/sw360portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sw360/sw360portal/merges","archive_url":"https://api.github.com/repos/sw360/sw360portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sw360/sw360portal/downloads","issues_url":"https://api.github.com/repos/sw360/sw360portal/issues{/number}","pulls_url":"https://api.github.com/repos/sw360/sw360portal/pulls{/number}","milestones_url":"https://api.github.com/repos/sw360/sw360portal/milestones{/number}","notifications_url":"https://api.github.com/repos/sw360/sw360portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sw360/sw360portal/labels{/name}","releases_url":"https://api.github.com/repos/sw360/sw360portal/releases{/id}","deployments_url":"https://api.github.com/repos/sw360/sw360portal/deployments","created_at":"2015-09-28T20:56:14Z","updated_at":"2016-06-27T06:40:11Z","pushed_at":"2016-07-13T13:40:20Z","git_url":"git://github.com/sw360/sw360portal.git","ssh_url":"git@github.com:sw360/sw360portal.git","clone_url":"https://github.com/sw360/sw360portal.git","svn_url":"https://github.com/sw360/sw360portal","homepage":null,"size":4739,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":58,"forks":12,"open_issues":58,"watchers":7,"default_branch":"master"}},"base":{"label":"sw360:master","ref":"master","sha":"52d0fae41fa2a833a3262d11e0f9e2c337bdced4","user":{"login":"sw360","id":16389175,"avatar_url":"https://avatars.githubusercontent.com/u/16389175?v=3","gravatar_id":"","url":"https://api.github.com/users/sw360","html_url":"https://github.com/sw360","followers_url":"https://api.github.com/users/sw360/followers","following_url":"https://api.github.com/users/sw360/following{/other_user}","gists_url":"https://api.github.com/users/sw360/gists{/gist_id}","starred_url":"https://api.github.com/users/sw360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw360/subscriptions","organizations_url":"https://api.github.com/users/sw360/orgs","repos_url":"https://api.github.com/users/sw360/repos","events_url":"https://api.github.com/users/sw360/events{/privacy}","received_events_url":"https://api.github.com/users/sw360/received_events","type":"Organization","site_admin":false},"repo":{"id":43326581,"name":"sw360portal","full_name":"sw360/sw360portal","owner":{"login":"sw360","id":16389175,"avatar_url":"https://avatars.githubusercontent.com/u/16389175?v=3","gravatar_id":"","url":"https://api.github.com/users/sw360","html_url":"https://github.com/sw360","followers_url":"https://api.github.com/users/sw360/followers","following_url":"https://api.github.com/users/sw360/following{/other_user}","gists_url":"https://api.github.com/users/sw360/gists{/gist_id}","starred_url":"https://api.github.com/users/sw360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sw360/subscriptions","organizations_url":"https://api.github.com/users/sw360/orgs","repos_url":"https://api.github.com/users/sw360/repos","events_url":"https://api.github.com/users/sw360/events{/privacy}","received_events_url":"https://api.github.com/users/sw360/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sw360/sw360portal","description":"A software component catalogue application - designed to work with FOSSology.","fork":false,"url":"https://api.github.com/repos/sw360/sw360portal","forks_url":"https://api.github.com/repos/sw360/sw360portal/forks","keys_url":"https://api.github.com/repos/sw360/sw360portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sw360/sw360portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sw360/sw360portal/teams","hooks_url":"https://api.github.com/repos/sw360/sw360portal/hooks","issue_events_url":"https://api.github.com/repos/sw360/sw360portal/issues/events{/number}","events_url":"https://api.github.com/repos/sw360/sw360portal/events","assignees_url":"https://api.github.com/repos/sw360/sw360portal/assignees{/user}","branches_url":"https://api.github.com/repos/sw360/sw360portal/branches{/branch}","tags_url":"https://api.github.com/repos/sw360/sw360portal/tags","blobs_url":"https://api.github.com/repos/sw360/sw360portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sw360/sw360portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sw360/sw360portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sw360/sw360portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sw360/sw360portal/statuses/{sha}","languages_url":"https://api.github.com/repos/sw360/sw360portal/languages","stargazers_url":"https://api.github.com/repos/sw360/sw360portal/stargazers","contributors_url":"https://api.github.com/repos/sw360/sw360portal/contributors","subscribers_url":"https://api.github.com/repos/sw360/sw360portal/subscribers","subscription_url":"https://api.github.com/repos/sw360/sw360portal/subscription","commits_url":"https://api.github.com/repos/sw360/sw360portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sw360/sw360portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sw360/sw360portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sw360/sw360portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sw360/sw360portal/contents/{+path}","compare_url":"https://api.github.com/repos/sw360/sw360portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sw360/sw360portal/merges","archive_url":"https://api.github.com/repos/sw360/sw360portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sw360/sw360portal/downloads","issues_url":"https://api.github.com/repos/sw360/sw360portal/issues{/number}","pulls_url":"https://api.github.com/repos/sw360/sw360portal/pulls{/number}","milestones_url":"https://api.github.com/repos/sw360/sw360portal/milestones{/number}","notifications_url":"https://api.github.com/repos/sw360/sw360portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sw360/sw360portal/labels{/name}","releases_url":"https://api.github.com/repos/sw360/sw360portal/releases{/id}","deployments_url":"https://api.github.com/repos/sw360/sw360portal/deployments","created_at":"2015-09-28T20:56:14Z","updated_at":"2016-06-27T06:40:11Z","pushed_at":"2016-07-13T13:40:20Z","git_url":"git://github.com/sw360/sw360portal.git","ssh_url":"git@github.com:sw360/sw360portal.git","clone_url":"https://github.com/sw360/sw360portal.git","svn_url":"https://github.com/sw360/sw360portal","homepage":null,"size":4739,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":58,"forks":12,"open_issues":58,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sw360/sw360portal/pulls/195"},"html":{"href":"https://github.com/sw360/sw360portal/pull/195"},"issue":{"href":"https://api.github.com/repos/sw360/sw360portal/issues/195"},"comments":{"href":"https://api.github.com/repos/sw360/sw360portal/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/sw360/sw360portal/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/sw360/sw360portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sw360/sw360portal/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/sw360/sw360portal/statuses/2ae651922481843d3989523cf2146eb106330853"}}}}
{"actor":{"display_login":"maximilianhuber"}}