Skip to content
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

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Dependencies for CITS ERMS #302

merged 1 commit into from
Nov 29, 2024

Conversation

carlosjepard
Copy link
Contributor

No description provided.

Copy link

@github-actions github-actions bot left a 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 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

}
}
if (ermsPath == null) {
LOGGER.debug("ERMS.xml not Found");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.MultipleStringLiteralsCheck> reported by reviewdog 🐶
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 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck> reported by reviewdog 🐶
Parameter path should be final.

* @throws IOException
* if some I/O error occurs
*/
public InputStream getErmsInputStream(Path path) throws IOException {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'path' should be declared final.

zipFile = new ZipFile(path.toFile());
}

Enumeration entries = zipFile.entries();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'entries' should be declared final.


}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck> reported by reviewdog 🐶
Parameter ip should be final.


}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'ip' should be declared final.


}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck> reported by reviewdog 🐶
Parameter zipEntries should be final.


}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'zipEntries' should be declared final.

}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck> reported by reviewdog 🐶
Parameter representationMETSWrapper should be final.

}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'representationMETSWrapper' should be declared final.

}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck> reported by reviewdog 🐶
Parameter representation should be final.

}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'representation' should be declared final.

}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck> reported by reviewdog 🐶
Parameter representationId should be final.

}

private void addRepresentationDataFilesToZipErmsAndMETS(IPInterface ip, Map<String, ZipEntryInfo> zipEntries,
MetsWrapper representationMETSWrapper, IPRepresentation representation, String representationId)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
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"),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
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"),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@@ -33,7 +33,7 @@ public static IPStatus parse(String value) {
}

public enum SipType {
EARK2S, EARK2
EARK2S, EARK2, ERMS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@@ -33,7 +33,7 @@ public static IPStatus parse(String value) {
}

public enum SipType {
EARK2S, EARK2
EARK2S, EARK2, ERMS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@@ -33,7 +33,7 @@ public static IPStatus parse(String value) {
}

public enum SipType {
EARK2S, EARK2
EARK2S, EARK2, ERMS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@hmiguim hmiguim merged commit d4df5d0 into development Nov 29, 2024
3 checks passed
@hmiguim hmiguim deleted the cafonso-devERMS branch November 29, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants