Package org.dspace.checker
Class HandleDispatcher
- java.lang.Object
-
- org.dspace.checker.HandleDispatcher
-
- All Implemented Interfaces:
BitstreamDispatcher
public class HandleDispatcher extends Object implements 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
Fields Modifier and Type Field Description protected BitstreamServicebitstreamServiceprotected Contextcontextprotected IteratorDispatcherdelegatethe delegate to dispatch to.protected StringhandleHandle to retrieve bitstreams from.protected HandleServicehandleServiceprotected booleaninitHas the type of object the handle refers to been determined.-
Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL
-
-
Constructor Summary
Constructors Constructor Description HandleDispatcher(Context context, String hdl)Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinit()Private initialization routine.Bitstreamnext()Initializes this dispatcher on first execution.
-
-
-
Field Detail
-
context
protected Context context
-
handle
protected String handle
Handle to retrieve bitstreams from.
-
init
protected boolean init
Has the type of object the handle refers to been determined.
-
delegate
protected IteratorDispatcher delegate
the delegate to dispatch to.
-
bitstreamService
protected BitstreamService bitstreamService
-
handleService
protected HandleService handleService
-
-
Method Detail
-
init
protected void init() throws SQLExceptionPrivate initialization routine.- Throws:
SQLException- if database error if database access fails.
-
next
public Bitstream next() throws SQLException
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:
BitstreamDispatcher.next()
-
-