setInstalledVersion((SPluginBundleVersion)val); return;
@SuppressWarnings({ "unchecked", "rawtypes" }) private PluginBundle loadPlugins(PluginBundleVersionIdentifier pluginBundleVersionIdentifier, ResourceLoader resourceLoader, ClassLoader classLoader, URI location, String classLocation, PluginDescriptor pluginDescriptor, PluginSourceType pluginType, Set<org.bimserver.plugins.Dependency> dependencies, SPluginBundle sPluginBundle, SPluginBundleVersion sPluginBundleVersion) throws PluginException { sPluginBundle.setInstalledVersion(sPluginBundleVersion); PluginBundle pluginBundle = new PluginBundleImpl(pluginBundleVersionIdentifier, sPluginBundle, sPluginBundleVersion, pluginDescriptor);
sPluginBundle.setInstalledVersion(installedVersion); Collections.sort(sPluginBundle.getAvailableVersions(), new Comparator<SPluginBundleVersion>() { private List<Integer> split(String in) {
sPluginBundle.setInstalledVersion(sPluginBundleVersion);
public SPluginBundle convertToSObject(PluginBundle input) { if (input == null) { return null; } SPluginBundle result = new SPluginBundle(); result.setOid(input.getOid()); result.setRid(input.getRid()); result.setOrganization(input.getOrganization()); result.setName(input.getName()); PluginBundleVersion latestVersionVal = input.getLatestVersion(); result.setLatestVersion(convertToSObject(latestVersionVal)); List<SPluginBundleVersion> listavailableVersions = new ArrayList<SPluginBundleVersion>(); for (PluginBundleVersion v : input.getAvailableVersions()) { listavailableVersions.add(convertToSObject(v)); } result.setAvailableVersions(listavailableVersions); PluginBundleVersion installedVersionVal = input.getInstalledVersion(); result.setInstalledVersion(convertToSObject(installedVersionVal)); return result; }
@Override public SPluginBundle getPluginBundle() { SPluginBundle result = new SPluginBundle(); result.setName(sPluginBundle.getName()); result.setOrganization(sPluginBundle.getOrganization()); if (sPluginBundle.getInstalledVersion() != null) { SPluginBundleVersion installedVersion = new SPluginBundleVersion(); installedVersion.setArtifactId(sPluginBundle.getInstalledVersion().getArtifactId()); installedVersion.setDescription(sPluginBundle.getInstalledVersion().getDescription()); installedVersion.setGroupId(sPluginBundle.getInstalledVersion().getGroupId()); installedVersion.setIcon(sPluginBundle.getInstalledVersion().getIcon()); installedVersion.setMismatch(sPluginBundle.getInstalledVersion().isMismatch()); installedVersion.setName(sPluginBundle.getInstalledVersion().getName()); installedVersion.setOrganization(sPluginBundle.getInstalledVersion().getOrganization()); installedVersion.setRepository(sPluginBundle.getInstalledVersion().getRepository()); installedVersion.setType(sPluginBundle.getInstalledVersion().getType()); installedVersion.setVersion(sPluginBundle.getInstalledVersion().getVersion()); result.setInstalledVersion(installedVersion); } return result; }