Interface ComponentManager

  • public interface ComponentManager
    Provides access to CQ5 Components. Note: Since 5.4 the component access is sped up by bypassing access checks on the user component level. i.e. the components returned by this manage might not be visible to the underlying resource resolver. Consumers of this manager should call Component.isAccessible() prior of using it.
    • Method Detail

      • getComponentOfResource

        Component getComponentOfResource​(Resource resource)
        Returns the component according to the type of the resource or null if no such component exists.
        resource - to resolve
        the respective component or null
      • getComponent

        Component getComponent​(java.lang.String path)
        Returns the component at the given path. The path can be relative.
        path - component path
        the component or null
      • getComponents

        java.util.Collection<Component> getComponents()
        Returns all components configured in the system.
        all components.