Package com.day.cq.wcm.webservicesupport
Class ConfigurationUtil
java.lang.Object
com.day.cq.wcm.webservicesupport.ConfigurationUtil
Provides utility methods for web service configurations.
- Since:
- 5.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Boolean
hasConfigurations
(Resource resource) Checks if the givenResource
has child configurations.static final Boolean
isConfiguration
(Resource resource) Checks if the givenResource
is a configuration.static final Boolean
Checks if the givenResource
is a service.
-
Constructor Details
-
ConfigurationUtil
public ConfigurationUtil()
-
-
Method Details
-
isService
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
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'. -
hasConfigurations
Checks if the givenResource
has child configurations.
-