private FetcherListItem convert(FetcherEntity fetcher) { FetcherListItem item = new FetcherListItem(); item.setId(fetcher.getId()); item.setName(fetcher.getName()); item.setDescription(fetcher.getDescription()); item.setVersion(fetcher.getVersion()); return item; } }
private FetcherEntity convert(FetcherPlugin fetcherPlugin, boolean withPlugin) { FetcherEntity entity = new FetcherEntity(); entity.setId(fetcherPlugin.id()); entity.setDescription(fetcherPlugin.manifest().description()); entity.setName(fetcherPlugin.manifest().name()); entity.setVersion(fetcherPlugin.manifest().version()); if (withPlugin) { // Plugin information Plugin plugin = fetcherPlugin; PluginEntity pluginEntity = new PluginEntity(); pluginEntity.setPlugin(plugin.clazz()); pluginEntity.setPath(plugin.path().toString()); pluginEntity.setType(plugin.type().toString().toLowerCase()); pluginEntity.setDependencies(plugin.dependencies()); entity.setPlugin(pluginEntity); } return entity; } }
private FetcherEntity convert(FetcherPlugin fetcherPlugin, boolean withPlugin) { FetcherEntity entity = new FetcherEntity(); entity.setId(fetcherPlugin.id()); entity.setDescription(fetcherPlugin.manifest().description()); entity.setName(fetcherPlugin.manifest().name()); entity.setVersion(fetcherPlugin.manifest().version()); if (withPlugin) { // Plugin information Plugin plugin = fetcherPlugin; PluginEntity pluginEntity = new PluginEntity(); pluginEntity.setPlugin(plugin.clazz()); pluginEntity.setPath(plugin.path().toString()); pluginEntity.setType(plugin.type().toString().toLowerCase()); pluginEntity.setDependencies(plugin.dependencies()); entity.setPlugin(pluginEntity); } return entity; } }
private FetcherListItem convert(FetcherEntity fetcher) { FetcherListItem item = new FetcherListItem(); item.setId(fetcher.getId()); item.setName(fetcher.getName()); item.setDescription(fetcher.getDescription()); item.setVersion(fetcher.getVersion()); return item; } }