processPluginDescriptor(pluginDescriptor, plugins); for (SPluginInformation info : plugins) { info.setInstallForAllUsers(true); info.setInstallForNewUsers(true);
@Override public Void execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException, ServerException { LocalMavenPluginBundle mavenPluginBundle = new LocalMavenPluginBundle(data); try { List<SPluginInformation> pluginInformationFromPluginFile = bimServer.getPluginManager().getPluginInformationFromJar(new ByteArrayInputStream(data)); for (SPluginInformation sPluginInformation : pluginInformationFromPluginFile) { sPluginInformation.setEnabled(true); if (installAllPluginsForAllUsers) { sPluginInformation.setInstallForAllUsers(true); } if (installAllPluginsForNewUsers) { sPluginInformation.setInstallForNewUsers(true); } } bimServer.getPluginManager().install(mavenPluginBundle, pluginInformationFromPluginFile, false); } catch (Exception e) { LOGGER.error("", e); throw new UserException(e); } return null; } }
setInstallForAllUsers((Boolean)val); return;
if (sPluginInformation.isEnabled()) { sPluginInformation.setInstallForAllUsers(true); sPluginInformation.setInstallForNewUsers(true);
sPluginInformation.setDescription(pluginDescriptor.getDescription()); sPluginInformation.setIdentifier(pluginDescriptor.getIdentifier()); sPluginInformation.setInstallForAllUsers(pluginDescriptor.isInstallForNewUsers()); sPluginInformation.setInstallForNewUsers(pluginDescriptor.isInstallForNewUsers()); sPluginInformation.setName(pluginDescriptor.getName());
public SPluginInformation convertToSObject(PluginInformation input) { if (input == null) { return null; } SPluginInformation result = new SPluginInformation(); result.setOid(input.getOid()); result.setRid(input.getRid()); result.setName(input.getName()); result.setType(SPluginType.values()[input.getType().ordinal()]); result.setDescription(input.getDescription()); result.setEnabled(input.isEnabled()); result.setIdentifier(input.getIdentifier()); result.setInstallForAllUsers(input.isInstallForAllUsers()); result.setInstallForNewUsers(input.isInstallForNewUsers()); return result; }