Class ArchiveGroupHandler
- java.lang.Object
-
- org.fcrepo.migration.handlers.ocfl.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 Summary
Constructors Constructor Description 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,
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessObjectVersions(Iterable<ObjectVersionReference> versions, ObjectInfo objectInfo)Invoked to process a version of a Fedora 3 object.
-
-
-
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 factorymigrationType- the type of migration to doresourceMigrationType- how resources should be migratedaddDatastreamExtensions- true if datastreams should be written with file extensionsdeleteInactive- true if inactive objects and datastreams should be migrated as deletedfoxmlFile- true if foxml file should be migrated as a whole file, instead of creating property filesuser- the username to associated with the migrated resourcesidPrefix- the prefix to add to the Fedora 3 pid (default "info:fedora/", like Fedora 3)headOnly- flag to enable head only migrationsdisableChecksumValidation- disable Checksum validationdisableDc- true if DC datastreams should not be migrated to RDF object properties
-
-
Method Detail
-
processObjectVersions
public void processObjectVersions(Iterable<ObjectVersionReference> versions, ObjectInfo objectInfo)
Description copied from interface:FedoraObjectVersionHandlerInvoked to process a version of a Fedora 3 object. All the metadata and content that changed from the previous version to the one represented by the current call is conventiently made available.- Specified by:
processObjectVersionsin interfaceFedoraObjectVersionHandler- Parameters:
versions- an iterable of Objects each encapsulating everything about a single version of a Fedora 3 object.objectInfo- information about the Fedora 3 object being processed
-
-