Interface SharedComponentProperties


@ProviderType public interface SharedComponentProperties
  • Field Details

  • Method Details

    • getSharedPropertiesPagePath

      String getSharedPropertiesPagePath(org.apache.sling.api.resource.Resource resource)
      Construct an absolute root page path containing the shared and global properties resources appropriate for the given component resource.
      Parameters:
      resource - the component resource to evaluate
      Returns:
      an absolute path to a parent resource for shared and global properties
    • getGlobalPropertiesPath

      String getGlobalPropertiesPath(org.apache.sling.api.resource.Resource resource)
      Construct an absolute resource path for retrieval of a global component properties value map.
      Parameters:
      resource - the resource to evaluate
      Returns:
      an absolute path to a possible global component properties resource or null
    • getGlobalProperties

      org.apache.sling.api.resource.ValueMap getGlobalProperties(org.apache.sling.api.resource.Resource resource)
      Get the global properties of the current resource, or an empty map.
      Parameters:
      resource - the current resource
      Returns:
      global properties or empty
    • getSharedPropertiesPath

      String getSharedPropertiesPath(org.apache.sling.api.resource.Resource resource)
      Construct an absolute resource path for retrieval of a shared component properties value map.
      Parameters:
      resource - the resource to evaluate
      Returns:
      an absolute path to a possible shared component properties resource or null
    • getSharedProperties

      org.apache.sling.api.resource.ValueMap getSharedProperties(org.apache.sling.api.resource.Resource resource)
      Get the shared component properties of the current resource, or an empty map.
      Parameters:
      resource - the current resource
      Returns:
      shared component properties or empty
    • mergeProperties

      org.apache.sling.api.resource.ValueMap mergeProperties(org.apache.sling.api.resource.ValueMap globalProperties, org.apache.sling.api.resource.ValueMap sharedProperties, org.apache.sling.api.resource.Resource resource)
      Merge global and shared properties into the valuemap retrieved from the provided resource.
      Parameters:
      globalProperties - global properties or null
      sharedProperties - shared component properties or null
      resource - the component resource
      Returns:
      merged properties