@ProviderType
public interface ConfigurationManager
Configuration entries.| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration(String path)
Returns a
Configuration object from the given path or
null if the resource is not adaptable. |
Configuration |
getConfiguration(String servicename,
String[] configPaths)
Returns the first
Configuration object for a specific service
from an array of configuration paths. |
Resource |
getConfigurationResource(Resource resource)
|
Iterator<Configuration> |
getConfigurations(Resource resource)
|
Iterator<Configuration> |
getConfigurations(String rootPath)
|
Service |
getService(Configuration configuration)
Returns the
Service for a Configuration. |
Service |
getService(String name)
Returns the
Service with the given name. |
String |
getServiceName(String path)
Returns the service name extracted from provided path.
|
Iterator<Service> |
getServices()
|
Iterator<Service> |
getServices(String[] paths,
Comparator<Service> comparator)
|
Iterator<Service> getServices(String[] paths, Comparator<Service> comparator)
Service getService(String name)
Service with the given name.name - servicenameService with given nameService getService(Configuration configuration)
Service for a Configuration. If the template
of the configuration defines a cq:cloudservice property with the service
name its resolved Service is returned, null
otherwise.configuration - ConfigurationServiceString getServiceName(String path)
path - path of service persistenceService name from given pathConfiguration getConfiguration(String path)
Configuration object from the given path or
null if the resource is not adaptable.path - Path to the configurationConfiguration or nullConfiguration getConfiguration(String servicename, String[] configPaths)
Configuration object for a specific service
from an array of configuration paths.servicename - servicenameconfigPaths - array of config pathsConfiguration or nullIterator<Configuration> getConfigurations(String rootPath)
rootPath - root path for lookupIterator of Configuration'sIterator<Configuration> getConfigurations(Resource resource)
resource - the Resource for which the applying cloudservice Configurations should be calculatedIterator of Configuration'sCopyright © 2010 - 2020 Adobe. All Rights Reserved