mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 07:53:08 +00:00
DS-4166 renamed BrowsableDSpaceObject in BrowsableObject
This commit is contained in:
@@ -24,7 +24,7 @@ import org.apache.commons.cli.OptionBuilder;
|
||||
import org.apache.commons.cli.Options;
|
||||
import org.apache.commons.cli.PosixParser;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.dspace.browse.BrowsableDSpaceObject;
|
||||
import org.dspace.browse.BrowsableObject;
|
||||
import org.dspace.content.Collection;
|
||||
import org.dspace.content.Community;
|
||||
import org.dspace.content.Item;
|
||||
@@ -177,7 +177,7 @@ public class IndexClient {
|
||||
String[] identifiers = optionValue.split("\\s*,\\s*");
|
||||
for (String id : identifiers) {
|
||||
if (id.startsWith(ConfigurationManager.getProperty("handle.prefix")) || id.startsWith("123456789/")) {
|
||||
BrowsableDSpaceObject dso = (BrowsableDSpaceObject) HandleServiceFactory.getInstance()
|
||||
BrowsableObject dso = (BrowsableObject) HandleServiceFactory.getInstance()
|
||||
.getHandleService().resolveToObject(context, id);
|
||||
indexer.indexContent(context, dso, line.hasOption("f"));
|
||||
}
|
||||
@@ -215,7 +215,7 @@ public class IndexClient {
|
||||
}
|
||||
} else if (line.hasOption('i')) {
|
||||
final String handle = line.getOptionValue('i');
|
||||
final BrowsableDSpaceObject dso = (BrowsableDSpaceObject) HandleServiceFactory.getInstance()
|
||||
final BrowsableObject dso = (BrowsableObject) HandleServiceFactory.getInstance()
|
||||
.getHandleService().resolveToObject(context, handle);
|
||||
if (dso == null) {
|
||||
throw new IllegalArgumentException("Cannot resolve " + handle + " to a DSpace object");
|
||||
@@ -249,7 +249,7 @@ public class IndexClient {
|
||||
private static long indexAll(final IndexingService indexingService,
|
||||
final ItemService itemService,
|
||||
final Context context,
|
||||
final BrowsableDSpaceObject dso)
|
||||
final BrowsableObject dso)
|
||||
throws IOException, SearchServiceException, SQLException {
|
||||
long count = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user