Interface MediaPortalCloudConfigResolver


  • public interface MediaPortalCloudConfigResolver
    • Field Detail

      • JCR_PROP_MP_CLOUDSERVICE_CONFIG

        static final java.lang.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:
        Constant Field Values
    • Method Detail

      • getConfiguration

        MediaPortalCloudConfiguration getConfiguration​(ResourceResolver resolver,
                                                       java.lang.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
      • getDefaultConfig

        MediaPortalCloudConfiguration getDefaultConfig​(ResourceResolver resolver)
        returns the first enabled MP config from available configs.
        Parameters:
        resolver - the resource resolver used to access the resources
        Returns:
        the default configuration if found, null otherwise