Interface ParsysConfig


  • @ConsumerType
    public interface ParsysConfig
    Configuration of allowed components for a path inside a page of a specific template/page component.
    • Method Detail

      • getPageComponentPath

        @NotNull
        @NotNull java.lang.String getPageComponentPath()
        Resource type of the page component for which this parsys configuration is defined.
        Returns:
        resource type of page component
      • getPathPattern

        @Nullable
        @Nullable java.util.regex.Pattern getPathPattern()
        Path pattern for parsys. The pattern should match paths relative to the jcr:content node of a page, including this node but without leading slash.
        Example: ^jcr:content/(?!megaFlyout).*$
        Returns:
        parsys path pattern
      • getParentAncestorLevel

        int getParentAncestorLevel()
        Returns:
        parent ancestor level (can be 1 or 2)
      • getAllowedParents

        @NotNull
        @NotNull java.util.Set<java.lang.String> getAllowedParents()
        Returns:
        resource types of allowed parent components
      • getAllowedChildren

        @NotNull
        @NotNull java.util.Set<java.lang.String> getAllowedChildren()
        Returns:
        resource types of allowed child components
      • getDeniedChildren

        @NotNull
        @NotNull java.util.Set<java.lang.String> getDeniedChildren()
        Returns:
        resource types of denied child components
      • isInherit

        default boolean isInherit()
        Returns:
        if true, parsys configurations from super types are inherited and merged.