Class LinkComponentPropertyResolver

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @ProviderType
    public final class LinkComponentPropertyResolver
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Resolves Link Handler component properties for the component associated with the given resource from content policies and properties defined in the component resource. Please make sure to close() instances of this class after usage.
    • Constructor Detail

      • LinkComponentPropertyResolver

        public LinkComponentPropertyResolver​(@NotNull
                                             @NotNull org.apache.sling.api.resource.Resource resource,
                                             @NotNull
                                             @NotNull io.wcm.wcm.commons.component.ComponentPropertyResolverFactory componentPropertyResolverFactory)
        Parameters:
        resource - Resource containing link properties
        componentPropertyResolverFactory - Component property resolver factory
    • Method Detail

      • getLinkTargetUrlFallbackProperty

        @NotNull
        public @NotNull java.lang.String @Nullable [] getLinkTargetUrlFallbackProperty()
        Returns:
        Link target URL fallback property name
      • getLinkTargetWindowTargetFallbackProperty

        @NotNull
        public @NotNull java.lang.String @Nullable [] getLinkTargetWindowTargetFallbackProperty()
        Returns:
        Link target window target fallback property name
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception