setRepository((String)val); return;
sPluginBundleVersion.setVersion(version); sPluginBundleVersion.setDescription(model.getDescription()); sPluginBundleVersion.setRepository(defaultrepository); sPluginBundleVersion.setMismatch(false);
sPluginBundleVersion.setGroupId(mavenPluginLocation.getGroupId()); try { sPluginBundleVersion.setRepository(mavenPluginLocation.getRepository(mavenPluginVersion.getVersion().toString())); } catch (ArtifactResolutionException e) { LOGGER.error("", e);
private SPluginBundleVersion createPluginBundleVersionFromMavenModel(Model model, boolean isLocalDev) { SPluginBundleVersion sPluginBundleVersion = new SPluginBundleVersion(); sPluginBundleVersion.setType(isLocalDev ? SPluginBundleType.LOCAL_DEV : SPluginBundleType.MAVEN); sPluginBundleVersion.setGroupId(model.getGroupId()); sPluginBundleVersion.setArtifactId(model.getArtifactId()); sPluginBundleVersion.setVersion(model.getVersion()); sPluginBundleVersion.setDescription(model.getDescription()); sPluginBundleVersion.setRepository("local"); sPluginBundleVersion.setMismatch(false); // TODO sPluginBundleVersion.setOrganization(model.getOrganization().getName()); sPluginBundleVersion.setName(model.getName()); return sPluginBundleVersion; }
@Override public SPluginBundleVersion getPluginBundleVersion() { SPluginBundleVersion sPluginBundleVersion = new SPluginBundleVersion(); sPluginBundleVersion.setType(SPluginBundleType.LOCAL); sPluginBundleVersion.setGroupId(model.getGroupId()); sPluginBundleVersion.setArtifactId(model.getArtifactId()); sPluginBundleVersion.setVersion(model.getVersion()); sPluginBundleVersion.setDescription(model.getDescription()); sPluginBundleVersion.setRepository("local"); sPluginBundleVersion.setMismatch(false); // TODO sPluginBundleVersion.setOrganization(model.getOrganization().getName()); sPluginBundleVersion.setName(model.getName()); return sPluginBundleVersion; } }
public SPluginBundleVersion convertToSObject(PluginBundleVersion input) { if (input == null) { return null; } SPluginBundleVersion result = new SPluginBundleVersion(); result.setOid(input.getOid()); result.setRid(input.getRid()); result.setVersion(input.getVersion()); result.setType(SPluginBundleType.values()[input.getType().ordinal()]); result.setDescription(input.getDescription()); result.setMismatch(input.isMismatch()); result.setRepository(input.getRepository()); result.setGroupId(input.getGroupId()); result.setArtifactId(input.getArtifactId()); result.setIcon(input.getIcon()); result.setOrganization(input.getOrganization()); result.setName(input.getName()); result.setDate(input.getDate()); 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; }