Package org.dspace.checker
Class HandleDispatcher
java.lang.Object
org.dspace.checker.HandleDispatcher
- All Implemented Interfaces:
BitstreamDispatcher
A BitstreamDispatcher that checks all the bitstreams contained within an
item, collection or community referred to by Handle.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BitstreamServiceprotected Contextprotected IteratorDispatcherthe delegate to dispatch to.protected StringHandle to retrieve bitstreams from.protected HandleServiceprotected booleanHas the type of object the handle refers to been determined.Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
context
-
handle
Handle to retrieve bitstreams from. -
init
protected boolean initHas the type of object the handle refers to been determined. -
delegate
the delegate to dispatch to. -
bitstreamService
-
handleService
-
-
Constructor Details
-
HandleDispatcher
Main constructor.- Parameters:
context- Contexthdl- the handle to get bitstreams from.
-
-
Method Details
-
init
Private initialization routine.- Throws:
SQLException- if database error if database access fails.
-
next
Initializes this dispatcher on first execution.- Specified by:
nextin interfaceBitstreamDispatcher- Returns:
- the next bitstream id, or BitstreamDispatcher.SENTINEL if there isn't another value
- Throws:
SQLException- if database error- See Also:
-