@Deprecated public interface Conf extends ConfConstants
NAME, NN_SETTINGS, PN_CONF, PN_MERGE_LIST, PN_SYMLINK, VAR_END, VAR_PROPERTY_PREFIX, VAR_RESOURCE_NAME, VAR_START
Modifier and Type | Method and Description |
---|---|
ValueMap |
getItem(java.lang.String itemName)
Deprecated.
Returns configuration values for the given config item which can be a relative path.
|
Resource |
getItemResource(java.lang.String itemName)
Deprecated.
Returns a configuration resource for the given item which can be a relative path.
|
java.util.List<ValueMap> |
getList(java.lang.String parentItemName)
Deprecated.
Returns ValueMaps for a list of items beneath the given configuration item.
|
java.util.List<Resource> |
getListResources(java.lang.String parentItemName)
Deprecated.
Returns a list of items beneath the given configuration item.
|
ValueMap getItem(java.lang.String itemName)
getItemResource(String)
if you need to the resource behind the value map.
If the config item has a "jcr:content" child, this will be returned as the source
of the value map.
The itemName can be a relative path and is looked up beneath the resolved configuration tree. For example, if the original resource from which this Conf object was created, points to a configuration at "/conf/adobe/ch", and an item path like "dam/presets/pdf" is requested, this will return a value map for the resource at "/conf/adobe/ch/dam/presets/pdf". Note that itemName should be a fixed name specific to the application config.
If no configuration resource can be found, an empty map will be returned.
itemName
- a relative path to an item within a specific configuration treeResource getItemResource(java.lang.String itemName)
getItem(String)
if you need to iterate over the child structure,
for example a list of resources.
The itemName can be a relative path and is looked up beneath the resolved configuration tree. For example, if the original resource from which this Conf object was created, points to a configuration at "/conf/adobe/ch", and an item path like "dam/presets/pdf" is requested, this will return the resource at "/conf/adobe/ch/dam/presets/pdf". Note that itemName should be a fixed name specific to the application config.
If no configuration resource can be found, null
will be returned.
itemName
- a relative path to an item within a specific configuration treenull
if not foundjava.util.List<ValueMap> getList(java.lang.String parentItemName)
See getListResources(String)
for the merge logic.
parentItemName
- a relative path to an item within a specific configuration treejava.util.List<Resource> getListResources(java.lang.String parentItemName)
If the most specific configuration parent item has ConfConstants.PN_MERGE_LIST
set to true,
the list will be merged with the lists for all applicable configurations.
Starting with the lowest level configuration up to the most specific one, for each
configuration, if the parent item is present, these rules will be applied:
Note that for merged lists, no order is guaranteed. For fixed lists, the order of the child resources will be kept.
parentItemName
- a relative path to an item within a specific configuration tree"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"