Class ConfigurationUtil


  • public class ConfigurationUtil
    extends java.lang.Object
    Provides utility methods for web service configurations.
    Since:
    5.5
    • Constructor Detail

      • ConfigurationUtil

        public ConfigurationUtil()
    • Method Detail

      • isService

        public static final java.lang.Boolean isService​(Resource resource)
        Checks if the given Resource is a service. The resource is a service if the content child node is of resource type 'cq/configurations/components/servicepage'.
        Parameters:
        resource - Resource that will be tested.
        Returns:
        true if the Resource has a service resource type, false otherwise
      • isConfiguration

        public static final java.lang.Boolean isConfiguration​(Resource resource)
        Checks if the given Resource is a configuration. The resource is a configuration if the contentn child node is of resource type 'cq/configurations/components/configpage'.
        Parameters:
        resource - Resource that will be tested.
        Returns:
        true if the Resource has a configuration resource type, false otherwise
      • hasConfigurations

        public static final java.lang.Boolean hasConfigurations​(Resource resource)
        Checks if the given Resource has child configurations.
        Parameters:
        resource - Resource that will be tested.
        Returns:
        true if the Resource has at least a child configuration resource, false otherwise