[CST-10632] fixed broken method & sping config clean up

This commit is contained in:
Stefano Maffei
2023-11-21 09:00:27 +01:00
parent e3012681d3
commit 677cca43e8
2 changed files with 2 additions and 13 deletions

View File

@@ -14,6 +14,7 @@ import org.apache.logging.log4j.Logger;
import org.dspace.app.ldn.converter.JsonLdHttpMessageConverter;
import org.dspace.app.ldn.model.Notification;
import org.dspace.content.Item;
import org.dspace.core.Context;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
@@ -37,7 +38,7 @@ public class SendLDNMessageAction implements LDNAction {
}
@Override
public ActionStatus execute(Notification notification, Item item) throws Exception {
public ActionStatus execute(Context context, Notification notification, Item item) throws Exception {
//TODO authorization with Bearer token should be supported.
HttpHeaders headers = new HttpHeaders();
headers.add("Content-Type", APPLICATION_JSON_LD.toString());