Package com.day.cq.wcm.webservicesupport
Class ConfigurationUtil
- java.lang.Object
-
- com.day.cq.wcm.webservicesupport.ConfigurationUtil
-
public class ConfigurationUtil extends java.lang.Object
Provides utility methods for web service configurations.- Since:
- 5.5
-
-
Constructor Summary
Constructors Constructor Description ConfigurationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Boolean
hasConfigurations(Resource resource)
Checks if the givenResource
has child configurations.static java.lang.Boolean
isConfiguration(Resource resource)
Checks if the givenResource
is a configuration.static java.lang.Boolean
isService(Resource resource)
Checks if the givenResource
is a service.
-
-
-
Method Detail
-
isService
public static final java.lang.Boolean isService(Resource resource)
Checks if the givenResource
is a service. The resource is a service if the content child node is of resource type 'cq/configurations/components/servicepage'.
-
isConfiguration
public static final java.lang.Boolean isConfiguration(Resource resource)
Checks if the givenResource
is a configuration. The resource is a configuration if the contentn child node is of resource type 'cq/configurations/components/configpage'.
-
-