public boolean getPlatformFilter() { return SharedPackageListingsSettings.instance().get(getListName()).getPlatformFilter(); }
public boolean getPlatformFilter() { return SharedPackageListingsSettings.instance().get(getListName()).getPlatformFilter(); }
@GET @Produces("text/html") @Path(value = "updates") public Object getUpdates(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform) { PackageManager pm = Framework.getLocalService(PackageManager.class); if (pkgType == null) { pkgType = SharedPackageListingsSettings.instance().get("updates").getPackageTypeFilter(); } if (filterOnPlatform == null) { filterOnPlatform = SharedPackageListingsSettings.instance().get("updates").getPlatformFilter(); } String targetPlatform = getTargetPlatform(filterOnPlatform); List<DownloadablePackage> pkgs; if (StringUtils.isBlank(pkgType)) { pkgs = pm.listUpdatePackages(null, targetPlatform); } else { pkgs = pm.listUpdatePackages(PackageType.getByValue(pkgType), targetPlatform); } return getView("simpleListing").arg("pkgs", pm.sort(pkgs)).arg("showCommunityInfo", true).arg("source", "updates").arg("filterOnPlatform", filterOnPlatform); }
@GET @Produces("text/html") @Path(value = "private") public Object getPrivate(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform) { PackageManager pm = Framework.getLocalService(PackageManager.class); if (pkgType == null) { pkgType = SharedPackageListingsSettings.instance().get("private").getPackageTypeFilter(); } if (filterOnPlatform == null) { filterOnPlatform = SharedPackageListingsSettings.instance().get("private").getPlatformFilter(); } String targetPlatform = getTargetPlatform(filterOnPlatform); List<DownloadablePackage> pkgs; if (StringUtils.isBlank(pkgType)) { pkgs = pm.listPrivatePackages(targetPlatform); } else { pkgs = pm.listPrivatePackages(PackageType.getByValue(pkgType), targetPlatform); } return getView("simpleListing").arg("pkgs", pm.sort(pkgs)).arg("showCommunityInfo", true).arg("source", "private").arg("filterOnPlatform", filterOnPlatform); }
@GET @Produces("text/html") @Path(value = "updates") public Object getUpdates(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform) { PackageManager pm = Framework.getService(PackageManager.class); if (pkgType == null) { pkgType = SharedPackageListingsSettings.instance().get("updates").getPackageTypeFilter(); } if (filterOnPlatform == null) { filterOnPlatform = SharedPackageListingsSettings.instance().get("updates").getPlatformFilter(); } String targetPlatform = getTargetPlatform(filterOnPlatform); List<DownloadablePackage> pkgs; if (StringUtils.isBlank(pkgType)) { pkgs = pm.listUpdatePackages(null, targetPlatform); } else { pkgs = pm.listUpdatePackages(PackageType.getByValue(pkgType), targetPlatform); } return getView("simpleListing").arg("pkgs", pm.sort(pkgs)) .arg("showCommunityInfo", true) .arg("source", "updates") .arg("filterOnPlatform", filterOnPlatform); }
@GET @Produces("text/html") @Path(value = "private") public Object getPrivate(@QueryParam("type") String pkgType, @QueryParam("filterOnPlatform") Boolean filterOnPlatform) { PackageManager pm = Framework.getService(PackageManager.class); if (pkgType == null) { pkgType = SharedPackageListingsSettings.instance().get("private").getPackageTypeFilter(); } if (filterOnPlatform == null) { filterOnPlatform = SharedPackageListingsSettings.instance().get("private").getPlatformFilter(); } String targetPlatform = getTargetPlatform(filterOnPlatform); List<DownloadablePackage> pkgs; if (StringUtils.isBlank(pkgType)) { pkgs = pm.listPrivatePackages(targetPlatform); } else { pkgs = pm.listPrivatePackages(PackageType.getByValue(pkgType), targetPlatform); } return getView("simpleListing").arg("pkgs", pm.sort(pkgs)) .arg("showCommunityInfo", true) .arg("source", "private") .arg("filterOnPlatform", filterOnPlatform); }
filterOnPlatform = SharedPackageListingsSettings.instance().get("remote").getPlatformFilter();
filterOnPlatform = SharedPackageListingsSettings.instance().get("remote").getPlatformFilter();