-
Notifications
You must be signed in to change notification settings - Fork 10
UPDATE sedalib: Saphir team adaptations to Sedalib to address missing elements #95
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
Conversation
|
New Issues (1)Checkmarx found the following issues in this Pull Request
Use @Checkmarx to reach out to us for assistance. Just send a PR comment with Examples: |
marob
left a comment
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.
Pourquoi contribuer des classes Saphir qui ne sont a priori pas utilisées par sedatools ? Si ces classes sont utilisées dans un projet utilisant sedatools, il serait préférables qu'elles soient créées dans ce projet et non dans sedatools.
| */ | ||
| public Integer getTouchedInDataObjectPackageId(String inDataObjectPackageId) { | ||
| return touchedInDataObjectPackageIdMap.get(inDataObjectPackageId); | ||
| return touchedInDataObjectPackageIdMap.getOrDefault(inDataObjectPackageId,0); |
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.
Formatage inconsistant (manque un espace après la virgule)
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.
Revert les changements de formatage
| * Creates a root archive unit in the SIP. | ||
| * Nouvelle signature de la méthode pour descriptionLevel et title uniquement | ||
| * et éviter la géneration de la balise <Description></Description> vide. |
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.
Écrire le tout en anglais
| ArchiveUnit au = createRootArchiveUnit(archiveUnitID); | ||
|
|
||
| Content c = new Content(); | ||
| try { | ||
| c.addNewMetadata("DescriptionLevel", descriptionLevel); | ||
| c.addNewMetadata("Title", title); | ||
| c.addNewMetadata("Description", description); | ||
| } catch (SEDALibException ignored) { | ||
| // ignored | ||
| } | ||
| au.setContent(c); |
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.
Pour éviter la duplication de code :
| ArchiveUnit au = createRootArchiveUnit(archiveUnitID, descriptionLevel, title); | |
| try { | |
| au.getContent().addNewMetadata("Description", description); | |
| } catch (SEDALibException ignored) { | |
| // ignored | |
| } |
|
fix with #96 |


No description provided.