mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 11:03:12 +00:00
added event that allow to update solr document of collection and community
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user