Skip to content
Snippets Groups Projects
Commit 006bdf9b authored by juanf's avatar juanf
Browse files

SSDM-9374 : Starting openBIS with indexing disabled - reverting unnecesary changes on class

parent 2715112e
No related branches found
No related tags found
No related merge requests found
...@@ -39,19 +39,15 @@ public class RemoveFromIndexState extends IndexState ...@@ -39,19 +39,15 @@ public class RemoveFromIndexState extends IndexState
private static Collection<RemoveFromIndexOperation> createOperations() private static Collection<RemoveFromIndexOperation> createOperations()
{ {
FullTextIndexUpdater indexUpdater = (FullTextIndexUpdater) CommonServiceProvider.tryToGetBean("full-text-index-updater"); FullTextIndexUpdater indexUpdater = (FullTextIndexUpdater) CommonServiceProvider.tryToGetBean("full-text-index-updater");
if(indexUpdater != null) { Collection<IndexUpdateOperation> updateOperations = indexUpdater.getQueue();
Collection<IndexUpdateOperation> updateOperations = indexUpdater.getQueue(); List<RemoveFromIndexOperation> removeOperations = new ArrayList<RemoveFromIndexOperation>();
List<RemoveFromIndexOperation> removeOperations = new ArrayList<RemoveFromIndexOperation>();
for (IndexUpdateOperation updateOperation : updateOperations) {
if (IndexUpdateOperationKind.REMOVE.equals(updateOperation.getOperationKind())) {
removeOperations.add(new RemoveFromIndexOperation(updateOperation));
}
}
return removeOperations; for (IndexUpdateOperation updateOperation : updateOperations) {
} else { if (IndexUpdateOperationKind.REMOVE.equals(updateOperation.getOperationKind())) {
return new ArrayList<>(); removeOperations.add(new RemoveFromIndexOperation(updateOperation));
}
} }
return removeOperations;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment