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 callComponent.isAccessible()
prior of using it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Component
getComponent(java.lang.String path)
Returns the component at the given path.Component
getComponentOfResource(Resource resource)
Returns the component according to the type of the resource ornull
if no such component exists.java.util.Collection<Component>
getComponents()
Returns all components configured in the system.
-
-
-
Method Detail
-
getComponentOfResource
Component getComponentOfResource(Resource resource)
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
Component getComponent(java.lang.String path)
Returns the component at the given path. The path can be relative.- Parameters:
path
- component path- Returns:
- the component or
null
-
getComponents
java.util.Collection<Component> getComponents()
Returns all components configured in the system.- Returns:
- all components.
-
-