@ProviderType public class AssetActions extends Object
| Modifier and Type | Field and Description |
|---|---|
static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> |
REMOVE_ALL_RENDITIONS
Remove all renditions except for the original rendition for assets
|
| Modifier and Type | Method and Description |
|---|---|
static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> |
removeAllRenditionsNamed(String name)
Remove all renditions with a given name
|
static CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> |
removeRenditions(String path)
Remove all non-original renditions from an asset.
|
static CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> |
removeRenditionsNamed(String path,
String name)
Remove all renditions with a given name
|
static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> |
withAllRenditions(CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> action,
CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String,Boolean>... filters) |
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> REMOVE_ALL_RENDITIONS
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> withAllRenditions(CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> action, CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String,Boolean>... filters)
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> removeAllRenditionsNamed(String name)
public static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> removeRenditions(String path)
path - public static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> removeRenditionsNamed(String path, String name)
path - name - Copyright © 2013–2020 Adobe. All rights reserved.