added event that allow to update solr document of collection and community

This commit is contained in:
Mykhaylo
2021-09-02 09:55:28 +02:00
parent 16d8e3372b
commit 981e224fea
2 changed files with 12 additions and 1 deletions

View File

@@ -287,6 +287,8 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
// register this as the admin group
community.setAdmins(admins);
context.addEvent(new Event(Event.MODIFY, Constants.COMMUNITY, community.getID(),
null, getIdentifiers(context, community)));
return admins;
}
@@ -302,6 +304,8 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
// Remove the link to the community table.
community.setAdmins(null);
context.addEvent(new Event(Event.MODIFY, Constants.COMMUNITY, community.getID(),
null, getIdentifiers(context, community)));
}
@Override