@Model(adaptables=org.apache.sling.api.resource.ResourceResolver.class)
public class ComponentManager
extends java.lang.Object
| Constructor and Description |
|---|
ComponentManager(org.apache.sling.api.resource.ResourceResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Component> |
getAllComponents()
Returns all of the components in Sling CMS with a component type
specified.
|
java.util.Map<java.lang.String,java.util.List<Component>> |
getComponentsByType()
Returns a Map of the components with a component type specified with the
key of the map being the component type and the value being the list of
components for that type.
|
java.util.List<java.lang.String> |
getComponentTypes()
Returns a list of all of the registered component types
|
public ComponentManager(org.apache.sling.api.resource.ResourceResolver resolver)
public java.util.List<Component> getAllComponents()
public java.util.Map<java.lang.String,java.util.List<Component>> getComponentsByType()
public java.util.List<java.lang.String> getComponentTypes()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.