-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies for CITS ERMS #302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
checkstyle
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|239 col 17| Variable 'representationMETSWrapper' should be declared final.
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|239 col 44| Parameter representation should be final.
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|239 col 61| Variable 'representation' should be declared final.
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|239 col 77| Parameter representationId should be final.
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|239 col 84| Variable 'representationId' should be declared final.
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|253 col 20| Variable 'fileType' should be declared final.
src/main/java/org/roda_project/commons_ip2/model/impl/eark/EARKUtils.java|259 col 61| Unnecessary parentheses around expression.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 5| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 11| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 26| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 34| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 42| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 51| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 60| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 67| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentInformationType.java|18 col 74| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentType.java|29| Line is longer than 120 characters (found 127).
src/main/java/org/roda_project/commons_ip2/model/IPContentType.java|29 col 5| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentType.java|29 col 27| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentType.java|29 col 49| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentType.java|29 col 69| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/model/IPContentType.java|29 col 105| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip/utils/IPEnums.java|36 col 5| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip/utils/IPEnums.java|36 col 13| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip/utils/IPEnums.java|36 col 20| Missing a Javadoc comment.
@@ -59,6 +59,21 @@ public InputStream getMetsRootInputStream(final Path path) throws FileNotFoundEx | |||
return new FileInputStream(metsPath); | |||
} | |||
|
|||
public InputStream getErmsInputStream(final Path path) throws FileNotFoundException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
} | ||
} | ||
if (ermsPath == null) { | ||
LOGGER.debug("ERMS.xml not Found"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The String "ERMS.xml not Found" appears 2 times in the file.
* @throws IOException | ||
* if some I/O error occurs | ||
*/ | ||
public InputStream getErmsInputStream(Path path) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter path should be final.
* @throws IOException | ||
* if some I/O error occurs | ||
*/ | ||
public InputStream getErmsInputStream(Path path) throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'path' should be declared final.
zipFile = new ZipFile(path.toFile()); | ||
} | ||
|
||
Enumeration entries = zipFile.entries(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'entries' should be declared final.
|
||
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter ip should be final.
|
||
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'ip' should be declared final.
|
||
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter zipEntries should be final.
|
||
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'zipEntries' should be declared final.
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, | ||
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter representationMETSWrapper should be final.
1d06e48
to
8b757cb
Compare
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, | ||
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'representationMETSWrapper' should be declared final.
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, | ||
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter representation should be final.
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, | ||
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'representation' should be declared final.
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, | ||
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter representationId should be final.
} | ||
|
||
private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries, | ||
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'representationId' should be declared final.
@@ -26,7 +26,7 @@ public enum IPContentTypeEnum { | |||
AUDIO_ON_TANGIBLE_MEDIUM("Audio – On Tangible Medium (digital or analog)"), | |||
AUDIO_MEDIA_INDEPENDENT("Audio – Media-independent (digital)"), | |||
MOTION_PICTURES("Motion Pictures – Digital and Physical Media"), VIDEO("Video – File-based and Physical Media"), | |||
SOFTWARE("Software"), DATASETS("Datasets"), GEOSPATIAL_DATA("Geospatial Data"), DATABASES("Databases"), | |||
SOFTWARE("Software"), DATASETS("Datasets"), DATASET("Dataset"), GEOSPATIAL_DATA("Geospatial Data"), DATABASES("Databases"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
@@ -26,7 +26,7 @@ public enum IPContentTypeEnum { | |||
AUDIO_ON_TANGIBLE_MEDIUM("Audio – On Tangible Medium (digital or analog)"), | |||
AUDIO_MEDIA_INDEPENDENT("Audio – Media-independent (digital)"), | |||
MOTION_PICTURES("Motion Pictures – Digital and Physical Media"), VIDEO("Video – File-based and Physical Media"), | |||
SOFTWARE("Software"), DATASETS("Datasets"), GEOSPATIAL_DATA("Geospatial Data"), DATABASES("Databases"), | |||
SOFTWARE("Software"), DATASETS("Datasets"), DATASET("Dataset"), GEOSPATIAL_DATA("Geospatial Data"), DATABASES("Databases"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
@@ -33,7 +33,7 @@ public static IPStatus parse(String value) { | |||
} | |||
|
|||
public enum SipType { | |||
EARK2S, EARK2 | |||
EARK2S, EARK2, ERMS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
@@ -33,7 +33,7 @@ public static IPStatus parse(String value) { | |||
} | |||
|
|||
public enum SipType { | |||
EARK2S, EARK2 | |||
EARK2S, EARK2, ERMS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
@@ -33,7 +33,7 @@ public static IPStatus parse(String value) { | |||
} | |||
|
|||
public enum SipType { | |||
EARK2S, EARK2 | |||
EARK2S, EARK2, ERMS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
8b757cb
to
9a28fc6
Compare
No description provided.