mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
DSpace refactored service api
This commit is contained in:
@@ -7,8 +7,11 @@
|
||||
*/
|
||||
package org.dspace.checker;
|
||||
|
||||
import org.dspace.content.Bitstream;
|
||||
import org.dspace.core.PluginManager;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* Decorator that dispatches a specified number of bitstreams from a delegate
|
||||
* dispatcher.
|
||||
@@ -63,12 +66,10 @@ public class LimitedCountDispatcher implements BitstreamDispatcher
|
||||
/**
|
||||
* Retreives the next bitstream to be checked.
|
||||
*
|
||||
* @return the bitstream id
|
||||
* @throws SQLException
|
||||
* if database error occurs.
|
||||
* @return the bitstream
|
||||
*/
|
||||
public int next()
|
||||
{
|
||||
@Override
|
||||
public Bitstream next() throws SQLException {
|
||||
if (remaining > 0)
|
||||
{
|
||||
remaining--;
|
||||
@@ -77,7 +78,7 @@ public class LimitedCountDispatcher implements BitstreamDispatcher
|
||||
}
|
||||
else
|
||||
{
|
||||
return BitstreamDispatcher.SENTINEL;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user