{"action":"created","comment":{"url":"https://api.github.com/repos/kitodo/kitodo-production/pulls/comments/240602763","pull_request_review_id":183666543,"id":240602763,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDYwMjc2Mw==","diff_hunk":"@@ -0,0 +1,118 @@\n+/*\n+ * (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>\n+ *\n+ * This file is part of the Kitodo project.\n+ *\n+ * It is licensed under GNU General Public License version 3 or later.\n+ *\n+ * For the full copyright and license information, please read the\n+ * GPL3-License.txt file that was distributed with this source code.\n+ */\n+\n+package org.kitodo.dataformat.access;\n+\n+import java.util.Objects;\n+import java.util.Set;\n+import java.util.stream.Collectors;\n+\n+import org.kitodo.api.dataformat.mets.UseXmlAttributeAccessInterface;\n+import org.kitodo.dataformat.metskitodo.MetsType.FileSec.FileGrp;\n+\n+/**\n+ * A variant of the {@code MediaUnit}s for a particular use. By use is meant a\n+ * technical form of use. Therefore, the variant has as technical property the\n+ * Internet MIME type. Examples of variants include thumbnails, full resolution\n+ * images, file ready to print, OCR results, etc. For Production, a variant is\n+ * always linked to a MIME type, it is not possible to have mixed MIME types in\n+ * the same usage variant.\n+ */\n+public class MediaVariant implements UseXmlAttributeAccessInterface {\n+    /**\n+     * Specifying the Internet MIME type for this type of use.\n+     */\n+    private String mimeType;\n+\n+    /**\n+     * Identifier of use. In terms of METS, this is a string, but if the\n+     * generated METS file is to be used with the DFG Viewer this string must be\n+     * a prescribed value, depending on its intended use.\n+     * \n+     * @see \"https://www.zvdd.de/fileadmin/AGSDD-Redaktion/METS_Anwendungsprofil_2.0.pdf#page=12\"\n+     */\n+    private String use;\n+\n+    /**\n+     * Public constructor for a media variant. This constructor can be used with\n+     * the service loader to create a new variant.\n+     */\n+    public MediaVariant() {\n+    }\n+\n+    /**\n+     * Constructor that creates a variant from a METS {@code <fileGrp>}.\n+     * \n+     * @param fileGrp\n+     *            METS {@code <fileGrp>} from which a media variant is to be\n+     *            created\n+     * @throws IllegalArgumentException\n+     *             if the MIME type is mixed within the METS {@code <fileGrp>}\n+     */\n+    MediaVariant(FileGrp fileGrp) {\n+        this.use = fileGrp.getUSE();\n+        Set<String> mimeTypes = fileGrp.getFile().parallelStream().map(fileType -> fileType.getMIMETYPE())","path":"Kitodo-DataFormat/src/main/java/org/kitodo/dataformat/access/MediaVariant.java","position":62,"original_position":62,"commit_id":"7b210593d4d04e8a7f3ef4a2512fc3f5ae487673","original_commit_id":"3db0a7af16736b57f5898fcee3b7db3693623499","user":{"login":"matthias-ronge","id":3040657,"node_id":"MDQ6VXNlcjMwNDA2NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/3040657?v=4","gravatar_id":"","url":"https://api.github.com/users/matthias-ronge","html_url":"https://github.com/matthias-ronge","followers_url":"https://api.github.com/users/matthias-ronge/followers","following_url":"https://api.github.com/users/matthias-ronge/following{/other_user}","gists_url":"https://api.github.com/users/matthias-ronge/gists{/gist_id}","starred_url":"https://api.github.com/users/matthias-ronge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthias-ronge/subscriptions","organizations_url":"https://api.github.com/users/matthias-ronge/orgs","repos_url":"https://api.github.com/users/matthias-ronge/repos","events_url":"https://api.github.com/users/matthias-ronge/events{/privacy}","received_events_url":"https://api.github.com/users/matthias-ronge/received_events","type":"User","site_admin":false},"body":"These are the method names that JXC (the generator for JAXB) extracts from METS. In METS, the attributes are written in uppercase letters. I have no influence on that.","created_at":"2018-12-11T13:10:15Z","updated_at":"2018-12-11T13:10:16Z","html_url":"https://github.com/kitodo/kitodo-production/pull/2049#discussion_r240602763","pull_request_url":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kitodo/kitodo-production/pulls/comments/240602763"},"html":{"href":"https://github.com/kitodo/kitodo-production/pull/2049#discussion_r240602763"},"pull_request":{"href":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049"}},"in_reply_to_id":240553461},"pull_request":{"url":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049","id":237246684,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MjQ2Njg0","html_url":"https://github.com/kitodo/kitodo-production/pull/2049","diff_url":"https://github.com/kitodo/kitodo-production/pull/2049.diff","patch_url":"https://github.com/kitodo/kitodo-production/pull/2049.patch","issue_url":"https://api.github.com/repos/kitodo/kitodo-production/issues/2049","number":2049,"state":"closed","locked":false,"title":"Implement the METS interface (2)","user":{"login":"matthias-ronge","id":3040657,"node_id":"MDQ6VXNlcjMwNDA2NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/3040657?v=4","gravatar_id":"","url":"https://api.github.com/users/matthias-ronge","html_url":"https://github.com/matthias-ronge","followers_url":"https://api.github.com/users/matthias-ronge/followers","following_url":"https://api.github.com/users/matthias-ronge/following{/other_user}","gists_url":"https://api.github.com/users/matthias-ronge/gists{/gist_id}","starred_url":"https://api.github.com/users/matthias-ronge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthias-ronge/subscriptions","organizations_url":"https://api.github.com/users/matthias-ronge/orgs","repos_url":"https://api.github.com/users/matthias-ronge/repos","events_url":"https://api.github.com/users/matthias-ronge/events{/privacy}","received_events_url":"https://api.github.com/users/matthias-ronge/received_events","type":"User","site_admin":false},"body":"This branch contains the access classes. To make the content easier to understand, look at the graphic on Intranet page “Das neue Production-Internformat” under the heading “Interne Objekte” as well.","created_at":"2018-12-10T09:17:29Z","updated_at":"2018-12-11T13:10:16Z","closed_at":"2018-12-11T11:28:18Z","merged_at":"2018-12-11T11:28:18Z","merge_commit_sha":"7b210593d4d04e8a7f3ef4a2512fc3f5ae487673","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049/commits","review_comments_url":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049/comments","review_comment_url":"https://api.github.com/repos/kitodo/kitodo-production/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kitodo/kitodo-production/issues/2049/comments","statuses_url":"https://api.github.com/repos/kitodo/kitodo-production/statuses/7b210593d4d04e8a7f3ef4a2512fc3f5ae487673","head":{"label":"matthias-ronge:KIT-1159_2","ref":"KIT-1159_2","sha":"7b210593d4d04e8a7f3ef4a2512fc3f5ae487673","user":{"login":"matthias-ronge","id":3040657,"node_id":"MDQ6VXNlcjMwNDA2NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/3040657?v=4","gravatar_id":"","url":"https://api.github.com/users/matthias-ronge","html_url":"https://github.com/matthias-ronge","followers_url":"https://api.github.com/users/matthias-ronge/followers","following_url":"https://api.github.com/users/matthias-ronge/following{/other_user}","gists_url":"https://api.github.com/users/matthias-ronge/gists{/gist_id}","starred_url":"https://api.github.com/users/matthias-ronge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthias-ronge/subscriptions","organizations_url":"https://api.github.com/users/matthias-ronge/orgs","repos_url":"https://api.github.com/users/matthias-ronge/repos","events_url":"https://api.github.com/users/matthias-ronge/events{/privacy}","received_events_url":"https://api.github.com/users/matthias-ronge/received_events","type":"User","site_admin":false},"repo":{"id":8181005,"node_id":"MDEwOlJlcG9zaXRvcnk4MTgxMDA1","name":"kitodo-production","full_name":"matthias-ronge/kitodo-production","private":false,"owner":{"login":"matthias-ronge","id":3040657,"node_id":"MDQ6VXNlcjMwNDA2NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/3040657?v=4","gravatar_id":"","url":"https://api.github.com/users/matthias-ronge","html_url":"https://github.com/matthias-ronge","followers_url":"https://api.github.com/users/matthias-ronge/followers","following_url":"https://api.github.com/users/matthias-ronge/following{/other_user}","gists_url":"https://api.github.com/users/matthias-ronge/gists{/gist_id}","starred_url":"https://api.github.com/users/matthias-ronge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthias-ronge/subscriptions","organizations_url":"https://api.github.com/users/matthias-ronge/orgs","repos_url":"https://api.github.com/users/matthias-ronge/repos","events_url":"https://api.github.com/users/matthias-ronge/events{/privacy}","received_events_url":"https://api.github.com/users/matthias-ronge/received_events","type":"User","site_admin":false},"html_url":"https://github.com/matthias-ronge/kitodo-production","description":"Kitodo Production","fork":true,"url":"https://api.github.com/repos/matthias-ronge/kitodo-production","forks_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/forks","keys_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/teams","hooks_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/hooks","issue_events_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/issues/events{/number}","events_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/events","assignees_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/assignees{/user}","branches_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/branches{/branch}","tags_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/tags","blobs_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/statuses/{sha}","languages_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/languages","stargazers_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/stargazers","contributors_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/contributors","subscribers_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/subscribers","subscription_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/subscription","commits_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/contents/{+path}","compare_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/merges","archive_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/downloads","issues_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/issues{/number}","pulls_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/pulls{/number}","milestones_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/milestones{/number}","notifications_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/labels{/name}","releases_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/releases{/id}","deployments_url":"https://api.github.com/repos/matthias-ronge/kitodo-production/deployments","created_at":"2013-02-13T14:51:42Z","updated_at":"2018-09-26T07:22:46Z","pushed_at":"2018-12-11T13:01:49Z","git_url":"git://github.com/matthias-ronge/kitodo-production.git","ssh_url":"git@github.com:matthias-ronge/kitodo-production.git","clone_url":"https://github.com/matthias-ronge/kitodo-production.git","svn_url":"https://github.com/matthias-ronge/kitodo-production","homepage":"https://www.kitodo.org/en/software/kitodoproduction/","size":156118,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"default"}},"base":{"label":"kitodo:master","ref":"master","sha":"445d7aa37a4979c0c7be7fc3e4e8673d15b80438","user":{"login":"kitodo","id":18034325,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MDM0MzI1","avatar_url":"https://avatars3.githubusercontent.com/u/18034325?v=4","gravatar_id":"","url":"https://api.github.com/users/kitodo","html_url":"https://github.com/kitodo","followers_url":"https://api.github.com/users/kitodo/followers","following_url":"https://api.github.com/users/kitodo/following{/other_user}","gists_url":"https://api.github.com/users/kitodo/gists{/gist_id}","starred_url":"https://api.github.com/users/kitodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitodo/subscriptions","organizations_url":"https://api.github.com/users/kitodo/orgs","repos_url":"https://api.github.com/users/kitodo/repos","events_url":"https://api.github.com/users/kitodo/events{/privacy}","received_events_url":"https://api.github.com/users/kitodo/received_events","type":"Organization","site_admin":false},"repo":{"id":4506938,"node_id":"MDEwOlJlcG9zaXRvcnk0NTA2OTM4","name":"kitodo-production","full_name":"kitodo/kitodo-production","private":false,"owner":{"login":"kitodo","id":18034325,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MDM0MzI1","avatar_url":"https://avatars3.githubusercontent.com/u/18034325?v=4","gravatar_id":"","url":"https://api.github.com/users/kitodo","html_url":"https://github.com/kitodo","followers_url":"https://api.github.com/users/kitodo/followers","following_url":"https://api.github.com/users/kitodo/following{/other_user}","gists_url":"https://api.github.com/users/kitodo/gists{/gist_id}","starred_url":"https://api.github.com/users/kitodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitodo/subscriptions","organizations_url":"https://api.github.com/users/kitodo/orgs","repos_url":"https://api.github.com/users/kitodo/repos","events_url":"https://api.github.com/users/kitodo/events{/privacy}","received_events_url":"https://api.github.com/users/kitodo/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kitodo/kitodo-production","description":"Kitodo.Production","fork":false,"url":"https://api.github.com/repos/kitodo/kitodo-production","forks_url":"https://api.github.com/repos/kitodo/kitodo-production/forks","keys_url":"https://api.github.com/repos/kitodo/kitodo-production/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kitodo/kitodo-production/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kitodo/kitodo-production/teams","hooks_url":"https://api.github.com/repos/kitodo/kitodo-production/hooks","issue_events_url":"https://api.github.com/repos/kitodo/kitodo-production/issues/events{/number}","events_url":"https://api.github.com/repos/kitodo/kitodo-production/events","assignees_url":"https://api.github.com/repos/kitodo/kitodo-production/assignees{/user}","branches_url":"https://api.github.com/repos/kitodo/kitodo-production/branches{/branch}","tags_url":"https://api.github.com/repos/kitodo/kitodo-production/tags","blobs_url":"https://api.github.com/repos/kitodo/kitodo-production/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kitodo/kitodo-production/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kitodo/kitodo-production/git/refs{/sha}","trees_url":"https://api.github.com/repos/kitodo/kitodo-production/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kitodo/kitodo-production/statuses/{sha}","languages_url":"https://api.github.com/repos/kitodo/kitodo-production/languages","stargazers_url":"https://api.github.com/repos/kitodo/kitodo-production/stargazers","contributors_url":"https://api.github.com/repos/kitodo/kitodo-production/contributors","subscribers_url":"https://api.github.com/repos/kitodo/kitodo-production/subscribers","subscription_url":"https://api.github.com/repos/kitodo/kitodo-production/subscription","commits_url":"https://api.github.com/repos/kitodo/kitodo-production/commits{/sha}","git_commits_url":"https://api.github.com/repos/kitodo/kitodo-production/git/commits{/sha}","comments_url":"https://api.github.com/repos/kitodo/kitodo-production/comments{/number}","issue_comment_url":"https://api.github.com/repos/kitodo/kitodo-production/issues/comments{/number}","contents_url":"https://api.github.com/repos/kitodo/kitodo-production/contents/{+path}","compare_url":"https://api.github.com/repos/kitodo/kitodo-production/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kitodo/kitodo-production/merges","archive_url":"https://api.github.com/repos/kitodo/kitodo-production/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kitodo/kitodo-production/downloads","issues_url":"https://api.github.com/repos/kitodo/kitodo-production/issues{/number}","pulls_url":"https://api.github.com/repos/kitodo/kitodo-production/pulls{/number}","milestones_url":"https://api.github.com/repos/kitodo/kitodo-production/milestones{/number}","notifications_url":"https://api.github.com/repos/kitodo/kitodo-production/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kitodo/kitodo-production/labels{/name}","releases_url":"https://api.github.com/repos/kitodo/kitodo-production/releases{/id}","deployments_url":"https://api.github.com/repos/kitodo/kitodo-production/deployments","created_at":"2012-05-31T11:36:27Z","updated_at":"2018-12-11T12:27:55Z","pushed_at":"2018-12-11T13:04:20Z","git_url":"git://github.com/kitodo/kitodo-production.git","ssh_url":"git@github.com:kitodo/kitodo-production.git","clone_url":"https://github.com/kitodo/kitodo-production.git","svn_url":"https://github.com/kitodo/kitodo-production","homepage":"http://www.kitodo.org/software/kitodoproduction/","size":155731,"stargazers_count":27,"watchers_count":27,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":36,"open_issues":74,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049"},"html":{"href":"https://github.com/kitodo/kitodo-production/pull/2049"},"issue":{"href":"https://api.github.com/repos/kitodo/kitodo-production/issues/2049"},"comments":{"href":"https://api.github.com/repos/kitodo/kitodo-production/issues/2049/comments"},"review_comments":{"href":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049/comments"},"review_comment":{"href":"https://api.github.com/repos/kitodo/kitodo-production/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kitodo/kitodo-production/pulls/2049/commits"},"statuses":{"href":"https://api.github.com/repos/kitodo/kitodo-production/statuses/7b210593d4d04e8a7f3ef4a2512fc3f5ae487673"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"matthias-ronge"}}