DSpace refactored service api

This commit is contained in:
KevinVdV
2014-11-08 09:19:09 +01:00
parent fcb3717aad
commit 54222f3c1d
1145 changed files with 52233 additions and 57064 deletions

View File

@@ -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;
}
}
}