Package org.fcrepo.migration.handlers
Class ObjectAbstractionStreamingFedoraObjectHandler
- java.lang.Object
-
- org.fcrepo.migration.handlers.ObjectAbstractionStreamingFedoraObjectHandler
-
- All Implemented Interfaces:
StreamingFedoraObjectHandler
public class ObjectAbstractionStreamingFedoraObjectHandler extends Object implements StreamingFedoraObjectHandler
A StreamingFedoraObjectHandler implementation that caches all the references to the Fedora 3 object and provides them to a FedoraObjectHandler implementation which in turn can process the object as a whole in a random-access fashion rather than as a stream.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description ObjectAbstractionStreamingFedoraObjectHandler(FedoraObjectHandler objectHandler)the object abstraction streaming fedora object handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortObject(ObjectInfo object)Invoked if processing of the object failed for some reason.voidbeginObject(ObjectInfo object)begin object.voidcompleteObject(ObjectInfo object)A hook called after the object has been completely processed.voidprocessDatastreamVersion(DatastreamVersion dsVersion)Invoked to allow processing of a datastream by this StreamingFedoraObjectHandler.voidprocessDisseminator()Invoked when a "disseminator" element is found in the object (Fedora 2 objects only).voidprocessObjectProperties(ObjectProperties properties)Invoked to allow processing of properties by this StreamingFedoraObjectHandler.
-
-
-
Constructor Detail
-
ObjectAbstractionStreamingFedoraObjectHandler
public ObjectAbstractionStreamingFedoraObjectHandler(FedoraObjectHandler objectHandler)
the object abstraction streaming fedora object handler.- Parameters:
objectHandler- the fedora object handler
-
-
Method Detail
-
beginObject
public void beginObject(ObjectInfo object)
Description copied from interface:StreamingFedoraObjectHandlerbegin object.- Specified by:
beginObjectin interfaceStreamingFedoraObjectHandler- Parameters:
object- the object info
-
processObjectProperties
public void processObjectProperties(ObjectProperties properties)
Description copied from interface:StreamingFedoraObjectHandlerInvoked to allow processing of properties by this StreamingFedoraObjectHandler.- Specified by:
processObjectPropertiesin interfaceStreamingFedoraObjectHandler- Parameters:
properties- the properties for the object
-
processDatastreamVersion
public void processDatastreamVersion(DatastreamVersion dsVersion)
Description copied from interface:StreamingFedoraObjectHandlerInvoked to allow processing of a datastream by this StreamingFedoraObjectHandler.- Specified by:
processDatastreamVersionin interfaceStreamingFedoraObjectHandler- Parameters:
dsVersion- an encapsulation of the datastream version. References to this object must not be used after completeObject() or abortObject() have completed as the resources exposed may no longer be available.
-
processDisseminator
public void processDisseminator()
Description copied from interface:StreamingFedoraObjectHandlerInvoked when a "disseminator" element is found in the object (Fedora 2 objects only).- Specified by:
processDisseminatorin interfaceStreamingFedoraObjectHandler
-
completeObject
public void completeObject(ObjectInfo object)
Description copied from interface:StreamingFedoraObjectHandlerA hook called after the object has been completely processed. This may be useful for any cleanup or finalization routines. Furthermore, once this method invocation is complete, any references provided to prior calls will no longer be in scope.- Specified by:
completeObjectin interfaceStreamingFedoraObjectHandler- Parameters:
object- to be completed.
-
abortObject
public void abortObject(ObjectInfo object)
Description copied from interface:StreamingFedoraObjectHandlerInvoked if processing of the object failed for some reason.- Specified by:
abortObjectin interfaceStreamingFedoraObjectHandler- Parameters:
object- to be aborted.
-
-