Commit 7652d978 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

services: trigger synchronization with Koha after merging resources

parent 61edd740
......@@ -60,7 +60,7 @@ public interface EntityService {
StmtIterator statementsInModelAbout(XURI xuri, Model indexModel, String... predicates);
void mergeResource(XURI xuri, XURI replaceeUri);
void mergeResource(XURI xuri, XURI replaceeUri) throws Exception;
List<XURI> retrieveResourceRelationshipsUris(XURI uri);
......
......@@ -728,8 +728,9 @@ public final class EntityServiceImpl implements EntityService {
}
@Override
public void mergeResource(XURI xuri, XURI replaceeUri) {
public void mergeResource(XURI xuri, XURI replaceeUri) throws Exception {
repository.mergeResource(xuri, replaceeUri);
synchronizeKoha(xuri);
}
private boolean isAboutRelevantType(Statement s, Model model, XURI xuri) {
......
......@@ -96,7 +96,7 @@ public interface RDFRepository {
ResultSet retrieveResourceRelationships(XURI xuri);
void mergeResource(XURI xuri, XURI replaceeUri);
void mergeResource(XURI xuri, XURI replaceeUri) throws Exception;
void deleteIncomingRelations(XURI xuri);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment