Package com.day.cq.wcm.webservicesupport
Interface ConfigurationManager
-
public interface ConfigurationManagerRepresents a service for managingConfigurationentries.- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationgetConfiguration(java.lang.String path)Returns aConfigurationobject from the given path ornullif the resource is not adaptable.ConfigurationgetConfiguration(java.lang.String servicename, java.lang.String[] configPaths)Returns the firstConfigurationobject for a specific service from an array of configuration paths.ResourcegetConfigurationResource(Resource resource)java.util.Iterator<Configuration>getConfigurations(java.lang.String rootPath)java.util.Iterator<Configuration>getConfigurations(Resource resource)ServicegetService(Configuration configuration)Returns theServicefor aConfiguration.ServicegetService(java.lang.String name)Returns theServicewith the givenname.java.lang.StringgetServiceName(java.lang.String path)Returns the service name extracted from provided path.java.util.Iterator<Service>getServices()Returns anIteratorofServiceobjects 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 anIteratorofServiceobjects loaded from the children of the configuration base path.- Returns:
IteratorofService'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:
IteratorofService's
-
getService
Service getService(java.lang.String name)
Returns theServicewith the givenname.- Parameters:
name- servicename- Returns:
Servicewith given name
-
getService
Service getService(Configuration configuration)
Returns theServicefor aConfiguration. If the template of the configuration defines a cq:cloudservice property with the service name its resolvedServiceis returned,nullotherwise.- 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:
Servicename from given path
-
getConfiguration
Configuration getConfiguration(java.lang.String path)
Returns aConfigurationobject from the given path ornullif the resource is not adaptable.- Parameters:
path- Path to the configuration- Returns:
Configurationornull
-
getConfiguration
Configuration getConfiguration(java.lang.String servicename, java.lang.String[] configPaths)
Returns the firstConfigurationobject for a specific service from an array of configuration paths.- Parameters:
servicename- servicenameconfigPaths- array of config paths- Returns:
Configurationornull
-
getConfigurations
java.util.Iterator<Configuration> getConfigurations(java.lang.String rootPath)
- Parameters:
rootPath- root path for lookup- Returns:
IteratorofConfiguration's
-
getConfigurations
java.util.Iterator<Configuration> getConfigurations(Resource resource)
- Parameters:
resource- theResourcefor which the applying cloudserviceConfigurations should be calculated- Returns:
IteratorofConfiguration's
-
-