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

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