public Set<Alert> alerts() { Set<Alert> errors = new HashSet<Alert>(); String currentUri = UrlUtils.getCurrentUri(request).toString(); LOG.debug("Checking for alerts for the request \"{}\"", currentUri); String[] bundleNames = AssetRequestContext.get(this.request).getBundles(true); errors.addAll(this.context.getBundleStorage().alertsFor(bundleNames)); LOG.debug("-> Errors found: {}", errors.size()); return errors; }
public Set<Alert> alerts() { Set<Alert> errors = new HashSet<Alert>(); String currentUri = UrlUtils.getCurrentUri(request).toString(); LOG.debug("Checking for alerts for the request \"{}\"", currentUri); String[] bundleNames = AssetRequestContext.get(this.request).getBundles(true); errors.addAll(this.context.getBundleStorage().alertsFor(bundleNames)); LOG.debug("-> Errors found: {}", errors.size()); return errors; }
private Set<AssetStorageUnit> collectAssetStorageUnits() { Set<AssetStorageUnit> asus = new LinkedHashSet<AssetStorageUnit>(); String[] bundleNames = AssetRequestContext.get(this.request).getBundles(true); for (BundleStorageUnit bsu : this.context.getBundleStorage().bundlesFor(bundleNames)) { asus.addAll(bsu.getAssetStorageUnits()); } return asus; } }
private Set<AssetStorageUnit> collectAssetStorageUnits() { Set<AssetStorageUnit> asus = new LinkedHashSet<AssetStorageUnit>(); String[] bundleNames = AssetRequestContext.get(this.request).getBundles(true); for (BundleStorageUnit bsu : this.context.getBundleStorage().bundlesFor(bundleNames)) { asus.addAll(bsu.getAssetStorageUnits()); } return asus; } }
@Override public Map<String, String> getExtraParams() { StringBuilder sbNodesRequest = new StringBuilder(); List<BundleStorageUnit> bsuRequest = context.getContext().getBundleStorage().getBundleDag().getVerticies();
@Override public Map<String, String> getExtraParams() { StringBuilder sbNodesRequest = new StringBuilder(); List<BundleStorageUnit> bsuRequest = context.getContext().getBundleStorage().getBundleDag().getVerticies();
Set<BundleStorageUnit> bsus = this.context.getBundleStorage().bundlesFor(bundleToExclude); for (BundleStorageUnit bsu : bsus) { excludedJsNames.addAll(bsu.getJsAssetStorageUnitNames()); Set<BundleStorageUnit> bsus = this.context.getBundleStorage().bundlesFor(bundleToExclude); for (BundleStorageUnit bsu : bsus) { excludedCssNames.addAll(bsu.getCssAssetStorageUnitNames());
Set<BundleStorageUnit> bsus = this.context.getBundleStorage().bundlesFor(bundleToExclude); for (BundleStorageUnit bsu : bsus) { excludedJsNames.addAll(bsu.getJsAssetStorageUnitNames()); Set<BundleStorageUnit> bsus = this.context.getBundleStorage().bundlesFor(bundleToExclude); for (BundleStorageUnit bsu : bsus) { excludedCssNames.addAll(bsu.getCssAssetStorageUnitNames());
@Override protected Map<String, Object> getPageContext() { Map<String, Object> pageContext = new HashMap<String, Object>(); BundleStorage bundleStorage = context.getContext().getBundleStorage(); List<Map<String, Object>> bundles = new ArrayList<Map<String, Object>>(); for (BundleStorageUnit bsu : bundleStorage.getBundleDag().getVerticies()) { bundles.add(new MapBuilder<String, Object>() .entry("name", bsu.getName()) .entry("dependencies", bsu.getDependencies()) .entry("relativePath", bsu.getRelativePath()) .entry("loader", bsu.getBundleLoaderOrigin()) .entry("vendor", bsu.isVendor() ? "vendor" : "") .entry("labelType", "success") .create()); } pageContext.put("number", context.getContext().getBundleStorage().getBundleDag().getVerticies().size()); pageContext.put("bundles", bundles); return pageContext; }
@Override protected Map<String, Object> getPageContext() { Map<String, Object> pageContext = new HashMap<String, Object>(); BundleStorage bundleStorage = context.getContext().getBundleStorage(); List<Map<String, Object>> bundles = new ArrayList<Map<String, Object>>(); for (BundleStorageUnit bsu : bundleStorage.getBundleDag().getVerticies()) { bundles.add(new MapBuilder<String, Object>() .entry("name", bsu.getName()) .entry("dependencies", bsu.getDependencies()) .entry("relativePath", bsu.getRelativePath()) .entry("loader", bsu.getBundleLoaderOrigin()) .entry("vendor", bsu.isVendor() ? "vendor" : "") .entry("labelType", "success") .create()); } pageContext.put("number", context.getContext().getBundleStorage().getBundleDag().getVerticies().size()); pageContext.put("bundles", bundles); return pageContext; }
@Override public Map<String, String> getExtraParams() { StringBuilder sbNodesRequest = new StringBuilder(); Set<BundleStorageUnit> bsuRequest = context.getContext().getBundleStorage() .bundlesFor(AssetRequestContext.get(context.getRequest()).getBundles(true));
@Override public Map<String, String> getExtraParams() { StringBuilder sbNodesRequest = new StringBuilder(); Set<BundleStorageUnit> bsuRequest = context.getContext().getBundleStorage() .bundlesFor(AssetRequestContext.get(context.getRequest()).getBundles(true));
if (!getContext().getBundleStorage().getBundleDag().getVertexMap().containsKey(bundleName)) { throw new DandelionException("The requested bundle \"" + bundleName + "\" does not exist in the graph."); .addAll(getContext().getBundleStorage().getBundleDag().getVertex(bundleName).getAssetStorageUnits());
if (!getContext().getBundleStorage().getBundleDag().getVertexMap().containsKey(bundleName)) { throw new DandelionException("The requested bundle \"" + bundleName + "\" does not exist in the graph."); .addAll(getContext().getBundleStorage().getBundleDag().getVertex(bundleName).getAssetStorageUnits());