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; } }
StringBuilder sbNodesRequest = new StringBuilder(); Set<BundleStorageUnit> bsuRequest = context.getContext().getBundleStorage() .bundlesFor(AssetRequestContext.get(context.getRequest()).getBundles(true));
StringBuilder sbNodesRequest = new StringBuilder(); Set<BundleStorageUnit> bsuRequest = context.getContext().getBundleStorage() .bundlesFor(AssetRequestContext.get(context.getRequest()).getBundles(true));