Interface MACTenantConfigurationResolver


public interface MACTenantConfigurationResolver
  • Field Details

    • JCR_PROP_MAC_CLOUDSERVICE_CONFIG

      static final String JCR_PROP_MAC_CLOUDSERVICE_CONFIG
      JCR Property on a folder ( nt:folder / sling:Folder / sling:OrderedFolder ) identifying the MAC cloud service configuration for a target folder.
      See Also:
    • JCR_PROP_MP_CLOUDSERVICE_CONFIG

      static final String JCR_PROP_MP_CLOUDSERVICE_CONFIG
      JCR Property on a folder ( nt:folder / sling:Folder / sling:OrderedFolder ) identifying the MP cloud service configuration for a target folder.
      See Also:
  • Method Details

    • getConfiguration

      MACTenantConfiguration getConfiguration(ResourceResolver resolver, String path)
      Retrieves the cloud configuration described by the resource stored under the provided path. If no configuration is found at that path this method returns null.
      Parameters:
      resolver - the resource resolver used to access the resources
      path - the path from which to obtain the configuration
      Returns:
      the configuration if found, null otherwise
    • getConfigurationForResource

      MACTenantConfiguration getConfigurationForResource(Resource resource)
      Retrieves a MACTenantConfiguration for a Resource. The configuration is retrieved by recursively looking for the JCR_PROP_MAC_CLOUDSERVICE_CONFIG property on the resource or its parents.
      Parameters:
      resource - the Resource to look for configuration. The resource's resolver is used for accessing the resources.
      Returns:
      the configuration if found, null otherwise
    • getMPConfigurationForResource

      MACTenantConfiguration getMPConfigurationForResource(Resource resource)
      Retrieves a MACTenantConfiguration for a Resource. The configuration is retrieved by recursively looking for the JCR_PROP_MP_CLOUDSERVICE_CONFIG property on the resource or its parents.
      Parameters:
      resource - the Resource to look for configuration. The resource's resolver is used for accessing the resources.
      Returns:
      the configuration if found, null otherwise
    • getConfigurationForPath

      MACTenantConfiguration getConfigurationForPath(ResourceResolver resolver, String path)
      Retrieves a MACTenantConfiguration for a path. The configuration is retrieved by recursively looking for the JCR_PROP_MAC_CLOUDSERVICE_CONFIG property on the resource at the indicated path or its parents.
      Parameters:
      resolver - the resource resolver used to access the resources
      path - the path
      Returns:
      the configuration if found, null otherwise
    • getMPConfigurationForPath

      MACTenantConfiguration getMPConfigurationForPath(ResourceResolver resolver, String path)
      Retrieves a MACTenantConfiguration for a path. The configuration is retrieved by recursively looking for the JCR_PROP_MP_CLOUDSERVICE_CONFIG property on the resource at the indicated path or its parents.
      Parameters:
      resolver - the resource resolver used to access the resources
      path - the path
      Returns:
      the configuration if found, null otherwise
    • getDefaultConfig

      MACTenantConfiguration getDefaultConfig(ResourceResolver resolver)
      returns the first enabled config from available configs.
      Parameters:
      resolver - the resource resolver used to access the resources
      Returns:
    • getDefaultMPConfig

      MACTenantConfiguration getDefaultMPConfig(ResourceResolver resolver)
      returns the first enabled MP config from available configs.
      Parameters:
      resolver - the resource resolver used to access the resources
      Returns: