* {@inheritDoc}
*/
@Override
@PreAuthorize("hasPermission(#forumComponentId, 'COMPONENT', 'GeneralPermission.ADMIN')")
public void updatePluginActivating(PluginActivatingDto updatedPlugin, long forumComponentId) throws NotFoundException {
PluginConfigurationDao pluginConfigurationDao = getDao();
String pluginName = updatedPlugin.getPluginName();
PluginConfiguration configuration = pluginConfigurationDao.get(pluginName);
boolean isActivated = updatedPlugin.isActivated();
LOGGER.debug("Plugin activation for {} will be changed to {}.", pluginName, isActivated);
configuration.setActive(isActivated);
pluginConfigurationDao.saveOrUpdate(configuration);
pLuginLoader.reloadPlugins(new NameFilter(updatedPlugin.getPluginName()));
}