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(String path)Returns aConfigurationobject from the given path ornullif the resource is not adaptable.ConfigurationgetConfiguration(String servicename, String[] configPaths)Returns the firstConfigurationobject for a specific service from an array of configuration paths.ResourcegetConfigurationResource(Resource resource)Iterator<Configuration>getConfigurations(String rootPath)Iterator<Configuration>getConfigurations(Resource resource)ServicegetService(Configuration configuration)Returns theServicefor aConfiguration.ServicegetService(String name)Returns theServicewith the givenname.StringgetServiceName(String path)Returns the service name extracted from provided path.Iterator<Service>getServices()Iterator<Service>getServices(String[] paths, Comparator<Service> comparator)
-
-
-
Method Detail
-
getServices
Iterator<Service> getServices(String[] paths, Comparator<Service> comparator)
-
getService
Service getService(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
String getServiceName(String path)
Returns the service name extracted from provided path.- Parameters:
path- path of service persistence- Returns:
Servicename from given path
-
getConfiguration
Configuration getConfiguration(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(String servicename, 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
Iterator<Configuration> getConfigurations(String rootPath)
- Parameters:
rootPath- root path for lookup- Returns:
IteratorofConfiguration's
-
getConfigurations
Iterator<Configuration> getConfigurations(Resource resource)
- Parameters:
resource- theResourcefor which the applying cloudserviceConfigurations should be calculated- Returns:
IteratorofConfiguration's
-
-