Class ArchiveGroupHandler

  • All Implemented Interfaces:
    FedoraObjectVersionHandler

    public class ArchiveGroupHandler
    extends Object
    implements FedoraObjectVersionHandler
    Writes a Fedora object as a single ArchiveGroup.

    All datastreams and object metadata from a fcrepo3 object are persisted to a single OCFL object (ArchiveGroup in fcrepo6 parlance).

    The contents of each datastream are written verbatim. No attempt is made to re-write the RELS-EXT to replace subjects and objects with their LDP counterparts.

    Note: fedora-specific OCFL serialization features (such as redirects, container metadata, etc) is not fully defined yet, so are not included here

    Author:
    apb@jhu.edu
    • Constructor Detail

      • ArchiveGroupHandler

        public ArchiveGroupHandler​(org.fcrepo.storage.ocfl.OcflObjectSessionFactory sessionFactory,
                                   MigrationType migrationType,
                                   ResourceMigrationType resourceMigrationType,
                                   boolean addDatastreamExtensions,
                                   boolean deleteInactive,
                                   boolean foxmlFile,
                                   String user,
                                   String idPrefix,
                                   boolean headOnly,
                                   boolean disableChecksumValidation,
                                   boolean disableDc)
        Create an ArchiveGroupHandler,
        Parameters:
        sessionFactory - OCFL session factory
        migrationType - the type of migration to do
        resourceMigrationType - how resources should be migrated
        addDatastreamExtensions - true if datastreams should be written with file extensions
        deleteInactive - true if inactive objects and datastreams should be migrated as deleted
        foxmlFile - true if foxml file should be migrated as a whole file, instead of creating property files
        user - the username to associated with the migrated resources
        idPrefix - the prefix to add to the Fedora 3 pid (default "info:fedora/", like Fedora 3)
        headOnly - flag to enable head only migrations
        disableChecksumValidation - disable Checksum validation
        disableDc - true if DC datastreams should not be migrated to RDF object properties