Package org.jtalks.jcommune.model.dao

Examples of org.jtalks.jcommune.model.dao.PluginConfigurationDao


     * {@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()));
    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.model.dao.PluginConfigurationDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.