Package com.day.cq.dam.commons.util
Class StockUtil
java.lang.Object
com.day.cq.dam.commons.util.StockUtil
This class provides various utility methods pertaining to Adobe Stock integration required
in presentation/user interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisStockAccessible(ResourceResolver resourceResolver) Returns true if Stock API is accessible by the current contextstatic booleanisStockAsset(Resource res) Returns true if resource is an asset imported from Adobe Stockstatic booleanReturns true if resource is a Adobe Stock Asset and isEditorial property is truestatic booleanReturns true if resource is a licensed asset imported from Adobe Stock
-
Field Details
-
STOCK_ROOT_PATH
- See Also:
-
STOCK_STATE_UNLICENSED
- See Also:
-
PN_STOCK_ID
- See Also:
-
PN_STOCK_LICENSE
- See Also:
-
PN_STOCK_IS_EDITORIAL
- See Also:
-
-
Constructor Details
-
StockUtil
public StockUtil()
-
-
Method Details
-
isStockAsset
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
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
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
Returns true if Stock API is accessible by the current context- Parameters:
resourceResolver- resource resolver- Returns:
- returns true if stock API is accessible
-