Package com.day.cq.wcm.webservicesupport
Interface ConfigurationManager
-
public interface ConfigurationManager
Represents a service for managingConfiguration
entries.- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Configuration
getConfiguration(java.lang.String path)
Returns aConfiguration
object from the given path ornull
if the resource is not adaptable.Configuration
getConfiguration(java.lang.String servicename, java.lang.String[] configPaths)
Returns the firstConfiguration
object for a specific service from an array of configuration paths.Resource
getConfigurationResource(Resource resource)
java.util.Iterator<Configuration>
getConfigurations(java.lang.String rootPath)
java.util.Iterator<Configuration>
getConfigurations(Resource resource)
Service
getService(Configuration configuration)
Returns theService
for aConfiguration
.Service
getService(java.lang.String name)
Returns theService
with the givenname
.java.lang.String
getServiceName(java.lang.String path)
Returns the service name extracted from provided path.java.util.Iterator<Service>
getServices()
Returns anIterator
ofService
objects loaded from the children of the configuration base path.java.util.Iterator<Service>
getServices(java.lang.String[] paths, java.util.Comparator<Service> comparator)
-
-
-
Method Detail
-
getServices
java.util.Iterator<Service> getServices()
Returns anIterator
ofService
objects loaded from the children of the configuration base path.- Returns:
Iterator
ofService
's
-
getServices
java.util.Iterator<Service> getServices(java.lang.String[] paths, java.util.Comparator<Service> comparator)
- Parameters:
paths
- Service configuration pathscomparator
- A service comparator for ordering- Returns:
Iterator
ofService
's
-
getService
Service getService(java.lang.String name)
Returns theService
with the givenname
.- Parameters:
name
- servicename- Returns:
Service
with given name
-
getService
Service getService(Configuration configuration)
Returns theService
for aConfiguration
. If the template of the configuration defines a cq:cloudservice property with the service name its resolvedService
is returned,null
otherwise.- Parameters:
configuration
-Configuration
- Returns:
Service
-
getServiceName
java.lang.String getServiceName(java.lang.String path)
Returns the service name extracted from provided path.- Parameters:
path
- path of service persistence- Returns:
Service
name from given path
-
getConfiguration
Configuration getConfiguration(java.lang.String path)
Returns aConfiguration
object from the given path ornull
if the resource is not adaptable.- Parameters:
path
- Path to the configuration- Returns:
Configuration
ornull
-
getConfiguration
Configuration getConfiguration(java.lang.String servicename, java.lang.String[] configPaths)
Returns the firstConfiguration
object for a specific service from an array of configuration paths.- Parameters:
servicename
- servicenameconfigPaths
- array of config paths- Returns:
Configuration
ornull
-
getConfigurations
java.util.Iterator<Configuration> getConfigurations(java.lang.String rootPath)
- Parameters:
rootPath
- root path for lookup- Returns:
Iterator
ofConfiguration
's
-
getConfigurations
java.util.Iterator<Configuration> getConfigurations(Resource resource)
- Parameters:
resource
- theResource
for which the applying cloudserviceConfiguration
s should be calculated- Returns:
Iterator
ofConfiguration
's
-
-