Class AssetActions
java.lang.Object
com.adobe.acs.commons.fam.actions.AssetActions
Assets utility functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,
String> Remove all renditions except for the original rendition for assets -
Method Summary
Modifier and TypeMethodDescriptionstatic final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,
String> Remove all renditions with a given namestatic final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver>
removeRenditions
(String path) Remove all non-original renditions from an asset.static final CheckedConsumer<org.apache.sling.api.resource.ResourceResolver>
removeRenditionsNamed
(String path, String name) Remove all renditions with a given namestatic 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)
-
Field Details
-
REMOVE_ALL_RENDITIONS
public static final CheckedBiConsumer<org.apache.sling.api.resource.ResourceResolver,String> REMOVE_ALL_RENDITIONSRemove all renditions except for the original rendition for assets
-
-
Method Details
-
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:
-