Class StockUtil


  • public class StockUtil
    extends java.lang.Object
    This class provides various utility methods pertaining to Adobe Stock integration required in presentation/user interface.
    • Constructor Detail

      • StockUtil

        public StockUtil()
    • Method Detail

      • isStockAsset

        public static boolean isStockAsset​(Resource res)
        Returns true if resource is an asset imported from Adobe Stock
        Parameters:
        res - a resource
        Returns:
        returns true if resource is identified as Stock asset
      • isStockAssetLicensed

        public static boolean isStockAssetLicensed​(Resource res)
        Returns true if resource is a licensed asset imported from Adobe Stock
        Parameters:
        res - a resource
        Returns:
        returns true if resource is identified as licensed Stock asset
      • isStockAssetEditorial

        public static boolean isStockAssetEditorial​(Resource res)
        Returns true if resource is a Adobe Stock Asset and isEditorial property is true
        Parameters:
        res - a resource
        Returns:
        returns true if resource is identified as editorial Stock asset
      • isStockAccessible

        public static boolean isStockAccessible​(ResourceResolver resourceResolver)
        Returns true if Stock API is accessible by the current context
        Parameters:
        resourceResolver - resource resolver
        Returns:
        returns true if stock API is accessible