Class Filters
java.lang.Object
com.adobe.acs.commons.fam.actions.Filters
Utility filters useful for sifting through search results without over-complicating search queries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, Boolean> This filter identifies assets where the original rendition is newer than any of the other renditions.static final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, Boolean> Determine if node is a valid asset, skip any non-assets It's better to filter via query if possible to avoid having to use this return True if assetstatic final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, Boolean> Exclude subassets from processingstatic final CheckedFunction<Boolean,Boolean> Returns opposite of its input, e.g.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, Boolean> filterMatching(String glob) Returns true of glob matches provided pathstatic final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, Boolean> filterNotMatching(String glob) Returns false if glob matches provided path Useful for things like filterOutSubassets
-
Field Details
-
ORIGINAL_RENDITION
- See Also:
-
NOT
Returns opposite of its input, e.g. filterMatching(glob).andThen(not) -
FILTER_OUT_SUBASSETS
public static final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, FILTER_OUT_SUBASSETSBoolean> Exclude subassets from processing -
FILTER_NON_ASSETS
public static final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, FILTER_NON_ASSETSBoolean> Determine if node is a valid asset, skip any non-assets It's better to filter via query if possible to avoid having to use this return True if asset -
FILTER_ASSETS_WITH_OUTDATED_RENDITIONS
public static final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, FILTER_ASSETS_WITH_OUTDATED_RENDITIONSBoolean> This filter identifies assets where the original rendition is newer than any of the other renditions. This is an especially useful function for updating assets with missing or outdated thumbnails. return True if asset has no thumbnails or outdated thumbnails
-
-
Method Details
-
filterMatching
public static final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, filterMatchingBoolean> (String glob) Returns true of glob matches provided path- Parameters:
glob- Regex expression- Returns:
- True for matches
-
filterNotMatching
public static final CheckedBiFunction<org.apache.sling.api.resource.ResourceResolver,String, filterNotMatchingBoolean> (String glob) Returns false if glob matches provided path Useful for things like filterOutSubassets- Parameters:
glob- Regex expression- Returns:
- False for matches
-