Class AssetActions
- java.lang.Object
-
- com.adobe.acs.commons.fam.actions.AssetActions
-
@ProviderType public class AssetActions extends Object
Assets utility functions.
-
-
Field Summary
Fields Modifier and Type Field Description static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String>REMOVE_ALL_RENDITIONSRemove all renditions except for the original rendition for assets
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String>removeAllRenditionsNamed(String name)Remove all renditions with a given namestatic 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 namestatic 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)
-
-
-
Field Detail
-
REMOVE_ALL_RENDITIONS
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> REMOVE_ALL_RENDITIONS
Remove all renditions except for the original rendition for assets
-
-
Method Detail
-
withAllRenditions
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)
-
removeAllRenditionsNamed
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> removeAllRenditionsNamed(String name)
Remove all renditions with a given name
-
removeRenditions
public static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> removeRenditions(String path)
Remove all non-original renditions from an asset.- Parameters:
path-- Returns:
-
removeRenditionsNamed
public static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver> removeRenditionsNamed(String path, String name)
Remove all renditions with a given name- Parameters:
path-name-- Returns:
-
-