Class ConfigurationUtil

java.lang.Object
com.day.cq.wcm.webservicesupport.ConfigurationUtil

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

    • ConfigurationUtil

      public ConfigurationUtil()
  • Method Details

    • isService

      public static final 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 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 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