Class MetadataHelper


  • public class MetadataHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ObjectGroupResponse createObjectGroup​(java.lang.String transactionId, java.lang.String fileName, java.lang.String objectId, java.lang.String newFilename, java.util.Optional<FormatIdentifierResponse> formatOpt, java.lang.String digest, java.lang.Long size)  
      static ArchiveUnitModel createUnit​(java.lang.String transactionId, fr.gouv.culture.archivesdefrance.seda.v2.LevelType descriptionLevel, java.lang.String title, java.lang.String unitParent)  
      static java.util.Set<java.lang.String> findUnitParent​(com.fasterxml.jackson.databind.node.ObjectNode unit, java.util.List<MetadataUnitUp> unitUps, java.util.Map<java.lang.String,​java.lang.String> unitIds)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STATIC_ATTACHMENT

        public static final java.lang.String STATIC_ATTACHMENT
        See Also:
        Constant Field Values
      • DYNAMIC_ATTACHEMENT

        public static final java.lang.String DYNAMIC_ATTACHEMENT
        See Also:
        Constant Field Values
    • Method Detail

      • createUnit

        public static ArchiveUnitModel createUnit​(java.lang.String transactionId,
                                                  fr.gouv.culture.archivesdefrance.seda.v2.LevelType descriptionLevel,
                                                  java.lang.String title,
                                                  java.lang.String unitParent)
      • createObjectGroup

        public static ObjectGroupResponse createObjectGroup​(java.lang.String transactionId,
                                                            java.lang.String fileName,
                                                            java.lang.String objectId,
                                                            java.lang.String newFilename,
                                                            java.util.Optional<FormatIdentifierResponse> formatOpt,
                                                            java.lang.String digest,
                                                            java.lang.Long size)
      • findUnitParent

        public static java.util.Set<java.lang.String> findUnitParent​(com.fasterxml.jackson.databind.node.ObjectNode unit,
                                                                     @Nonnull
                                                                     java.util.List<MetadataUnitUp> unitUps,
                                                                     java.util.Map<java.lang.String,​java.lang.String> unitIds)