public final class PrintUIHelper
extends java.lang.Object
| Constructor and Description |
|---|
PrintUIHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getName(java.lang.String path)
Method returns Name from a path
|
static java.lang.String |
getProductPath(Resource catalog)
This method checks for product reference for a catalog
|
static void |
getProperties(java.lang.String rootPath,
Resource topRes,
java.util.Map<java.lang.String,java.lang.String> properties)
This method traverse throught the node tree and gives all properties with values in a map.
|
static void |
getPropertiesFromNode(java.lang.String rootPath,
Resource res,
java.util.Map<java.lang.String,java.lang.String> propertyList)
This method traverse throught the node and gives all properties with values in a map.
|
static java.lang.String |
getPropertyValue(java.util.Map.Entry<java.lang.String,java.lang.String> property,
Resource productNode)
Method to get mapped property value
|
static boolean |
isImageProperty(java.lang.String property,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean isProductRefSet)
Method to check if a property is an image property
if a product is mapped to asset , a property is image property if it ends with fileReference
otherwise property is image property if propertyName_assetref property is set to true
|
static boolean |
isPropertyMappedToProduct(java.util.Map.Entry<java.lang.String,java.lang.String> property,
Resource productNode)
Method to check if a property mapped to product
|
public static void getProperties(java.lang.String rootPath,
Resource topRes,
java.util.Map<java.lang.String,java.lang.String> properties)
throws RepositoryException
rootPath - properties path will be taked relative from this pathtopRes - resource to start withproperties - A map which will be filled with propertiesRepositoryException - - In case there is conflict while accessing resource propertiespublic static void getPropertiesFromNode(java.lang.String rootPath,
Resource res,
java.util.Map<java.lang.String,java.lang.String> propertyList)
throws RepositoryException
rootPath - properties path will be taked relative from this pathpropertyList - A map which will be filled with propertiesres - Node to get properties fromRepositoryException - - In case there is conflict while accessing resource propertiespublic static java.lang.String getProductPath(Resource catalog)
catalog - catalog resource for which product reference is checkedpublic static java.lang.String getName(java.lang.String path)
path - of resourcepublic static boolean isImageProperty(java.lang.String property,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean isProductRefSet)
property - property to be checkedproperties - all the tag properties of assetisProductRefSet - flag to indicate if a product reference is set at this assetpublic static boolean isPropertyMappedToProduct(java.util.Map.Entry<java.lang.String,java.lang.String> property,
Resource productNode)
property - , property to check if it can be resolved at the reference product.productNode - product for which the property is to be verified.public static java.lang.String getPropertyValue(java.util.Map.Entry<java.lang.String,java.lang.String> property,
Resource productNode)
property - , property to get the value forproductNode - product node to resolve the propertyCopyright © 2010 - 2019 Adobe. All Rights Reserved