-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from europeana/feat/MET-5798_Implement_media_…
…processing_3d_links Feat/MET-5798 Add result of 3D media processing in mongo and solr
- Loading branch information
Showing
5 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...ons/src/main/java/eu/europeana/corelib/definitions/edm/model/metainfo/ThreeDMetaInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package eu.europeana.corelib.definitions.edm.model.metainfo; | ||
|
||
public interface ThreeDMetaInfo { | ||
|
||
String getMimeType(); | ||
|
||
Long getFileSize(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...lib-storage/src/main/java/eu/europeana/corelib/edm/model/metainfo/ThreeDMetaInfoImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package eu.europeana.corelib.edm.model.metainfo; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import dev.morphia.annotations.Embedded; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
@Embedded(useDiscriminator = false) | ||
public class ThreeDMetaInfoImpl implements eu.europeana.corelib.definitions.edm.model.metainfo.ThreeDMetaInfo{ | ||
|
||
/** | ||
* An Internet media type is a standard identifier used on the | ||
* Internet to indicate the type of data that a file contains. | ||
*/ | ||
private String mimeType; | ||
|
||
/** | ||
* The size of the file in bytes. | ||
*/ | ||
private Long fileSize; | ||
|
||
public ThreeDMetaInfoImpl(String mimeType, Long fileSize) { | ||
this.mimeType = mimeType; | ||
this.fileSize = fileSize; | ||
} | ||
|
||
public ThreeDMetaInfoImpl() { | ||
this.mimeType = null; | ||
this.fileSize = null; | ||
} | ||
|
||
public String getMimeType() { | ||
return mimeType; | ||
} | ||
|
||
|
||
public Long getFileSize() { | ||
return fileSize; | ||
} | ||
|
||
public void setMimeType(String mimeType) { | ||
this.mimeType = mimeType; | ||
} | ||
|
||
public void setFileSize(Long fileSize) { | ||
this.fileSize = fileSize; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters