public class StockUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PN_STOCK_ID |
static java.lang.String |
PN_STOCK_IS_EDITORIAL |
static java.lang.String |
PN_STOCK_LICENSE |
static java.lang.String |
STOCK_ROOT_PATH |
static java.lang.String |
STOCK_STATE_UNLICENSED |
Constructor and Description |
---|
StockUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isStockAccessible(ResourceResolver resourceResolver)
Returns true if Stock API is accessible by the current context
|
static boolean |
isStockAsset(Resource res)
Returns true if resource is an asset imported from Adobe Stock
|
static boolean |
isStockAssetEditorial(Resource res)
Returns true if resource is a Adobe Stock Asset and isEditorial property is true
|
static boolean |
isStockAssetLicensed(Resource res)
Returns true if resource is a licensed asset imported from Adobe Stock
|
public static final java.lang.String STOCK_ROOT_PATH
public static final java.lang.String STOCK_STATE_UNLICENSED
public static final java.lang.String PN_STOCK_ID
public static final java.lang.String PN_STOCK_LICENSE
public static final java.lang.String PN_STOCK_IS_EDITORIAL
public static boolean isStockAsset(Resource res)
res
- a resourcepublic static boolean isStockAssetLicensed(Resource res)
res
- a resourcepublic static boolean isStockAssetEditorial(Resource res)
res
- a resourcepublic static boolean isStockAccessible(ResourceResolver resourceResolver)
resourceResolver
- resource resolver"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"