Interface ICloudConfigurationResourceProvider


  • public interface ICloudConfigurationResourceProvider
    Interface defining the generic cloud configuration provider for forms
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Iterator<Resource> getAllCloudConfigs​(ResourceResolver resourceResolver, java.lang.String[] groups)
      Gives the iterator over Cloud Configuration resources from /conf, /libs, /apps and /etc/cloudservices using fd-cloudservice user
      java.util.Iterator<Resource> getResourceAwareCloudConfigs​(Resource resource, java.util.List<java.lang.String> groups, java.util.Map<java.lang.String,​java.lang.String> attributes)
      Returns the iterator of Cloud configuration resources from specified container path in resource.
    • Method Detail

      • getAllCloudConfigs

        @Nonnull
        java.util.Iterator<Resource> getAllCloudConfigs​(@Nonnull
                                                        ResourceResolver resourceResolver,
                                                        @Nonnull
                                                        java.lang.String[] groups)
        Gives the iterator over Cloud Configuration resources from /conf, /libs, /apps and /etc/cloudservices using fd-cloudservice user
        Parameters:
        groups - Array of strings denoting the group of cloudservice (eg. fdm, echosign, typekit, recaptcha)
        Returns:
        An Iterator of Resource objects of cloud configurations
      • getResourceAwareCloudConfigs

        @Nonnull
        java.util.Iterator<Resource> getResourceAwareCloudConfigs​(@Nonnull
                                                                  Resource resource,
                                                                  @Nonnull
                                                                  java.util.List<java.lang.String> groups,
                                                                  java.util.Map<java.lang.String,​java.lang.String> attributes)
        Returns the iterator of Cloud configuration resources from specified container path in resource.
        Parameters:
        resource - org.apache.sling.api.resource.Resource of the guideContainer.
        groups - List of strings denoting the group of cloudservice (eg. fdm, echosign, typekit, recaptcha)
        attributes - Map containing the attributes that needs to be present in the cloud configurations as key-value pair(can be null).
        Returns:
        An Iterator of Resource objects of cloud configurations jcr:content.