Package com.day.cq.wcm.api.components
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 Summary
Modifier and TypeMethodDescriptiongetComponent
(String path) Returns the component at the given path.getComponentOfResource
(Resource resource) Returns the component according to the type of the resource ornull
if no such component exists.Returns all components configured in the system.
-
Method Details
-
getComponentOfResource
Returns the component according to the type of the resource ornull
if no such component exists.- Parameters:
resource
- to resolve- Returns:
- the respective component or
null
-
getComponent
Returns the component at the given path. The path can be relative.- Parameters:
path
- component path- Returns:
- the component or
null
-
getComponents
Collection<Component> getComponents()Returns all components configured in the system.- Returns:
- all components.
-