Skip to content

Package: VideoMediaItem

VideoMediaItem

nameinstructionbranchcomplexitylinemethod
VideoMediaItem(MediaFolder, String, String, String, String)
M: 38 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getAudioFile()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getId()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getMetadata()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getMimeType()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getParent()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPath()
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getRelativePath()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getTitle()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getUrl()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
toString()
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * *********************************************************************************************************************
3: *
4: * blueMarine II: Semantic Media Centre
5: * http://tidalwave.it/projects/bluemarine2
6: *
7: * Copyright (C) 2015 - 2021 by Tidalwave s.a.s. (http://tidalwave.it)
8: *
9: * *********************************************************************************************************************
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
12: * the License. You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
17: * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations under the License.
19: *
20: * *********************************************************************************************************************
21: *
22: * git clone https://bitbucket.org/tidalwave/bluemarine2-src
23: * git clone https://github.com/tidalwave-it/bluemarine2-src
24: *
25: * *********************************************************************************************************************
26: */
27: package it.tidalwave.bluemarine2.service.vimeo.impl;
28:
29: import javax.annotation.Nonnull;
30: import java.nio.file.Path;
31: import java.util.Optional;
32: import it.tidalwave.bluemarine2.model.MediaFolder;
33: import it.tidalwave.bluemarine2.model.MediaItem;
34: import it.tidalwave.bluemarine2.model.audio.AudioFile;
35: import it.tidalwave.bluemarine2.model.spi.PathAwareEntity;
36: import it.tidalwave.bluemarine2.model.spi.EntityWithRoles;
37: import lombok.Getter;
38: import lombok.RequiredArgsConstructor;
39: import lombok.ToString;
40:
41: /***********************************************************************************************************************
42: *
43: * At the moment there's no support for images in the Model.
44: *
45: * @author Fabrizio Giudici
46: * @version $Id$
47: *
48: **********************************************************************************************************************/
49: @RequiredArgsConstructor @ToString
50: class VideoMediaItem extends EntityWithRoles implements MediaItem
51: {
52: @Nonnull
53: private final MediaFolder parent;
54:
55: @Getter @Nonnull
56: private final String id;
57:
58: @Getter @Nonnull
59: private final String title;
60:
61: @Getter @Nonnull
62: private final String mimeType;
63:
64: @Getter @Nonnull
65: private final String url;
66:
67: @Override @Nonnull
68: public Path getPath()
69: {
70: return parent.getPath().resolve(id);
71: }
72:
73: @Override @Nonnull
74: public Path getRelativePath()
75: {
76: throw new UnsupportedOperationException("Not supported yet.");
77: }
78:
79: @Override @Nonnull
80: public Optional<PathAwareEntity> getParent()
81: {
82: return Optional.of(parent);
83: }
84:
85: @Override @Nonnull
86: public Metadata getMetadata()
87: {
88: throw new UnsupportedOperationException("Not supported yet.");
89: }
90:
91: @Override @Nonnull
92: public AudioFile getAudioFile()
93: {
94: throw new UnsupportedOperationException("Not supported yet.");
95: }
96: }