Interface SharedComponentProperties
@ProviderType
public interface SharedComponentProperties
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringBindings key for the resource path evaluated for merged propertiesstatic final Stringstatic final Stringstatic final Stringstatic final StringBindings key for the root page path containing the shared and global properties resourcesstatic final StringBindings key for the resource path evaluated for shared propertiesstatic final String -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sling.api.resource.ValueMapgetGlobalProperties(org.apache.sling.api.resource.Resource resource) Get the global properties of the current resource, or an empty map.getGlobalPropertiesPath(org.apache.sling.api.resource.Resource resource) Construct an absolute resource path for retrieval of a global component properties value map.org.apache.sling.api.resource.ValueMapgetSharedProperties(org.apache.sling.api.resource.Resource resource) Get the shared component properties of the current resource, or an empty map.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.getSharedPropertiesPath(org.apache.sling.api.resource.Resource resource) Construct an absolute resource path for retrieval of a shared component properties value map.org.apache.sling.api.resource.ValueMapmergeProperties(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.
-
Field Details
-
SHARED_PROPERTIES_PAGE_PATH
Bindings key for the root page path containing the shared and global properties resources- See Also:
-
SHARED_PROPERTIES_PATH
Bindings key for the resource path evaluated for shared properties- See Also:
-
MERGED_PROPERTIES_PATH
Bindings key for the resource path evaluated for merged properties- See Also:
-
SHARED_PROPERTIES
- See Also:
-
GLOBAL_PROPERTIES
- See Also:
-
MERGED_PROPERTIES
- See Also:
-
SHARED_PROPERTIES_RESOURCE
- See Also:
-
GLOBAL_PROPERTIES_RESOURCE
- See Also:
-
NN_GLOBAL_COMPONENT_PROPERTIES
- See Also:
-
NN_SHARED_COMPONENT_PROPERTIES
- See Also:
-
-
Method Details
-
getGlobalPropertiesPath
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
-
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 nullsharedProperties- shared component properties or nullresource- the component resource- Returns:
- merged properties