mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
DSpace refactored service api
This commit is contained in:
@@ -42,6 +42,7 @@ public class IndexEventConsumer implements Consumer {
|
||||
|
||||
IndexingService indexer = dspace.getServiceManager().getServiceByName(IndexingService.class.getName(),IndexingService.class);
|
||||
|
||||
@Override
|
||||
public void initialize() throws Exception {
|
||||
|
||||
}
|
||||
@@ -53,6 +54,7 @@ public class IndexEventConsumer implements Consumer {
|
||||
* @param ctx DSpace context
|
||||
* @param event Content event
|
||||
*/
|
||||
@Override
|
||||
public void consume(Context ctx, Event event) throws Exception {
|
||||
|
||||
if (objectsToUpdate == null) {
|
||||
@@ -84,7 +86,7 @@ public class IndexEventConsumer implements Consumer {
|
||||
&& ((Bundle) subject).getName().equals("TEXT")) {
|
||||
st = Constants.ITEM;
|
||||
et = Event.MODIFY;
|
||||
subject = ((Bundle) subject).getItems()[0];
|
||||
subject = ((Bundle) subject).getItems().get(0);
|
||||
if (log.isDebugEnabled())
|
||||
{
|
||||
log.debug("Transforming Bundle event into MODIFY of Item "
|
||||
@@ -154,6 +156,7 @@ public class IndexEventConsumer implements Consumer {
|
||||
* interactions between the sets -- e.g. objects which were deleted do not
|
||||
* need to be added or updated, new objects don't also need an update, etc.
|
||||
*/
|
||||
@Override
|
||||
public void end(Context ctx) throws Exception {
|
||||
|
||||
if (objectsToUpdate != null && handlesToDelete != null) {
|
||||
@@ -200,6 +203,7 @@ public class IndexEventConsumer implements Consumer {
|
||||
handlesToDelete = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish(Context ctx) throws Exception {
|
||||
// No-op
|
||||
|
||||
|
Reference in New Issue
Block a user